Skip to content

Commit 7de265e

Browse files
committed
fall back to login for github if name not provided
1 parent ae83972 commit 7de265e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mystbin/backend/routers/apps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ async def auth_from_github(request: Request) -> Union[Response, UJSONResponse]:
192192
resp.raise_for_status()
193193
data = await resp.json()
194194
userid = data["id"]
195-
username = data["name"]
195+
username = data["name"] or data["login"]
196196

197197
async with request.app.state.client.get(
198198
"https://api.github.com/user/emails",

0 commit comments

Comments
 (0)