but this function forever answer "false". What am I doing wrong?
bcosca
unread,
May 23, 2017, 12:26:04 AM5/23/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Fat-Free Framework
Storing a password in the database is a major security hole! Once you get the hash returned by Bcrypt, you verify the typed password against that hash.
Again, don't store passwords anywhere. Just forget about them and store hashes instead.
ved
unread,
May 25, 2017, 4:17:59 PM5/25/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Fat-Free Framework
I'm not sure that's the problem he's having, he does appear to be storing just hashes on the database.
It's most likely some issue with the salt or another minor bug causing it to return false.
Anyway, I would recommend that you stop using F3's bcrypt class (that has been marked for deprecation) and start using php's own password_hash and password_verify (php 5.5+)