]> source.dussan.org Git - nextcloud-server.git/commitdiff
better variable name
authorArthur Schiwon <blizzz@owncloud.com>
Wed, 22 Oct 2014 11:36:57 +0000 (13:36 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Wed, 22 Oct 2014 11:36:57 +0000 (13:36 +0200)
lib/private/user.php

index e02a0aaa1fcb0c4b160fa69e8b38ed72dddfa9ca..3c23c19b015cd87487d8ec90f12f03dabe2b476f 100644 (file)
@@ -224,16 +224,17 @@ class OC_User {
 
        /**
         * Try to login a user
-        * @param string $uid The username of the user to log in
+        * @param string $loginname The login name of the user to log in
         * @param string $password The password of the user
         * @return boolean|null
         *
         * Log in a user and regenerate a new session - if the password is ok
         */
-       public static function login($uid, $password) {
+       public static function login($loginname, $password) {
                session_regenerate_id(true);
-               $result = self::getUserSession()->login($uid, $password);
+               $result = self::getUserSession()->login($loginname, $password);
                if ($result) {
+                       //we need to pass the user name, which may differ from login name
                        OC_Util::setupFS(self::getUserSession()->getUser()->getUID());
                }
                return $result;