Remove address
Some checks failed
Integration tests for the release process / release-simulation (push) Waiting to run
/ release (push) Waiting to run
testing / backend-checks (push) Failing after 12m53s
testing / frontend-checks (push) Successful in 1m39s
testing / test-unit (push) Has been skipped
testing / test-mysql (push) Has been skipped
testing / test-pgsql (push) Has been skipped
testing / test-sqlite (push) Has been skipped

This commit is contained in:
Anthony Lawn 2024-02-03 12:28:27 -06:00
parent 305f9bb7e9
commit ffe2962dfa

View file

@ -377,7 +377,7 @@ func handleSignInFull(ctx *context.Context, u *user_model.User, remember, obeyRe
}
func getUserName(gothUser *goth.User) (string, error) {
return user_model.NormalizeUserName(gothUser.RawData["preferred_username"].(string))
return user_model.NormalizeUserName(strings.Split(gothUser.RawData["preferred_username"].(string), "@")[0])
}
// HandleSignOut resets the session and sets the cookies