Skip to content

Commit

Permalink
Merge pull request #107 from cofacts/93-unauthorized-registration
Browse files Browse the repository at this point in the history
Fix unauthorized bug on first login after signing up
  • Loading branch information
MrOrz committed Oct 24, 2018
2 parents 39fa6ea + cc1fbaa commit a0a1656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async function verifyProfile(profile, fieldName) {
},
});

if (createUserResult.created) {
if (createUserResult.result === 'created') {
return processMeta(
await client.get({
index: 'users',
Expand Down

0 comments on commit a0a1656

Please sign in to comment.