diff options
author | zeripath <art27@cantab.net> | 2022-01-15 16:52:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-15 17:52:56 +0100 |
commit | d7c2a2951c6a0a85f43675c83d3d639cd50eccb4 (patch) | |
tree | 52d4147b19fa6615f76fb3b8e8fadef948c5bd89 /templates/user | |
parent | e239d354c9bd80cdc1606dabd7a4de62708b742e (diff) | |
download | gitea-d7c2a2951c6a0a85f43675c83d3d639cd50eccb4.tar.gz gitea-d7c2a2951c6a0a85f43675c83d3d639cd50eccb4.zip |
Webauthn nits (#18284)
This contains some additional fixes and small nits related to #17957
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/auth/webauthn_error.tmpl | 2 | ||||
-rw-r--r-- | templates/user/settings/security/webauthn.tmpl | 10 |
2 files changed, 1 insertions, 11 deletions
diff --git a/templates/user/auth/webauthn_error.tmpl b/templates/user/auth/webauthn_error.tmpl index be46ee42a0..6f2980df7c 100644 --- a/templates/user/auth/webauthn_error.tmpl +++ b/templates/user/auth/webauthn_error.tmpl @@ -12,7 +12,7 @@ <div class="hide" data-webauthn-error-msg="duplicated"><p>{{.i18n.Tr "webauthn_error_duplicated"}}</div> <div class="hide" data-webauthn-error-msg="empty"><p>{{.i18n.Tr "webauthn_error_empty"}}</div> <div class="hide" data-webauthn-error-msg="timeout"><p>{{.i18n.Tr "webauthn_error_timeout"}}</div> - <div class="hide" data-webauthn-error-msg="0"></div> + <div class="hide" data-webauthn-error-msg="general"></div> </div> </div> <div class="actions"> diff --git a/templates/user/settings/security/webauthn.tmpl b/templates/user/settings/security/webauthn.tmpl index be8f8cccda..d447ec04b3 100644 --- a/templates/user/settings/security/webauthn.tmpl +++ b/templates/user/settings/security/webauthn.tmpl @@ -28,16 +28,6 @@ </div> </div> -<div class="ui small modal" id="register-device"> - <div class="header">{{.i18n.Tr "settings.webauthn_register_key"}}</div> - <div class="content"> - <i class="notched spinner loading icon"></i> {{.i18n.Tr "settings.webauthn_press_button"}} - </div> - <div class="actions"> - <div class="ui cancel button">{{.i18n.Tr "cancel"}}</div> - </div> -</div> - {{template "user/auth/webauthn_error" .}} <div class="ui small basic delete modal" id="delete-registration"> |