Skip to content
Snippets Groups Projects
Commit ad644b4e authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Merge pull request #1363 from owncloud/FixPasswordChange

Fix password change
parents a26f17c1 a7aff486
No related branches found
No related tags found
No related merge requests found
......@@ -15,14 +15,8 @@ if(OC_User::isAdminUser(OC_User::getUser())) {
if(OC_SubAdmin::isUserAccessible(OC_User::getUser(), $username)) {
$userstatus = 'subadmin';
}
if(OC_User::getUser() === $username) {
if (OC_User::checkPassword($username, $oldPassword)) {
$userstatus = 'user';
} else {
if (!OC_Util::isUserVerified()) {
$userstatus = null;
}
}
if(OC_User::getUser() === $username && OC_User::checkPassword($username, $oldPassword)) {
$userstatus = 'user';
}
if(is_null($userstatus)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment