refactor: privileged actions
This commit is contained in:
parent
357fe75427
commit
7680b2f85a
5 changed files with 29 additions and 78 deletions
|
|
@ -18,14 +18,12 @@ const SETUP_2FA = gql`
|
|||
$username: String!
|
||||
$password: String!
|
||||
$rememberMe: Boolean!
|
||||
$secret: String!
|
||||
$codeConfirmation: String!
|
||||
) {
|
||||
setup2FA(
|
||||
username: $username
|
||||
password: $password
|
||||
rememberMe: $rememberMe
|
||||
secret: $secret
|
||||
codeConfirmation: $codeConfirmation
|
||||
)
|
||||
}
|
||||
|
|
@ -156,7 +154,6 @@ const Setup2FAState = ({ state, dispatch }) => {
|
|||
username: state.clientField,
|
||||
password: state.passwordField,
|
||||
rememberMe: state.rememberMeField,
|
||||
secret: secret,
|
||||
codeConfirmation: twoFAConfirmation
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue