Skip to content

Commit

Permalink
fix(oauth_login): set default role to regular
Browse files Browse the repository at this point in the history
  • Loading branch information
Gusted committed Jun 4, 2021
1 parent 6f026ba commit 2717bf6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions handlers/api/callback.go
Expand Up @@ -68,6 +68,7 @@ func CallbackGet(c *fiber.Ctx) error {
user = &models.User{
Username: response.Username,
Email: response.Email,
Role: models.Regular,
OAuthProvider: service,
}
regErr := database.DB.Create(user)
Expand Down

0 comments on commit 2717bf6

Please sign in to comment.