]>
BookStack Code Mirror - bookstack/commitdiff
projects
/
bookstack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
92d3935
)
Applied baseUrl to login redirect
166/head
author
Chris
<redacted>
Mon, 15 Aug 2016 14:07:45 +0000
(15:07 +0100)
committer
GitHub
<redacted>
Mon, 15 Aug 2016 14:07:45 +0000
(15:07 +0100)
app/Http/Middleware/Authenticate.php
patch
|
blob
|
history
diff --git
a/app/Http/Middleware/Authenticate.php
b/app/Http/Middleware/Authenticate.php
index ee5144e6c7c4edbe95721669a7f89c704a8e8ec0..372f30bf64f545957cd3a8fb2a63e27416ec441f 100644
(file)
--- a/
app/Http/Middleware/Authenticate.php
+++ b/
app/Http/Middleware/Authenticate.php
@@
-40,7
+40,7
@@
class Authenticate
if ($request->ajax()) {
return response('Unauthorized.', 401);
} else {
- return redirect()->guest(
'/login'
);
+ return redirect()->guest(
baseUrl('/login')
);
}
}