diff --git a/CHANGELOG.md b/CHANGELOG.md index d774d442..39221519 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ ### Unreleased * enhancements + * The hint about minimum password length required both `@validatable` and `@minimum_password_length` + variables on the views, it now uses only the latter. If you have generated the views + relying on the `@validatable` variable, replace it with `@minimum_password_length`. * Added an ActiveSupport load hook for `:devise_controller` (by @nakhli) * Location fragments are now preserved between requests (by @jbourassa) * Added an `after_remembered` callback for the Rememerable module (by @BM5k) diff --git a/app/controllers/devise_controller.rb b/app/controllers/devise_controller.rb index 4ab8d570..589bd623 100644 --- a/app/controllers/devise_controller.rb +++ b/app/controllers/devise_controller.rb @@ -156,8 +156,7 @@ MESSAGE # Sets minimum password length to show to user def set_minimum_password_length - @validatable = devise_mapping.validatable? - if @validatable + if devise_mapping.validatable? @minimum_password_length = resource_class.password_length.min end end diff --git a/app/views/devise/passwords/edit.html.erb b/app/views/devise/passwords/edit.html.erb index a2ce2f5b..0ee12dd2 100644 --- a/app/views/devise/passwords/edit.html.erb +++ b/app/views/devise/passwords/edit.html.erb @@ -6,7 +6,7 @@