Trim username

This commit is contained in:
2024-09-03 19:58:13 +02:00
parent 8b97e64b59
commit e7327627c9
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ export default oauthGitHubEventHandler({
// If the user is not signed in and no user exists with that GitHub ID or email address, create a new user
const createdUser = await createUser({
username: oauthUser.login.toLowerCase() as string,
username: oauthUser.login.toLowerCase().trim() as string,
description: oauthUser.bio as string,
name: oauthUser.name as string,
email: oauthUser.email as string,