Skip to content

Commit

Permalink
Update MFA form element
Browse files Browse the repository at this point in the history
  • Loading branch information
idolgov committed Oct 2, 2023
1 parent 478fe3a commit 00aad4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/login/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ <h1 localization-key="loginTitle"></h1>
placeholder="" />
<a href="#"
localization-key="retrievePasswordLink"></a>
<label for="mfa_token"
<label for="mfa-token"
localization-key="mfaLabel"></label>
<input id="mfa_token"
name="mfa_token"
<input id="mfa-token"
name="mfa-token"
type="text"
maxlength="100"
placeholder="" />
Expand Down
2 changes: 2 additions & 0 deletions src/login/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
form.addEventListener(
'submit',
function (event) {
document.getElementById('mfa-token').setAttribute('name', 'mfa_token');

fetch('/api/weblogin', {
body: new FormData(form),
credentials: 'include',
Expand Down

0 comments on commit 00aad4d

Please sign in to comment.