refactor: privileged actions

This commit is contained in:
Sérgio Salgado 2021-04-19 23:59:21 +01:00 committed by Josh Harvey
parent 357fe75427
commit 7680b2f85a
5 changed files with 29 additions and 78 deletions

View file

@ -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
}
})