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