Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ability to auto-hash elements. #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Added ability to auto-hash elements. #24

wants to merge 2 commits into from

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