forked from cerc-io/snowballtools-base
Collaborators backend
This commit is contained in:
parent
dc7b251988
commit
a1bb778699
@ -66,10 +66,10 @@ router.post('/validate', async (req, res) => {
|
|||||||
}
|
}
|
||||||
const newUser = await service.createUser({
|
const newUser = await service.createUser({
|
||||||
ethAddress: data.address,
|
ethAddress: data.address,
|
||||||
email: '',
|
email: data.address,
|
||||||
name: '',
|
name: data.address,
|
||||||
subOrgId: '',
|
subOrgId: data.address,
|
||||||
turnkeyWalletId: '',
|
turnkeyWalletId: data.address, // TODO: fix fields
|
||||||
});
|
});
|
||||||
req.session.userId = newUser.id;
|
req.session.userId = newUser.id;
|
||||||
} else if (action === 'login') {
|
} else if (action === 'login') {
|
||||||
|
@ -414,6 +414,9 @@ export class Service {
|
|||||||
if (!user) {
|
if (!user) {
|
||||||
user = await this.db.addUser({
|
user = await this.db.addUser({
|
||||||
email: data.email,
|
email: data.email,
|
||||||
|
ethAddress: data.email,
|
||||||
|
subOrgId: data.email,
|
||||||
|
turnkeyWalletId: data.email,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user