Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

unless for conditional code in password reset

  • Loading branch information...
commit 9ef7b31d00d09ad3600dc5e622d643371d6fd0ee 1 parent 495300e
aledalgrande authored
View
2  authlogic_generator.gemspec
@@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = %q{authlogic_generator}
- s.version = "0.5.4"
+ s.version = "0.5.5"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Alessandro Dal Grande", "Marco Sanson"]
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].empty? %>
+ <% unless 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.