perf: git

This commit is contained in:
archer 2023-08-08 13:30:58 +08:00
parent 3cf38930eb
commit 5fc9041d46
No known key found for this signature in database
GPG Key ID: 569A5660D2379E28
2 changed files with 17 additions and 11 deletions

View File

@ -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, {

View File

@ -137,6 +137,7 @@ const LoginForm = ({ setPageType, loginSuccess }: Props) => {
</Button>
{feConfigs?.show_register && (
<>
<Flex mt={10} justifyContent={'center'} alignItems={'center'}>
<MyIcon
name="gitFill"
@ -146,6 +147,11 @@ const LoginForm = ({ setPageType, loginSuccess }: Props) => {
onClick={onclickGit}
/>
</Flex>
<Box mt={3} textAlign={'center'} fontSize={'sm'} color={'myGray.600'}>
Git Git 使 Git
</Box>
</>
)}
</form>
</>