You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The starter code has an unnecessary route that is not required by the tests. Upon successful login, the test expects to be redirected to the /account route, not /success.
Also, the /account route does not check to see if the user is logged in.
get "/success" do
if logged_in?
erb :success
else
redirect "/login"
end
end
The text was updated successfully, but these errors were encountered:
The starter code has an unnecessary route that is not required by the tests. Upon successful login, the test expects to be redirected to the /account route, not /success.
Also, the /account route does not check to see if the user is logged in.
get "/success" do
if logged_in?
erb :success
else
redirect "/login"
end
end
The text was updated successfully, but these errors were encountered: