Skip to content

Conversation

@cristianuibar
Copy link

If the attribute name ends with _hash it will be automatically hashed. It is useful for passwords when being inserted in DB. This implementation suits you best if your fields are like: "password_hash", "token_hash" and so on.

Uibar Ion-Cristian added 2 commits September 20, 2014 17:27
If the attribute name ends with _hash it will be automaticaly hashed. It
is useful for passwords when beeing inserted in DB. A different
implementation might be possible but this one suits me best since my
fields are like: "password_hash", "token_hash" and so on.
Updated to use regex insted of function and removed the pull of another
user so you can pull his fix insted of mine for events not triggering.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant