Skip to content

Commit 7378474

Browse files
authored
Merge pull request #21 from LiftOffLLC/SocialSignUpFix
Fix social auth signup
2 parents 92d58bc + b0b81e5 commit 7378474

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/app/commons/socialAuth.signup.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const Social = require('./social');
99
const errorCodes = require('./errors');
1010
const Constants = require('./constants');
1111
const Utils = require('./utils');
12+
const UserRole = UserModel.role();
1213
const Config = require('../../config');
1314

1415
const validator = UserModel.validatorRules();
@@ -64,6 +65,7 @@ async function handler(providerName, request, h) {
6465
hashedPassword: uuid.v4(),
6566
avatarUrl: request.payload.avatarUrl,
6667
subscribedToNewsletter: request.payload.subscribedToNewsletter,
68+
role: UserRole.USER,
6769
};
6870
try {
6971
user = await UserModel.createOrUpdate(userObject);

0 commit comments

Comments
 (0)