#12206 User password change limitation to local
This commit is contained in:
parent
116702e2b3
commit
041a13cb49
|
@ -418,7 +418,7 @@ switch ($login_screen) {
|
|||
}
|
||||
|
||||
if ($config['enterprise_installed']) {
|
||||
if ($config['reset_pass_option']) {
|
||||
if ($config['reset_pass_option'] && $config['auth'] === 'mysql') {
|
||||
$reset_pass_link = 'reset_pass.php';
|
||||
// Reset password link.
|
||||
echo '<div class="reset_password">';
|
||||
|
|
|
@ -688,6 +688,9 @@ if ($update_user) {
|
|||
$id_user = (string) get_parameter('id_user', '');
|
||||
|
||||
if ($password_new != '') {
|
||||
if ($config['auth'] !== 'mysql') {
|
||||
ui_print_error_message(__('It is not possible to change the password because external authentication is being used'));
|
||||
} else {
|
||||
$correct_password = false;
|
||||
|
||||
$user_credentials_check = process_user_login($id_user, $own_password_confirm, true);
|
||||
|
@ -780,6 +783,7 @@ if ($update_user) {
|
|||
);
|
||||
ui_print_error_message(__('Passwords does not match'));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$has_skin = false;
|
||||
$has_wizard = false;
|
||||
|
|
Loading…
Reference in New Issue