mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00
perf: git
This commit is contained in:
@@ -41,8 +41,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
|
||||
Authorization: `Bearer ${access_token}`
|
||||
}
|
||||
});
|
||||
const { login, email, avatar_url } = data;
|
||||
const username = email || login;
|
||||
const { login, avatar_url } = data;
|
||||
const username = `git-${login}`;
|
||||
|
||||
try {
|
||||
jsonRes(res, {
|
||||
|
@@ -137,15 +137,21 @@ const LoginForm = ({ setPageType, loginSuccess }: Props) => {
|
||||
登录
|
||||
</Button>
|
||||
{feConfigs?.show_register && (
|
||||
<Flex mt={10} justifyContent={'center'} alignItems={'center'}>
|
||||
<MyIcon
|
||||
name="gitFill"
|
||||
w={'34px'}
|
||||
cursor={'pointer'}
|
||||
color={'myGray.800'}
|
||||
onClick={onclickGit}
|
||||
/>
|
||||
</Flex>
|
||||
<>
|
||||
<Flex mt={10} justifyContent={'center'} alignItems={'center'}>
|
||||
<MyIcon
|
||||
name="gitFill"
|
||||
w={'34px'}
|
||||
cursor={'pointer'}
|
||||
color={'myGray.800'}
|
||||
onClick={onclickGit}
|
||||
/>
|
||||
</Flex>
|
||||
<Box mt={3} textAlign={'center'} fontSize={'sm'} color={'myGray.600'}>
|
||||
由于 Git 登录设计缺陷,我们重新设计了 Git 登录,已使用 Git
|
||||
注册的账号将会丢失关联,如果你希望重新绑定原来的账号,可以点击右下角的【联系方式】,我们会手动为你重新绑定。不需要重新关联的,将会注册新的账号。
|
||||
</Box>
|
||||
</>
|
||||
)}
|
||||
</form>
|
||||
</>
|
||||
|
Reference in New Issue
Block a user