Published in: Rails
def login if request.post? begin session[:user] = User.authenticate(params[:employee][:email], params[:employee][:password]).id redirect_to :controller => 'tickets', :action => 'list_open' rescue AuthenticationError => e flash[:warning] = "#{e}" end end end
You need to login to post a comment.
