mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Redirect auth token to login
This commit is contained in:
parent
0e22a0c21a
commit
f6a4d04070
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ module Invidious::Routes::Account
|
||||||
referer = get_referer(env)
|
referer = get_referer(env)
|
||||||
|
|
||||||
if !user
|
if !user
|
||||||
return env.redirect referer
|
return env.redirect "/login?referer=#{URI.encode_path_segment(env.request.resource)}"
|
||||||
end
|
end
|
||||||
|
|
||||||
user = user.as(User)
|
user = user.as(User)
|
||||||
|
|
Loading…
Reference in a new issue