summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2013-06-10 02:03:56 -0700
committerBjörn Schießle <bjoern@schiessle.org>2013-06-10 02:03:56 -0700
commitdb06b906e50d7d1b7eca28f51db913af1fbc81f1 (patch)
tree5fc5f5d037d0666d8628c61f5076ba3cfbd77950 /lib
parentb237d0379162b52269a6ea8292165d448d075f46 (diff)
parentd7a9852f7b1ea7999f730fde8bd9816da68dad8b (diff)
downloadnextcloud-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.php6
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));