$data
$data : array
Bridge Generic. Is abstract class, all Bridge have to extend this class.
check_password(string $password, string $hash, string $strSalt = '', boolean $boolUseHash = false, string $strUsername = "", $arrUserdata = array()) : boolean
Check if Password matches with saved Hash
string | $password | Password |
string | $hash | Saved Passwordhash |
string | $strSalt | Saved Salt |
boolean | $boolUseHash | if $password is a hash or not |
string | $strUsername | Username |
$arrUserdata |
true if password matches
sync(array $arrUserdata) : \boolean/array
Returns Array with synched Userdata.
Please return all data, the Bridge Class handles the matching to the profilefields. If you want to sync birthday and country, add key "birthday" and "country" Key = fieldid of CMS Value = fieldvalue
array | $arrUserdata | Userdata of CMS |
Return false if sync is disabled, otherwise return array with synced data
after_login(string $strUsername, string $strPassword, boolean $boolSetAutoLogin, array $arrUserdata, boolean $boolLoginResult, string $boolUseHash = false) : boolean
Do some checks after User Passwordchecks.
Returning false prevents user from being logged into EQdkp.
string | $strUsername | |
string | $strPassword | |
boolean | $boolSetAutoLogin | |
array | $arrUserdata | |
boolean | $boolLoginResult | |
string | $boolUseHash |
True if user should be logged in, false if not
login(string $strUsername, string $strPassword, boolean $boolSetAutologin = false, boolean $boolUseHash = false) : boolean
Login method. Should only be overwritten if default login of Bridge is not enough for you.
string | $strUsername | |
string | $strPassword | |
boolean | $boolSetAutologin | |
boolean | $boolUseHash |
Return 0 is default login should be used. Otherwise return a boolean for the login status.