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

[MERGE REQUEST] Cookie/Remember me feature for 2-advanced #141

Closed
wants to merge 7 commits into from

Conversation

devplanete
Copy link
Contributor

Cookie login feature for 2-advanced

devplanete added 7 commits August 14, 2013 14:14
Add login via cookie feature
I put cookie conf here but ONE common configuration file need to be created with all the content of this folder
Creation on ONE common configuration file
only one common configuration file
only one common configuration file
only one common configuration file
only one common configuration file
@panique
Copy link
Owner

panique commented Aug 14, 2013

Looks good, I will test this in the next few days and then merge into the dev branch !
Thanks a lot !

@panique
Copy link
Owner

panique commented Aug 16, 2013

This is a quite good commit, buuuuut: You are putting the sha1-hashed password "directly" into the cookie, which might be dangerous. The 4-full-mvc-framework version creates a random string, writes it into the database and puts it (hashed) into the cookie. This string is only valid for the cookie lifetime. The password is never gaven away in any hashed/salted/etc way to the cookie. I think it might be better to adapt that behaviour into the 2-advanced version.

Have a look here: https://github.com/panique/php-login/blob/master/4-full-mvc-framework/models/login_model.php

Sorry, but i have to reject this merge request :(

@panique panique closed this Aug 16, 2013
@devplanete
Copy link
Contributor Author

I will have a look when I have some time

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.

None yet

2 participants