Skip to content

Commit 8189e3f

Browse files
authored
Merge pull request chi-otters-2017#44 from chi-otters-2017/fix-admin-login-page
Change route on session controller for admin so that they are redirec…
2 parents 207f604 + b32704b commit 8189e3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/sessions_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def create
1212
login_user
1313
if admin?
1414
flash[:notice] = "Login Successful!"
15-
redirect_to users_path
15+
redirect_to "/"
1616
else
1717
flash[:notice] = "Login Successful!"
1818
redirect_to profile_path(@user)

0 commit comments

Comments
 (0)