[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [ENH][UX] Intertiki: Hide new password fields on clients
"Baraka Kinywa \(@bkinywa24\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6892565f15e96_2cd5d90383f@gitlab-sidekiq-low-urgency-cpu-bound-v2-6b9b65f69d-7j2bd.mail> |
Baraka Kinywa pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki Commits: b2443aba by Marcellin Wabo at 2025-08-05T22:00:08+03:00 [ENH][UX] Intertiki: Hide new password fields on clients --- * [ENH][UX] Intertiki: Hide new password fields on clients --- * [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 (cherry picked from commit e454edf4385a99af70c619945224ec0390e1dc53) 2d0b05e1 [ENH][UX] Intertiki: Hide new password fields on clients Co-authored-by: Marcellin Wabo <marcellin-0Fr1x5yc1pZaa/[email protected]> See merge request tikiwiki/tiki!8193 (cherry picked from commit b280683a2d8ff809ab60f081042ad8f1561bbc84) 27381b54 [ENH][UX] Intertiki: Hide new password fields on clients Co-authored-by: Marcellin Wabo <marcellin-0Fr1x5yc1pZaa/[email protected]> See merge request tikiwiki/tiki!8199 - - - - - 2 changed files: - templates/tiki-user_preferences.tpl - tiki-user_preferences.php Changes: ===================================== templates/tiki-user_preferences.tpl ===================================== @@ -636,6 +636,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 ===================================== @@ -315,7 +315,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/b2443aba3642c49117c1e793ef141e4a919bc6e9 -- View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/b2443aba3642c49117c1e793ef141e4a919bc6e9 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