Skip to content
This repository was archived by the owner on Jul 21, 2020. It is now read-only.
This repository was archived by the owner on Jul 21, 2020. It is now read-only.

Password validation on all attribute updates #32

@ephracis

Description

@ephracis

Whenever I try to update an attribute of the user, the password validations kick in and throws an error because no password is sent to the update.

I don't want to turn off validations and use save(false) everywhere but registration. And I want to use update_attributes(params[:user]) since it's very convenient.

Is there a way to only have the password validations kick in when the password is supposed to be validated (ie on registration and password change)?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions