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
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:
parent
305f9bb7e9
commit
ffe2962dfa
1 changed files with 1 additions and 1 deletions
|
@ -377,7 +377,7 @@ func handleSignInFull(ctx *context.Context, u *user_model.User, remember, obeyRe
|
||||||
}
|
}
|
||||||
|
|
||||||
func getUserName(gothUser *goth.User) (string, error) {
|
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
|
// HandleSignOut resets the session and sets the cookies
|
||||||
|
|
Loading…
Reference in a new issue