Restore password length message in case of error
This commit is contained in:
parent
fe015f5a54
commit
c3fa8fabcf
|
@ -30,6 +30,10 @@ class Devise::RegistrationsController < DeviseController
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
clean_up_passwords resource
|
clean_up_passwords resource
|
||||||
|
@validatable = devise_mapping.validatable?
|
||||||
|
if @validatable
|
||||||
|
@minimum_password_length = resource_class.password_length.min
|
||||||
|
end
|
||||||
respond_with resource
|
respond_with resource
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue