Function AfterSuccessfulLogin is executed on the login page after username and password successfully verified.
$username - user-entered login name.
$password - user-entered password.
$data - array with existing user record in the login table. Access fields by $data["FieldName"].
Field names are case-sensitive. If the field name is PlayerId, you should use $data["PlayerId"]. Note that $data["playerid"] or $data["PlayerID"] will not work.
Applies to pages
Recommended sample events