Lines 68-73
Link Here
|
68 |
<form id="two-factor-auth" action="/cgi-bin/koha/members/two_factor_auth.pl" method="post"> |
68 |
<form id="two-factor-auth" action="/cgi-bin/koha/members/two_factor_auth.pl" method="post"> |
69 |
[% INCLUDE 'csrf-token.inc' %] |
69 |
[% INCLUDE 'csrf-token.inc' %] |
70 |
<input type="hidden" name="op" value="cud-disable-2FA" /> |
70 |
<input type="hidden" name="op" value="cud-disable-2FA" /> |
|
|
71 |
<input type="hidden" name="borrowernumber" value="[% patron.id | html %]" /> |
71 |
<input type="submit" value="Disable two-factor authentication" /> |
72 |
<input type="submit" value="Disable two-factor authentication" /> |
72 |
</form> |
73 |
</form> |
73 |
</div> |
74 |
</div> |
Lines 145-151
Link Here
|
145 |
type: "POST", |
146 |
type: "POST", |
146 |
url: "/api/v1/auth/two-factor/registration/verification", |
147 |
url: "/api/v1/auth/two-factor/registration/verification", |
147 |
success: function (data) { |
148 |
success: function (data) { |
148 |
window.location = "/cgi-bin/koha/members/two_factor_auth.pl"; |
149 |
window.location = "/cgi-bin/koha/members/two_factor_auth.pl?borrowernumber=[% patron.borrowernumber | url %]"; |
149 |
}, |
150 |
}, |
150 |
error: function (data) { |
151 |
error: function (data) { |
151 |
const error = data.responseJSON.error; |
152 |
const error = data.responseJSON.error; |