[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [FIX] Unknown tag TWO_FA_INCORRECT

"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <697bc7f3190e2_3b183c742456a@gitlab-sidekiq-low-urgency-cpu-bound-v2-86649c4bfc-j7g6t.mail>

ushindi bienvenu pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki


Commits:
ac8539b3 by ushindi bienvenu at 2026-01-29T20:40:59+00:00
[FIX] Unknown tag TWO_FA_INCORRECT
---
* [FIX] Unknown tag TWO_FA_INCORRECT
---
* [FIX] Unknown tag TWO_FA_INCORRECT

See merge request tikiwiki/tiki!9434

See merge request tikiwiki/tiki!9445

- - - - -


1 changed file:

- templates/modules/mod-login_box.tpl


Changes:

=====================================
templates/modules/mod-login_box.tpl
=====================================
@@ -1,3 +1,6 @@
+{$TWO_FA_INCORRECT = TWO_FA_INCORRECT}
+{$USER_NOT_FOUND = USER_NOT_FOUND}
+{$PASSWORD_INCORRECT = PASSWORD_INCORRECT}
 {jq notonready=true}
 function capLock(e, el){
     kc = e.keyCode ? e.keyCode : e.which;
@@ -17,7 +20,7 @@ $(document).ready(function () {
     var moduleLogoInstance = "{{$module_logo_instance}}";
     var login_error = "{{$error_login}}";
 
-    if (login_error == {{TWO_FA_INCORRECT}}) {
+    if (login_error == {{$TWO_FA_INCORRECT}}) {
         displayFeedback("error", "{tr}Invalid two-factor authenticator code{/tr}");
     }
 
@@ -390,9 +393,8 @@ $(".collapse-toggle", ".siteloginbar_popup .dropdown-menu").on("click", function
         {/if}
         {if !empty($error_login)}
             {remarksbox type='errors' title="{tr}Error{/tr}"}
-                {if $error_login == -5}{tr}Invalid username or password{/tr}
-                {elseif $error_login == -3}{tr}Invalid username or password{/tr}
-                {elseif $error_login == -13}{tr}Invalid two-factor authenticator code{/tr}
+                {if $error_login == $PASSWORD_INCORRECT or $error_login == $USER_NOT_FOUND }{tr}Invalid username or password{/tr}
+                {elseif $error_login == $TWO_FA_INCORRECT}{tr}Invalid two-factor authenticator code{/tr}
                 {else}{$error_login|escape}{/if}
             {/remarksbox}
         {/if}



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/ac8539b3da002198e8a83b90cd21dab32e73c40e

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/ac8539b3da002198e8a83b90cd21dab32e73c40e
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.