- This topic has 2 replies, 2 voices, and was last updated 1 year, 3 months ago by .
I’m having a bit of trouble working with the password field. I’m adding a pseudo login-form to a site where users can “login” to view forms added to their account.
I’ve added a field called ‘company_login’ and ‘company_password’ to a CPT. In the database I checked that a hash has been stored as the password in the wp_postmeta table for the id.
The code provided in the docs example doesn’t work however. using
rwmb_meta( 'company_password' , $postid )comes up empty handed, whereas
get_post_meta( $postid , 'company_password' )gives me the value stored in the database.
However, comparing the
wp_hash_password( $password ) === get_post_meta( $postid , 'company_password' )isn’t returning true. They are of the same type, but not the same value. I’m a bit stumped on what is going wrong.
Any ideas to what I am doing wrong?
- You must be logged in to reply to this topic.