Navigation

Search

phpBB3_password_check

Description

Encrypts passwords using phpBB3's custom encryption method.

Syntax

mixed phpBB3_password_check (string $passwd, string $passwd_hash)



Parameter $passwd

Expected type: String
Description: The password, as entered by the user



Parameter $passwd_hash

Expected type: String
Description: The password hash that's stored in SMF's members table. This is used solely to determine whether or not we even need to encrypt the password using this function.



Return value

Expected type: Mixed
Description:

Possible types
Allowed values Description
Void Doesn't return anything if the password hash isn't 34 characters
String The hashed password


Notes

  • Prevents users from having to change their passwords after converting from phpBB3
  • Only called if the password hash is exactly 34 characters long
View all versions of this function