Ryzom Account Management System
|
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.
Users::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 |
Users::check_Register | ( | $ | values | ) |
checks if entered values before registering are valid.
$array | with Username,Password, ConfirmPass and Email. |
Users::checkEmail | ( | $ | ) |
wrapper to check if the email address is valid.
the email address |
Users::checkEmailExists | ( | $ | ) | [protected] |
Users::checkLoginMatch | ( | $ | user, |
$ | pass | ||
) | [protected] |
Users::checkPassword | ( | $ | pass | ) |
checks if the password is valid.
$pass | the password willing to be used. |
Users::checkUser | ( | $ | username | ) |
checks if entered username is valid.
$username | the username that the user wants to use. |
Users::checkUserNameExists | ( | $ | username | ) | [protected] |
Users::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 Users::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 Users::createUser | ( | $ | values, |
$ | user_id | ||
) | [static] |
creates a user in the shard.
incase the shard is offline it will place it in the ams_querycache.
$values | with name,pass and mail |
static Users::generateSALT | ( | $ | length = 2 | ) | [static] |
generate a SALT.
$length,which | is by default 2 |
Users::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 |
Users::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. |
Users::validEmail | ( | $ | ) |
check if the emailaddress structure is valid.
the email address |