1
0
Fork 0
mirror of synced 2024-10-03 19:53:33 +13:00

chore: linter

This commit is contained in:
Christy Jacob 2023-04-14 00:59:35 +04:00
parent ef65d5a224
commit 0257a4d9f3
2 changed files with 11 additions and 2 deletions

View file

@ -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,

View file

@ -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',