chore: linter
This commit is contained in:
parent
ef65d5a224
commit
0257a4d9f3
2 changed files with 11 additions and 2 deletions
|
@ -2,13 +2,11 @@
|
|||
|
||||
namespace Appwrite\Auth\Validator;
|
||||
|
||||
|
||||
/**
|
||||
* Validates user password string against their personal data
|
||||
*/
|
||||
class PersonalData extends Password
|
||||
{
|
||||
|
||||
public function __construct(
|
||||
protected ?string $userId = null,
|
||||
protected ?string $email = null,
|
||||
|
|
|
@ -1276,6 +1276,17 @@ class ProjectsConsoleClientTest extends Scope
|
|||
$this->assertEquals(400, $response['body']['code']);
|
||||
$this->assertEquals(Exception::USER_PASSWORD_PERSONAL_DATA, $response['body']['type']);
|
||||
|
||||
$response = $this->client->call(Client::METHOD_POST, '/account', array_merge([
|
||||
'origin' => 'http://localhost',
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $id,
|
||||
]), [
|
||||
'email' => $email,
|
||||
'password' => $name,
|
||||
'name' => $name,
|
||||
'userId' => $userId
|
||||
]);
|
||||
|
||||
$phone = '+123456789';
|
||||
$response = $this->client->call(Client::METHOD_POST, '/users', array_merge($this->getHeaders(), [
|
||||
'content-type' => 'application/json',
|
||||
|
|
Loading…
Reference in a new issue