mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
login-with-github: bug fix
This commit is contained in:
1 parent
932b6ff2b9
commit
d13876a5bc
2 files changed
+2
-2
No files matched your search
@@ -58,7 +58,7 @@ async function callback({ state, code }) {
|
||||
_id: `${userInfo.body.id}@github.local`,
|
||||
email: userInfo.body.email,
|
||||
bio: userInfo.body.bio,
|
||||
uname: [userInfo.body.name, userInfo.body.login],
|
||||
uname: [userInfo.body.name, userInfo.body.login].filter((i) => i),
|
||||
avatar: `github:${userInfo.body.login}`,
|
||||
};
|
||||
if (!ret.email) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/login-with-github",
|
||||
"version": "0.1.4",
|
||||
"version": "0.1.5",
|
||||
"main": "package.json",
|
||||
"repository": "git@github.com:hydro-dev/Hydro.git",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
|
||||
Reference in new issue
Block a user