Skip to content

Commit

Permalink
Fix user role assignment on social sign up
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihturker committed Mar 11, 2022
1 parent d7746ef commit 2829222
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controller/social-login.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ export class SocialLoginController {
username: autoGeneratedUserName,
password: autoGeneratedPassword,
email: userData.external_user_email,
role: UserRole.DEFAULT,
};

await this.signup(db, socialLoginUser);
Expand Down

0 comments on commit 2829222

Please sign in to comment.