src/AdminStore.php
public function adm_self_add_user(
		$args, $pass_twice=null, $email_required=null
	) {
		if ($this->store_is_logged_in())
			return [AdminStoreError::USER_ALREADY_LOGGED_IN];
		return $this->adm_add_user(
			$args, $pass_twice, true, $email_required);
	}
public function adm_self_add_user(
		$args, $pass_twice=null, $email_required=null
	) {
		if ($this->store_is_logged_in())
			return [AdminStoreError::USER_ALREADY_LOGGED_IN];
		return $this->adm_add_user(
			$args, $pass_twice, true, $email_required);
	}
public function adm_self_add_user ( $ args , $ pass_twice = null , $ email_required = null ) { if ( $ this -> store_is_logged_in ( ) ) return [ AdminStoreError :: USER_ALREADY_LOGGED_IN ] ; return $ this -> adm_add_user ( $ args , $ pass_twice , true , $ email_required ) ; }
Self-register.

@note This is just a special case of adm_add_user() with
additional condition: user must not be authenticated.

@param array $args Dict with keys: `addname`, `addpass1`,
and optional `addpass2` unless `$pass_twice` is set to true.
@param bool $pass_twice Whether password must be entered twice.
@param bool $email_required Whether an email address must be
provided.
Self - register .