mirror of
https://github.com/iv-org/invidious
synced 2024-11-28 05:53:28 +01:00
Redirect auth token to login
This commit is contained in:
parent
0e22a0c21a
commit
f6a4d04070
@ -203,7 +203,7 @@ module Invidious::Routes::Account
|
||||
referer = get_referer(env)
|
||||
|
||||
if !user
|
||||
return env.redirect referer
|
||||
return env.redirect "/login?referer=#{URI.encode_path_segment(env.request.resource)}"
|
||||
end
|
||||
|
||||
user = user.as(User)
|
||||
|
Loading…
Reference in New Issue
Block a user