Fix stupid breakage. Closes #708.
This commit is contained in:
parent
bb510b8ff4
commit
1c6a83f0e8
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ class UserController < ApplicationController
|
|||
redirect_to :controller => 'site', :action => 'index'
|
||||
end
|
||||
return
|
||||
elsif User.authenticate(:username => email_or_display_name, :password => pass, :invalid => true)
|
||||
elsif User.authenticate(:username => email_or_display_name, :password => pass, :inactive => true)
|
||||
flash[:notice] = "Sorry, your account is not active yet.<br>Please click on the link in the account confirmation email to activate your account."
|
||||
else
|
||||
flash[:notice] = "Sorry, couldn't log in with those details."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue