ruby on rails - Permitted Params for Devise Reset Password -


i have devise auth working on rails 4 app, i'm facing problem have member model fields being validated (required) on update method (so doesn't messed sign form) noticed "reset password" uses update method, in different controller (devisecontroller). here's what's happening:

  • i try reset member's password
  • submit form (only password , password_confirmation fields)
  • got errors extra/required fields

is there way tell devise request password , password_confirmation fields on specific form?

thanks!

i had same problem, don't know why on production.

first of all, check if fields(extra/required fields) not empty, before reset password.

also can try smth in user model

   validates :first_name, :last_name, presence: true, format: { with: /\a[a-za-z]+\z/, message: 'only allows letters' }, unless: :password_reset    def password_reset     reset_password_token.present?   end 

i tested, check fields must validated before you'll reset password.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -