Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Зуев Егор
/
wiki.dev
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Dan Brown
2015-08-05 21:16:10 +0100
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
588364a2028ddbee708422fb06d6b1781328fa9b
588364a2
1 parent
71e2e057
Minor fixes to editor and auth
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
2 deletions
app/Http/Controllers/Auth/AuthController.php
app/Http/Middleware/Authenticate.php
app/Http/routes.php
resources/views/pages/form.blade.php
app/Http/Controllers/Auth/AuthController.php
View file @
588364a
...
...
@@ -25,6 +25,7 @@ class AuthController extends Controller
protected
$loginPath
=
'/login'
;
protected
$redirectPath
=
'/'
;
protected
$redirectAfterLogout
=
'/login'
;
/**
...
...
app/Http/Middleware/Authenticate.php
View file @
588364a
...
...
@@ -38,7 +38,7 @@ class Authenticate
if
(
$request
->
ajax
())
{
return
response
(
'Unauthorized.'
,
401
);
}
else
{
return
redirect
()
->
guest
(
'
auth
/login'
);
return
redirect
()
->
guest
(
'/login'
);
}
}
...
...
app/Http/routes.php
View file @
588364a
...
...
@@ -63,6 +63,7 @@ Route::group(['middleware' => 'auth'], function() {
});
Route
::
get
(
'/login'
,
'Auth\AuthController@getLogin'
);
Route
::
post
(
'/login'
,
'Auth\AuthController@postLogin'
);
Route
::
get
(
'/logout'
,
'Auth\AuthController@getLogout'
);
...
...
resources/views/pages/form.blade.php
View file @
588364a
...
...
@@ -27,7 +27,10 @@
tinymce
.
init
({
selector
:
'.edit-area textarea'
,
content_css
:
'/css/app.css'
,
content_css
:
[
'/css/app.css'
,
'//fonts.googleapis.com/css?family=Roboto:400,400italic,500,500italic,700,700italic,300italic,100,300'
],
body_class
:
'page-content'
,
relative_urls
:
false
,
statusbar
:
false
,
...
...
Please
register
or
sign in
to post a comment