NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Commit

migrating from u2f-api.js to webauthn [apple faceid bug fix]

23d6cf90
FreddlePat <[email protected]> 4 years, 6 months ago
data/web/templates/base.twig | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Diff

diff --git a/data/web/templates/base.twig b/data/web/templates/base.twig
index f16dbaac..b7c0138f 100644
--- a/data/web/templates/base.twig
+++ b/data/web/templates/base.twig
@@ -181,8 +181,11 @@ function recursiveBase64StrToArrayBuffer(obj) {
       backdrop: 'static',
       keyboard: false
     });
-    $('#webauthn_status_auth').html('<p><i class="bi bi-arrow-repeat icon-spin"></i> ' + lang_tfa.init_webauthn + '</p>');
-    $('#ConfirmTFAModal').on('shown.bs.modal', function(){
+
+    $('#webauthn_status_auth').html('<p>Press to start authentication</p>');
+    $('#start_webauthn_confirmation').click(function(){
+      $('#webauthn_status_auth').html('<p><i class="bi bi-arrow-repeat icon-spin"></i> ' + lang_tfa.init_webauthn + '</p>');
+
       $(this).find('input[name=token]').focus();
       // If WebAuthn
       if(document.getElementById("webauthn_auth_data") !== null) {