This website requires JavaScript.
Explore
Help
Register
Sign In
github-mirror
/
BookStack
Watch
2
Star
0
Fork
0
You've already forked BookStack
mirror of
https://github.com/BookStackApp/BookStack.git
synced
2024-11-30 04:33:41 +08:00
Code
Issues
Actions
12
Packages
Projects
Releases
Wiki
Activity
21f2a7087c
BookStack
/
app
/
Exceptions
/
ApiAuthException.php
8 lines
97 B
PHP
Raw
Normal View
History
Unescape
Escape
Extracted API auth into guard Also implemented more elegant solution to allowing session auth for API routes; A new 'StartSessionIfCookieExists' middleware, which wraps the default 'StartSession' middleware will run for API routes which only sets up the session if a session cookie is found on the request. Also decrypts only the session cookie. Also cleaned some TokenController codeclimate warnings.
2019-12-30 22:51:28 +08:00
<
?
php
namespace
BookStack\Exceptions
;
Ran phpcbf and updated phpcs.xml
2021-03-08 06:24:05 +08:00
class
ApiAuthException
extends
UnauthorizedException
{
}
Reference in New Issue
Copy Permalink