Skip to content

Commit

Permalink
[webui] if no user or no password are given, give an error
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed Nov 15, 2012
1 parent 9a6ac0e commit e597603
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/webui/app/controllers/user_controller.rb
Expand Up @@ -50,7 +50,8 @@ def do_login
flash[:success] = "You are logged in now"
redirect_to params[:return_to_path] and return
end
redirect_back_or_to :action => 'login'
flash.now[:error] = "Authentication failed"
redirect_to :action => 'login'
end

def save
Expand Down

0 comments on commit e597603

Please sign in to comment.