diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index b40fb5a26..46a151e7e 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -476,6 +476,7 @@ $utopia->get('/v1/account') [ '$id', 'email', + 'emailVerification', 'registration', 'name', ], diff --git a/app/controllers/api/users.php b/app/controllers/api/users.php index 690b70a65..a48cfb8e7 100644 --- a/app/controllers/api/users.php +++ b/app/controllers/api/users.php @@ -53,11 +53,11 @@ $utopia->post('/v1/users') 'write' => ['user:{self}'], ], 'email' => $email, + 'emailVerification' => false, 'status' => Auth::USER_STATUS_UNACTIVATED, 'password' => Auth::passwordHash($password), 'password-update' => time(), 'registration' => time(), - 'emailVerification' => false, 'reset' => false, 'name' => $name, ]);