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 c1d371e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:
run: |
${{ github.workspace }}/.github/scripts/start-api &
npm run start &
npm run test:e2e
DEBUG='cypress:*' npm run wait && npx cypress run --spec cypress/tests/logout.cy.ts
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 c1d371e

Please sign in to comment.