summaryrefslogtreecommitdiffstats
path: root/settings/ajax
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2013-01-30 00:16:37 +0100
committerLukas Reschke <lukas@statuscode.ch>2013-01-30 00:16:37 +0100
commit0067ac6ca6389b61917cd7a19e7772e68ea78e8a (patch)
tree49596063062d3b89c0db441284104d2835fec7d0 /settings/ajax
parent250c565d2be9ebd7033c43c3362a44c58964c79b (diff)
downloadnextcloud-server-0067ac6ca6389b61917cd7a19e7772e68ea78e8a.tar.gz
nextcloud-server-0067ac6ca6389b61917cd7a19e7772e68ea78e8a.zip
Remove the no longer existing function "isUserVerified"
Thx @eMerzh
Diffstat (limited to 'settings/ajax')
-rw-r--r--settings/ajax/changepassword.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/settings/ajax/changepassword.php b/settings/ajax/changepassword.php
index 8d45e62e4d8..f6fa38fd9ba 100644
--- a/settings/ajax/changepassword.php
+++ b/settings/ajax/changepassword.php
@@ -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)) {
+if(OC_User::getUser() === $username && OC_User::checkPassword($username, $oldPassword)) {
$userstatus = 'user';
- } else {
- if (!OC_Util::isUserVerified()) {
- $userstatus = null;
- }
- }
}
if(is_null($userstatus)) {