#127 email check on account create, updated system reference
This commit is contained in:
parent
209ae767a6
commit
52418632da
@ -1 +1 @@
|
||||
Subproject commit 88a19b1b98c69a7b66dfb20f703bb9aef1dcaf16
|
||||
Subproject commit 4e56e2399f035e122ea7861e024829b8e4927f9c
|
||||
@ -12,8 +12,8 @@ class api_mojotrollz extends \SYSTEM\API\api_system {
|
||||
}
|
||||
|
||||
public static function call_mojo_action_register($username, $password, $email, $wowpassword){
|
||||
if(!\SYSTEM\SECURITY\Security::available($username) || !self::wow_username_available($username)){
|
||||
throw new \SYSTEM\LOG\ERROR('Username is not available.');}
|
||||
if(!\SYSTEM\SECURITY\Security::available($username,$email) || !self::wow_username_available($username)){
|
||||
throw new \SYSTEM\LOG\ERROR('EMail is already in use or Username is not available.');}
|
||||
|
||||
if( !\SYSTEM\SECURITY\Security::create($username, $password, $email, \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DEFAULT_LANG)) ||
|
||||
!self::wow_account_register($username,$email,$wowpassword)){
|
||||
|
||||
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user