Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
44a7a369
Commit
44a7a369
authored
Oct 22, 2014
by
Arthur Schiwon
Browse files
Options
Downloads
Plain Diff
Merge pull request #11702 from owncloud/fix-11637
setup filesystem by username, not login name, fixes #11637
parents
37043508
993376fb
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/private/user.php
+5
-4
5 additions, 4 deletions
lib/private/user.php
with
5 additions
and
4 deletions
lib/private/user.php
+
5
−
4
View file @
44a7a369
...
...
@@ -224,17 +224,18 @@ class OC_User {
/**
* Try to login a user
* @param string $
uid The user
name 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
)
{
OC_Util
::
setupFS
(
$uid
);
//we need to pass the user name, which may differ from login name
OC_Util
::
setupFS
(
self
::
getUserSession
()
->
getUser
()
->
getUID
());
}
return
$result
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment