fix: possible two factor secret bug
This commit is contained in:
parent
7680b2f85a
commit
2062413c75
4 changed files with 8 additions and 7 deletions
|
|
@ -186,12 +186,12 @@ const disableUser = (code, id, context) => {
|
|||
|
||||
const createResetPasswordToken = (code, userID, context) => {
|
||||
const action = () => users.createAuthToken(userID, 'reset_password')
|
||||
return executeProtectedAction(code, id, context, action)
|
||||
return executeProtectedAction(code, userID, context, action)
|
||||
}
|
||||
|
||||
const createReset2FAToken = (code, userID, context) => {
|
||||
const action = () => users.createAuthToken(userID, 'reset_twofa')
|
||||
return executeProtectedAction(code, id, context, action)
|
||||
return executeProtectedAction(code, userID, context, action)
|
||||
}
|
||||
|
||||
const createRegisterToken = (username, role) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue