Forum Replies Created
-
AuthorPosts
-
Stefan
Participant[Solved] The problems were added backslashes in the query result, so it didn’t match the database content. Processing the result through stripslashes() did the job. Thanks again.
Stefan
ParticipantThank you – but I don’t suppose so. The code there is identical with the wp_create_hash()-example (using HashPassword() of a PasswordHash instance with (8,true) – and it produces something different from the password field of the query result.
Stefan
ParticipantIt comes down to the question what exactly the password (hash) in the query result is coming from.
If I take a random password, hash it with wp_create_password() and immediately check it with wp_check_password(), the result is true. So far, so good 🙂
If I create a new user with the password “123456789”, the query produces a result. If I check that with wp_check_password(), the result is false.
So far I see two possible reasons:
1. The passwords by Simple Membership haven’t been created on the column “password” but on something else…
2. The passwords by Simple Membership haven’t been created by a wp_create_password() call…
3. The code behind wp_check_password() in my test environment is not the same as used in my WordPress installation (unlikely since this framework code hasn’t been the subject to changes for a long time).
Any ideas?
-
AuthorPosts