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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
9b7c3a5c
Commit
9b7c3a5c
authored
11 years ago
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
fixing PHPDoc and use cameCase names
parent
d8b8abb4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/private/user/session.php
+7
-7
7 additions, 7 deletions
lib/private/user/session.php
with
7 additions
and
7 deletions
lib/private/user/session.php
+
7
−
7
View file @
9b7c3a5c
...
...
@@ -115,13 +115,13 @@ class Session implements Emitter, \OCP\IUserSession {
/**
* set the login name
*
* @param string login
n
ame for the logged in user
* @param string
$
login
N
ame for the logged in user
*/
public
function
setLogin
n
ame
(
$login
n
ame
)
{
if
(
is_null
(
$login
n
ame
))
{
public
function
setLogin
N
ame
(
$login
N
ame
)
{
if
(
is_null
(
$login
N
ame
))
{
$this
->
session
->
remove
(
'loginname'
);
}
else
{
$this
->
session
->
set
(
'loginname'
,
$login
n
ame
);
$this
->
session
->
set
(
'loginname'
,
$login
N
ame
);
}
}
...
...
@@ -130,7 +130,7 @@ class Session implements Emitter, \OCP\IUserSession {
*
* @return string
*/
public
function
getLogin
n
ame
()
{
public
function
getLogin
N
ame
()
{
if
(
$this
->
activeUser
)
{
return
$this
->
session
->
get
(
'loginname'
);
}
else
{
...
...
@@ -158,7 +158,7 @@ class Session implements Emitter, \OCP\IUserSession {
if
(
!
is_null
(
$user
))
{
if
(
$user
->
isEnabled
())
{
$this
->
setUser
(
$user
);
$this
->
setLogin
n
ame
(
$uid
);
$this
->
setLogin
N
ame
(
$uid
);
$this
->
manager
->
emit
(
'\OC\User'
,
'postLogin'
,
array
(
$user
,
$password
));
return
true
;
}
else
{
...
...
@@ -176,7 +176,7 @@ class Session implements Emitter, \OCP\IUserSession {
public
function
logout
()
{
$this
->
manager
->
emit
(
'\OC\User'
,
'logout'
);
$this
->
setUser
(
null
);
$this
->
setLogin
n
ame
(
null
);
$this
->
setLogin
N
ame
(
null
);
$this
->
unsetMagicInCookie
();
}
...
...
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
register
or
sign in
to comment