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

What for setPasswordAttribute in User Model? #27

Closed
sugengsuprayogi opened this issue Mar 17, 2016 · 3 comments
Closed

What for setPasswordAttribute in User Model? #27

sugengsuprayogi opened this issue Mar 17, 2016 · 3 comments

Comments

@sugengsuprayogi
Copy link

What for setPasswordAttribute in User Model?

Because user register can't relogin after register.

@r4lly99
Copy link

r4lly99 commented Mar 18, 2016

hi sugeng , i try to answer you question, i think that setter for password , so when password being saved to the database , it's converted to encrypted text to secure it's value from db admin. Your second question maybe because you forgot the password itself.

@sugengsuprayogi
Copy link
Author

@r4lly99 this mutator for password use for database seeder, the user can't log in after register and enabled by admin

@sroutier
Copy link
Collaborator

Thanks for the tip @sugengsuprayogi. You were totally correct.
/s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants