summaryrefslogtreecommitdiffstats
path: root/app/controllers/sessions_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/sessions_controller.rb')
-rw-r--r--app/controllers/sessions_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb
index d593dcc..7183891 100644
--- a/app/controllers/sessions_controller.rb
+++ b/app/controllers/sessions_controller.rb
@@ -5,6 +5,7 @@ class SessionsController < ApplicationController
end
def create
+ flash[:error] = "hai"
self.current_user = User.authenticate(params[:email], params[:password])
if logged_in?
if params[:remember_me] == "1"
@@ -14,7 +15,7 @@ class SessionsController < ApplicationController
redirect_back_or_default('/')
flash[:notice] = "Logged in successfully"
else
- flash[:error] = "Username/password didn't match, please try again."
+ flash.now[:error] = "Username/password didn't match, please try again."
render :action => 'new'
end
end