Skip to content

Commit

Permalink
better variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
blizzz committed Oct 22, 2014
1 parent e0342db commit 993376f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/private/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,16 +224,17 @@ public static function deleteUser($uid) {

/**
* 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;
Expand Down

0 comments on commit 993376f

Please sign in to comment.