Skip to content

Commit

Permalink
use the correct param name for the MFA code
Browse files Browse the repository at this point in the history
  • Loading branch information
dantownsend committed Aug 22, 2024
1 parent ca29a59 commit c8b59fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion admin_ui/src/views/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ export default defineComponent({
await axios.post(`./public/login/`, {
username: this.username,
password: this.password,
...(this.mfaCodeRequired ? { mfaCode: this.mfaCode } : {})
...(this.mfaCodeRequired
? { authenticator_token: this.mfaCode }
: {})
})
} catch (error) {
console.log("Request failed")
Expand Down

0 comments on commit c8b59fb

Please sign in to comment.