mirror of
https://github.com/hkalexling/Mango.git
synced 2026-04-25 00:00:52 -04:00
Fix incorrect login redirect (#64)
This commit is contained in:
@@ -63,7 +63,10 @@ class AuthHandler < Kemal::Handler
|
||||
end
|
||||
|
||||
def handle_auth(env)
|
||||
return call_next(env) if request_path_startswith env, ["/login", "/logout"]
|
||||
if request_path_startswith env, ["/login", "/logout"] ||
|
||||
requesting_static_file env
|
||||
return call_next(env)
|
||||
end
|
||||
|
||||
unless validate_token env
|
||||
env.session.string "callback", env.request.path
|
||||
|
||||
Reference in New Issue
Block a user