Compare commits

...

1 Commits

Author SHA1 Message Date
Vivian Phung
a1bb778699
Collaborators backend 2024-06-05 18:32:27 +01:00
2 changed files with 7 additions and 4 deletions

View File

@ -66,10 +66,10 @@ router.post('/validate', async (req, res) => {
}
const newUser = await service.createUser({
ethAddress: data.address,
email: '',
name: '',
subOrgId: '',
turnkeyWalletId: '',
email: data.address,
name: data.address,
subOrgId: data.address,
turnkeyWalletId: data.address, // TODO: fix fields
});
req.session.userId = newUser.id;
} else if (action === 'login') {

View File

@ -414,6 +414,9 @@ export class Service {
if (!user) {
user = await this.db.addUser({
email: data.email,
ethAddress: data.email,
subOrgId: data.email,
turnkeyWalletId: data.email,
});
}