]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix nitpick
authorChristoph Wurst <christoph@owncloud.com>
Mon, 20 Jun 2016 07:13:47 +0000 (09:13 +0200)
committerChristoph Wurst <christoph@owncloud.com>
Mon, 20 Jun 2016 07:13:47 +0000 (09:13 +0200)
lib/private/User/Session.php

index cd9e973e306a4622f798e8644738a93dfff6ebd6..07235c1b42be0010ca09a5320b7c22b08c3b774e 100644 (file)
@@ -454,12 +454,13 @@ class Session implements IUserSession, Emitter {
                }
                $uid = $dbToken->getUID();
 
+               $password = '';
                try {
                        $password = $this->tokenProvider->getPassword($dbToken, $token);
-                       $this->manager->emit('\OC\User', 'preLogin', array($uid, $password));
                } catch (PasswordlessTokenException $ex) {
-                       $this->manager->emit('\OC\User', 'preLogin', array($uid, ''));
+                       // Ignore and use empty string instead
                }
+               $this->manager->emit('\OC\User', 'preLogin', array($uid, $password));
 
                $user = $this->manager->get($uid);
                if (is_null($user)) {