diff options
author | Björn Schießle <bjoern@schiessle.org> | 2013-06-10 02:03:56 -0700 |
---|---|---|
committer | Björn Schießle <bjoern@schiessle.org> | 2013-06-10 02:03:56 -0700 |
commit | db06b906e50d7d1b7eca28f51db913af1fbc81f1 (patch) | |
tree | 5fc5f5d037d0666d8628c61f5076ba3cfbd77950 /lib | |
parent | b237d0379162b52269a6ea8292165d448d075f46 (diff) | |
parent | d7a9852f7b1ea7999f730fde8bd9816da68dad8b (diff) | |
download | nextcloud-server-db06b906e50d7d1b7eca28f51db913af1fbc81f1.tar.gz nextcloud-server-db06b906e50d7d1b7eca28f51db913af1fbc81f1.zip |
Merge pull request #3610 from owncloud/encryption_recovery_for_ldap
recover encryption keys if ownCloud can't change the log-in password
Diffstat (limited to 'lib')
-rw-r--r-- | lib/user/user.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/user/user.php b/lib/user/user.php index f9466b71499..55d7848a979 100644 --- a/lib/user/user.php +++ b/lib/user/user.php @@ -131,10 +131,10 @@ class User { * @return bool */ public function setPassword($password, $recoveryPassword) { + if ($this->emitter) { + $this->emitter->emit('\OC\User', 'preSetPassword', array($this, $password, $recoveryPassword)); + } if ($this->backend->implementsActions(\OC_USER_BACKEND_SET_PASSWORD)) { - if ($this->emitter) { - $this->emitter->emit('\OC\User', 'preSetPassword', array($this, $password, $recoveryPassword)); - } $result = $this->backend->setPassword($this->uid, $password); if ($this->emitter) { $this->emitter->emit('\OC\User', 'postSetPassword', array($this, $password, $recoveryPassword)); |