fix(ssologin): return after error response

pull/9305/head
sakkyoi 2025-09-03 00:08:44 +08:00
parent 4b288a08ef
commit 51b84ce59e
No known key found for this signature in database
GPG Key ID: FC3D07D7D252B698
1 changed files with 1 additions and 0 deletions

View File

@ -256,6 +256,7 @@ func OIDCLoginCallback(c *gin.Context) {
user, err = autoRegister(userID, userID, err)
if err != nil {
common.ErrorResp(c, err, 400)
return
}
}
token, err := common.GenerateToken(user)