Merge pull request #1363 from owncloud/FixPasswordChange
Fix password change
This commit is contained in:
commit
ad644b4e08
|
@ -15,14 +15,8 @@ if(OC_User::isAdminUser(OC_User::getUser())) {
|
||||||
if(OC_SubAdmin::isUserAccessible(OC_User::getUser(), $username)) {
|
if(OC_SubAdmin::isUserAccessible(OC_User::getUser(), $username)) {
|
||||||
$userstatus = 'subadmin';
|
$userstatus = 'subadmin';
|
||||||
}
|
}
|
||||||
if(OC_User::getUser() === $username) {
|
if(OC_User::getUser() === $username && OC_User::checkPassword($username, $oldPassword)) {
|
||||||
if (OC_User::checkPassword($username, $oldPassword)) {
|
|
||||||
$userstatus = 'user';
|
$userstatus = 'user';
|
||||||
} else {
|
|
||||||
if (!OC_Util::isUserVerified()) {
|
|
||||||
$userstatus = null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(is_null($userstatus)) {
|
if(is_null($userstatus)) {
|
||||||
|
|
Loading…
Reference in New Issue