1
0
Fork 0
mirror of synced 2024-06-29 03:30:34 +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', '$id',
'email', 'email',
'emailVerification',
'registration', 'registration',
'name', 'name',
], ],

View file

@ -53,11 +53,11 @@ $utopia->post('/v1/users')
'write' => ['user:{self}'], 'write' => ['user:{self}'],
], ],
'email' => $email, 'email' => $email,
'emailVerification' => false,
'status' => Auth::USER_STATUS_UNACTIVATED, 'status' => Auth::USER_STATUS_UNACTIVATED,
'password' => Auth::passwordHash($password), 'password' => Auth::passwordHash($password),
'password-update' => time(), 'password-update' => time(),
'registration' => time(), 'registration' => time(),
'emailVerification' => false,
'reset' => false, 'reset' => false,
'name' => $name, 'name' => $name,
]); ]);