1
0
Fork 0
mirror of synced 2024-06-25 17:50:38 +12:00

Fixed missing email verification attribute

This commit is contained in:
Eldad Fux 2020-03-21 14:35:46 +02:00
parent 0ece2fbb50
commit d15394ad68
2 changed files with 2 additions and 1 deletions

View file

@ -476,6 +476,7 @@ $utopia->get('/v1/account')
[
'$id',
'email',
'emailVerification',
'registration',
'name',
],

View file

@ -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,
]);