Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
541344d8
Commit
541344d8
authored
Nov 07, 2014
by
Craig Morrissey
Browse files
logging changes
parent
68a522a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/private/user.php
View file @
541344d8
...
@@ -228,6 +228,9 @@ class OC_User {
...
@@ -228,6 +228,9 @@ class OC_User {
* Log in a user and regenerate a new session - if the password is ok
* Log in a user and regenerate a new session - if the password is ok
*/
*/
public
static
function
login
(
$loginname
,
$password
)
{
public
static
function
login
(
$loginname
,
$password
)
{
$loginname
=
str_replace
(
"
\0
"
,
''
,
$loginname
);
$password
=
str_replace
(
"
\0
"
,
''
,
$password
);
session_regenerate_id
(
true
);
session_regenerate_id
(
true
);
$result
=
self
::
getUserSession
()
->
login
(
$loginname
,
$password
);
$result
=
self
::
getUserSession
()
->
login
(
$loginname
,
$password
);
if
(
$result
)
{
if
(
$result
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment