[Web] Fix mailbox editing when password is unchanged, fix adding new administrator (fixes #4054, fixes #4053); [Web] Update libs, add LDAP for future admin/domain admin authentication

This commit is contained in:
andryyy
2021-04-13 21:34:47 +02:00
parent 75c313ca92
commit 19843cc786
1623 changed files with 131949 additions and 2288 deletions

View File

@@ -48,7 +48,7 @@ function admin($_action, $_data = null) {
return false;
}
}
if (password_check($password_new, $password_new2) !== true) {
if (password_check($password2, $password2) !== true) {
return false;
}
// support pre hashed passwords
@@ -127,7 +127,7 @@ function admin($_action, $_data = null) {
continue;
}
}
if (!empty($password) && !empty($password2)) {
if (!empty($password)) {
if (password_check($password, $password2) !== true) {
return false;
}