Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed conditional code in password generator

  • Loading branch information...
commit 878fe138be290348e57770b835e7a00a36fe7bc2 1 parent b726e32
aledalgrande authored
View
2  generators/authlogic_generator/templates/controllers/password_resets_controller.rb
@@ -16,7 +16,7 @@ def create
flash[:notice] = "Instructions to reset your password have been emailed to you. " +
"Please check your email."
redirect_to new_user_session_path
- <% if options[:skip_activation] %>
+ <% if !options[:skip_activation] %>
elsif @user && !@user.active?
@user.deliver_activation_instructions!
flash[:error] = 'Activation needed'
Please sign in to comment.
Something went wrong with that request. Please try again.