Restore password length message in case of error

This commit is contained in:
alexsoble 2014-08-10 12:17:54 -04:00
parent fe015f5a54
commit c3fa8fabcf
1 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,10 @@ class Devise::RegistrationsController < DeviseController
end
else
clean_up_passwords resource
@validatable = devise_mapping.validatable?
if @validatable
@minimum_password_length = resource_class.password_length.min
end
respond_with resource
end
end