Skip to content

Commit

Permalink
add: save regMethod nad torus provider in user record on add user req
Browse files Browse the repository at this point in the history
  • Loading branch information
yaroslav-fedyshyn-nordwhale committed May 4, 2020
1 parent 983d014 commit 039c070
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/storage/storageAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ const setup = (app: Router, storage: StorageAPI) => {

const user: UserRecord = defaults(bodyUser, {
identifier: userRecord.loggedInAs,
regMethod: bodyUser.regMethod,
torusProvider: bodyUser.torusProvider,
email: get(userRecord, 'otp.email', email), //for development/test use email from body
mobile: get(userRecord, 'otp.mobile', mobile), //for development/test use mobile from body
isCompleted: bodyUser.isCompleted
Expand Down

0 comments on commit 039c070

Please sign in to comment.