Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
d59b3ad9
Commit
d59b3ad9
authored
Aug 07, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add check for session driver before using auth class.
parent
59123fdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
auth.php
system/auth.php
+5
-5
No files found.
system/auth.php
View file @
d59b3ad9
<?php
namespace
System
;
if
(
Config
::
get
(
'session.driver'
)
==
''
)
{
throw
new
\Exception
(
"You must specify a session driver before using the Auth class."
);
}
class
Auth
{
/**
...
...
@@ -35,11 +40,6 @@ class Auth {
*/
public
static
function
user
()
{
if
(
Config
::
get
(
'session.driver'
)
==
''
)
{
throw
new
\Exception
(
"You must specify a session driver before using the Auth class."
);
}
if
(
is_null
(
static
::
$user
)
and
Session
::
has
(
static
::
$key
))
{
static
::
$user
=
call_user_func
(
Config
::
get
(
'auth.by_id'
),
Session
::
get
(
static
::
$key
));
...
...
Write
Preview
Markdown
is supported
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