Skip to content

Commit d15394a

Browse files
committed
Fixed missing email verification attribute
1 parent 0ece2fb commit d15394a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/controllers/api/account.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ function () use ($response, &$user, $oauth2Keys) {
476476
[
477477
'$id',
478478
'email',
479+
'emailVerification',
479480
'registration',
480481
'name',
481482
],

app/controllers/api/users.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ function ($email, $password, $name) use ($response, $register, $projectDB, $prov
5353
'write' => ['user:{self}'],
5454
],
5555
'email' => $email,
56+
'emailVerification' => false,
5657
'status' => Auth::USER_STATUS_UNACTIVATED,
5758
'password' => Auth::passwordHash($password),
5859
'password-update' => time(),
5960
'registration' => time(),
60-
'emailVerification' => false,
6161
'reset' => false,
6262
'name' => $name,
6363
]);

0 commit comments

Comments
 (0)