spree_social icon indicating copy to clipboard operation
spree_social copied to clipboard

does not validate empty password being add

Open andretf opened this issue 5 years ago • 0 comments

How can I add a password to a model validating empty ones by Devise?

This code

https://github.com/spree-contrib/spree_social/blob/fd5988e2d6f768fe461e9b901c1621e0a9134a38/app/models/spree/user_decorator.rb#L15

is making #update_attributes(password: "", password_confirmation: "") silently fail, rather than throwing validation error.

andretf avatar May 10 '19 19:05 andretf