Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
5fc9041d
authored
Aug 08, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: git
parent
3cf38930
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
11 deletions
+17
-11
client/src/pages/api/user/account/gitLogin.ts
+2
-2
client/src/pages/login/components/LoginForm.tsx
+15
-9
No files found.
client/src/pages/api/user/account/gitLogin.ts
View file @
5fc9041d
...
...
@@ -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
,
{
...
...
client/src/pages/login/components/LoginForm.tsx
View file @
5fc9041d
...
...
@@ -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>
</>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment