mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
#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['enterprise_installed']) {
|
||||||
if ($config['reset_pass_option']) {
|
if ($config['reset_pass_option'] && $config['auth'] === 'mysql') {
|
||||||
$reset_pass_link = 'reset_pass.php';
|
$reset_pass_link = 'reset_pass.php';
|
||||||
// Reset password link.
|
// Reset password link.
|
||||||
echo '<div class="reset_password">';
|
echo '<div class="reset_password">';
|
||||||
|
@ -688,6 +688,9 @@ if ($update_user) {
|
|||||||
$id_user = (string) get_parameter('id_user', '');
|
$id_user = (string) get_parameter('id_user', '');
|
||||||
|
|
||||||
if ($password_new != '') {
|
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;
|
$correct_password = false;
|
||||||
|
|
||||||
$user_credentials_check = process_user_login($id_user, $own_password_confirm, true);
|
$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'));
|
ui_print_error_message(__('Passwords does not match'));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$has_skin = false;
|
$has_skin = false;
|
||||||
$has_wizard = false;
|
$has_wizard = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user