[TikiWiki-commits] [Git][tikiwiki/tiki][29.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 | <68978dc0daf4c_2c1afb864288f8@gitlab-sidekiq-low-urgency-cpu-bound-v2-fc86f445f-hs8xg.mail> |
Baraka Kinywa pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki Commits: 736c0ff8 by Marcellin Wabo at 2025-08-09T20:57:09+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 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!8245 - - - - - 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 ===================================== @@ -413,7 +413,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/736c0ff8c331e4298a7dd0108c9561f573f8d951 -- View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/736c0ff8c331e4298a7dd0108c9561f573f8d951 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