Ryzom Account Management System
1.0
|
handles basic user registration & management functions (shard related). More...
Public Member Functions | |
check_Register ($values) | |
checks if entered values before registering are valid. | |
checkUser ($username) | |
checks if entered username is valid. | |
checkPassword ($pass) | |
checks if the password is valid. | |
checkEmail ($email) | |
wrapper to check if the email address is valid. | |
validEmail ($email) | |
check if the emailaddress structure is valid. | |
check_change_password ($values) | |
check if the changing of a password is valid. | |
Static Public Member Functions | |
static | generateSALT ($length=2) |
generate a SALT. | |
static | createUser ($values, $user_id) |
creates a user in the shard. | |
static | createPermissions ($pvalues) |
creates permissions in the shard db for a user. | |
Protected Member Functions | |
checkUserNameExists ($username) | |
check if username already exists. | |
checkEmailExists ($email) | |
check if email already exists. | |
checkLoginMatch ($user, $pass) | |
check if username and password matches. | |
setAmsPassword ($user, $pass) | |
sets the shards password. | |
setAmsEmail ($user, $mail) | |
sets the shards email. | |
Private Member Functions | |
confirmPassword ($pass_result, $pass, $confirmpass) | |
checks if the confirmPassword matches the original. |
handles basic user registration & management functions (shard related).
The Users class is the basis class of WebUsers, this class provides functions being used by all CMS's and our own www version. The WebUsers class however needs to be reimplemented by using the CMS's it's funcionality. This class handles the writing to the shard db mainly, and in case it's offline: writing to the ams_querycache.
check_change_password | ( | $ | values | ) |
check if the changing of a password is valid.
a mod/admin doesn't has to fill in the previous password when he wants to change the password, however for changing his own password he has to fill it in.
$values | an array containing the CurrentPass, ConfirmNewPass, NewPass and adminChangesOthers |
check_Register | ( | $ | values | ) |
checks if entered values before registering are valid.
$values | array with Username,Password, ConfirmPass and Email. |
checkEmail | ( | $ | ) |
wrapper to check if the email address is valid.
the email address |
checkEmailExists | ( | $ | ) | [protected] |
checkLoginMatch | ( | $ | user, |
$ | pass | ||
) | [protected] |
checkPassword | ( | $ | pass | ) |
checks if the password is valid.
$pass | the password willing to be used. |
checkUser | ( | $ | username | ) |
checks if entered username is valid.
$username | the username that the user wants to use. |
checkUserNameExists | ( | $ | username | ) | [protected] |
confirmPassword | ( | $ | pass_result, |
$ | pass, | ||
$ | confirmpass | ||
) | [private] |
checks if the confirmPassword matches the original.
$pass_result | the result of the previous password check. |
$pass | the original pass. |
$confirmpass | the confirmation password. |
static createPermissions | ( | $ | pvalues | ) | [static] |
creates permissions in the shard db for a user.
incase the shard is offline it will place it in the ams_querycache.
$pvalues | with username |
static createUser | ( | $ | values, |
$ | user_id | ||
) | [static] |
creates a user in the shard.
incase the shard is offline it will place it in the ams_querycache. You have to create a user first in the CMS/WWW and use the id for this function.
$values | with name,pass and mail |
$user_id | the extern id of the user (the id given by the www/CMS) |
static generateSALT | ( | $ | length = 2 | ) | [static] |
generate a SALT.
$length | the length of the SALT which is by default 2 |
setAmsEmail | ( | $ | user, |
$ | |||
) | [protected] |
sets the shards email.
in case the shard is offline, the entry will be stored in the ams_querycache.
$user | the usersname of the account of which we want to change the emailaddress. |
the new email address |
setAmsPassword | ( | $ | user, |
$ | pass | ||
) | [protected] |
sets the shards password.
in case the shard is offline, the entry will be stored in the ams_querycache.
$user | the usersname of the account of which we want to change the password. |
$pass | the new password. |
validEmail | ( | $ | ) |
check if the emailaddress structure is valid.
the email address |