fix password setting via android; update mail_template to show that you can set passwords

This commit is contained in:
2018-03-26 19:26:14 +02:00
parent 4f76e45ae5
commit 6f6ad7bccb
3 changed files with 12 additions and 13 deletions

View File

@@ -306,7 +306,7 @@ class mxDatabase
function updatePassword($localpart, $old_password, $new_password) {
$user = $this->getUserForLogin($localpart, $old_password);
if ($user != NULL) {
if ($user == NULL) {
throw new Exception ("user with that credentials not found");
}