#12794 fixed login when user use external login

This commit is contained in:
Daniel Cebrian 2024-01-30 18:22:20 +01:00
parent f084893889
commit 60d2733066
1 changed files with 1 additions and 1 deletions

View File

@ -770,7 +770,7 @@ if ($update_user) {
$id_user = (string) get_parameter('id_user', '');
if ($password_new != '') {
if ($config['auth'] !== 'mysql') {
if ($config['auth'] !== 'mysql' && $values['local_user'] === false) {
ui_print_error_message(__('It is not possible to change the password because external authentication is being used'));
} else {
$correct_password = false;