[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Unknown tag TWO_FA_INCORRECT

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

ushindi bienvenu pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
2d177ac5 by ushindi bienvenu at 2026-01-29T16:55:20+00:00
[FIX] Unknown tag TWO_FA_INCORRECT
---
* [FIX] Unknown tag TWO_FA_INCORRECT

See merge request tikiwiki/tiki!9434

- - - - -


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/2d177ac545ea6796dda03991710adb38cce7bb5f

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/2d177ac545ea6796dda03991710adb38cce7bb5f
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.