[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] 2FA does not let the user inputs the OTP code
"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <68da1b22d5d11_2cdf82c158f0@gitlab-sidekiq-low-urgency-cpu-bound-v2-5cc58485fb-vnttg.mail> |
Victor Emanouilov pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
8990132f by Merci Jacob at 2025-09-29T05:29:50+00:00
[FIX] 2FA does not let the user inputs the OTP code
---
* [FIX] 2FA does not let the user inputs the OTP code
See merge request tikiwiki/tiki!8666
- - - - -
2 changed files:
- tiki-login.php
- tiki-login_scr.php
Changes:
=====================================
tiki-login.php
=====================================
@@ -153,9 +153,9 @@ if ($prefs['feature_intertiki'] == 'y' && $prefs['feature_intertiki_server'] !=
}
//Enable Two-Factor Auth Input
-$twoFactorForm = 'n';
+$twoFactorForm = $prefs['twoFactorAuth'];
if (isset($_REQUEST["$twoFactorForm"])) {
- $twoFactorForm = 'y';
+ $twoFactorForm = $_REQUEST["$twoFactorForm"];
}
$smarty->assign('twoFactorForm', $twoFactorForm);
=====================================
tiki-login_scr.php
=====================================
@@ -26,9 +26,9 @@ include_once("tiki-setup.php");
//Enable Two-Factor Auth Input
-$twoFactorForm = 'n';
-if (isset($_REQUEST["twoFactorForm"])) {
- $twoFactorForm = 'y';
+$twoFactorForm = $prefs['twoFactorAuth'];
+if (isset($_REQUEST["$twoFactorForm"])) {
+ $twoFactorForm = $_REQUEST["$twoFactorForm"];
}
$smarty->assign('twoFactorForm', $twoFactorForm);
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/8990132ff4e065a5045b0f655a9dcfae7f54f97f
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/8990132ff4e065a5045b0f655a9dcfae7f54f97f
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