Permalink
Browse files

redirect to organizations after login

  • Loading branch information...
1 parent f12a9cf commit c2e853921b2bce2951073c2fa6ff1f494ff9ce62 @mockdeep mockdeep committed Sep 24, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/controllers/application_controller.rb
  2. +1 −1 app/controllers/sessions_controller.rb
@@ -17,6 +17,6 @@ def authenticate_user!
end
def check_current_user
- redirect_to root_path if current_user
+ redirect_to organizations_path if current_user
end
end
@@ -7,7 +7,7 @@ def new
def create
if user = User.authenticate(params[:email], params[:password])
self.current_user = user
- redirect_to root_path, :notice => "Logged in!"
+ redirect_to organizations_path, :notice => "Logged in!"
else
flash.now[:error] = "Invalid email or password"
render "new"

0 comments on commit c2e8539

Please sign in to comment.