Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
ldap-auth
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
German Shvetsov
ldap-auth
Commits
278297bf
Commit
278297bf
authored
Feb 08, 2016
by
stanislav.goldmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated readme.md and example.md
parent
f542f6bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
EXAMPLE.md
EXAMPLE.md
+9
-3
README.md
README.md
+3
-1
No files found.
EXAMPLE.md
View file @
278297bf
...
...
@@ -90,14 +90,20 @@ use `required` on both username and password.
# 2. Configure the routes
Note: It is important to place these views in the 'web' middleware!
Otherwise sessions will not persist.
```
php
Route
::
get
(
'/'
,
function
()
{
return
view
(
'home'
);
});
Route
::
get
(
'/login'
,
'AuthController@getLogin'
);
Route
::
post
(
'/login'
,
'AuthController@postLogin'
);
Route
::
get
(
'/logout'
,
'AuthController@getLogout'
);
Route
::
group
([
'middleware'
=>
[
'web'
]],
function
()
{
Route
::
get
(
'/login'
,
'AuthController@getLogin'
);
Route
::
post
(
'/login'
,
'AuthController@postLogin'
);
Route
::
get
(
'/logout'
,
'AuthController@getLogout'
);
});
// Register your Routes to be accessed only with authentication
Route
::
group
([
'middleware'
=>
'auth'
],
function
()
{
...
...
README.md
View file @
278297bf
...
...
@@ -3,7 +3,9 @@
# ldap-auth
Very basic
**READ ONLY**
LDAP authentication driver for
[
Laravel 5.2+
](
http://laravel.com/
)
Very basic
**READ ONLY**
LDAP authentication driver for
[
Laravel 5.2+
](
http://laravel.com/
)
Look
**[HERE]**
(https://github.com/krenor/ldap-auth/tree/1.1.0) for the package for Laravel 5.1
## Installation
...
...
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