Renaming "TOTP" in the login flow (#3338)

This commit is contained in:
James Hodgkinson 2025-01-07 10:05:07 +10:00 committed by GitHub
parent 028bd93059
commit ccf6792104
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,11 +1,13 @@
(% extends "login_base.html" %) (% extends "login_base.html" %)
(% block logincontainer %) (% block logincontainer %)
<label for="totp" class="form-label">TOTP</label> <label for="totp" class="form-label">Two-factor authentication code</label>
(% match errors %) (% match errors %)
(% when LoginTotpError::Syntax %) (% when LoginTotpError::Syntax %)
<span class="error">Invalid Value</span> <div class="alert alert-danger" role="alert">
<span class="error">TOTP must only consist of numbers</span> <p>Invalid Value</p>
<p>Code must only consist of numbers, please try again.</p>
</div>
(% when LoginTotpError::None %) (% when LoginTotpError::None %)
(% endmatch %) (% endmatch %)
<form id="login" action="/ui/login/totp" method="post"> <form id="login" action="/ui/login/totp" method="post">