Password check logic

The following logic is used by both the database function and the equivalent PHP code.

  1. If we are not interested in checking the passwords then return.

  2. Select an old password from the control table.

  3. Extract the salt from the old password.

  4. Use the salt to encrypt the new password (provided in the clear).

  5. Compare the newly encrypted password with our loaded value.

  6. If the two match return to the calling routine with a TRUE value.

  7. If we have any more stored passwords to check go to step 2

  8. With no more passwords to check return to the caller with a FALSE value.

Go To Top

Joomla! Debug Console

Session

Profile Information

Memory Usage

Database Queries