Skip to content

Best way to require password when updating user model (ie user's email) #148

@keithmgould

Description

@keithmgould

Hi!

I'd like to ensure the user sends up a valid password when updating their email. I've followed the reconfirmation section of your README, but that suggests (requires?) that we use user.update_with_email (as seen in dummy project mutation), but I'd like to use user.update_with_password since that offers the validation I need.

Wondering if you have any solutions to this?

Thank you!

PS: Currently using user.valid_password? before user.update_with_email, which works fine. Happy to close this if you think its the best way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions