[TikiWiki-commits] [Git][tikiwiki/tiki][master] [ENH][UX] Intertiki: Hide new password fields on clients
Benoit Grégoire (@benoitg) via TikiWiki-cvs <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6891392135a1a_2cd5cb45177e@gitlab-sidekiq-low-urgency-cpu-bound-v2-58b475bb65-dh59l.mail> |
Benoit Grégoire pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
e454edf4 by Marcellin Wabo at 2025-08-04T21:38:17+00:00
[ENH][UX] Intertiki: Hide new password fields on clients
---
* [ENH][UX] Intertiki: Hide new password fields on clients
When using an Intertiki client, password updates have no effect.
In this MR, we hide the new password fields to improve the user experience and prevent unnecessary update attempts.
See merge request tikiwiki/tiki!8152
- - - - -
2 changed files:
- templates/tiki-user_preferences.tpl
- tiki-user_preferences.php
Changes:
=====================================
templates/tiki-user_preferences.tpl
=====================================
@@ -728,6 +728,11 @@
{/remarksbox}
{/if}
{/if}
+ {if $intertiki_no_password_change_warning neq ''}
+ {remarksbox type="tip" title="{tr}Information{/tr}" close="n"}
+ {tr}{$intertiki_no_password_change_warning}{/tr}
+ {/remarksbox}
+ {/if}
<div class="tiki-form-group row">
<label class="col-md-4 col-form-label" for="username-autocomplete">
{tr}Username:{/tr}
=====================================
tiki-user_preferences.php
=====================================
@@ -414,7 +414,11 @@ if ($prefs['auth_method'] == 'ldap' && $user == 'admin' && $prefs['ldap_skip_adm
$change_password = 'y';
$smarty->assign('change_password', $change_password);
}
-
+if ($prefs['feature_intertiki'] == 'y' && $prefs['feature_intertiki_server'] == 'n') {
+ $prefs['change_password'] = 'n';
+ $warning = "New password fields are hidden on Intertiki clients.\nTo update your password, please log in directly to the Intertiki server.";
+ $smarty->assign('intertiki_no_password_change_warning', $warning);
+}
$tfaSecret = $userlib->get_2_factor_secret($userwatch);
if (isset($_POST['chgadmin']) && $access->checkCsrf()) {
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/e454edf4385a99af70c619945224ec0390e1dc53
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/e454edf4385a99af70c619945224ec0390e1dc53
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