Open john-999 opened 1 year ago
I believe this comment can help https://github.com/heartcombo/devise/issues/5436#issuecomment-1014152052
If you want to raise an error from the request, you can edit the permitted params to make email required (yet it's not recommended in rails community to do so)
Environment
Current behavior
When the
User
model has attributes (email
and/orid
) encrypted (using Rails' Active Record Encryption) and then, an empty "Sign up" form is submitted, the server returns a500 Internal Server Error
, due toActiveRecord::Encryption::Errors::Decryption (ActiveRecord::Encryption::Errors::Decryption)
being triggered by the lineresource.save
in Devise'sRegistrationsController
.Expected behavior
Instead, a validation error should be returned (i.e. "Email is required").
Trace