Add handling for invalid login

This commit is contained in:
Omar Roth 2018-07-16 12:50:41 -05:00
parent 58b5e97fc4
commit 7494e864b4

View file

@ -220,10 +220,13 @@ before_all do |env|
sid = env.request.cookies["SID"].value
begin
client = make_client(YT_URL)
user = get_user(sid, client, headers, PG_DB, false)
env.set "user", user
rescue ex
end
end
end