[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 committed 2021-04-13 21:34:47 +02:00
1 parent 75c313ca92
commit 19843cc786
1623 files changed
+131949 -2288

No files matched your search

+2 -2
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;
}