|
|
@ -32,7 +32,8 @@ import type { |
|
|
|
export class UsersService { |
|
|
|
export class UsersService { |
|
|
|
constructor(private metaService: MetaService) {} |
|
|
|
constructor(private metaService: MetaService) {} |
|
|
|
|
|
|
|
|
|
|
|
async findOne(email: string) { |
|
|
|
async findOne(_email: string) { |
|
|
|
|
|
|
|
const email = _email.toLowerCase(); |
|
|
|
const user = await this.metaService.metaGet(null, null, MetaTable.USERS, { |
|
|
|
const user = await this.metaService.metaGet(null, null, MetaTable.USERS, { |
|
|
|
email, |
|
|
|
email, |
|
|
|
}); |
|
|
|
}); |
|
|
@ -50,7 +51,7 @@ export class UsersService { |
|
|
|
email: string; |
|
|
|
email: string; |
|
|
|
lastname: any; |
|
|
|
lastname: any; |
|
|
|
}) { |
|
|
|
}) { |
|
|
|
return this.metaService.metaInsert2(null, null, MetaTable.USERS, param); |
|
|
|
return this.metaService.metaInsert2(null, null, MetaTable.USERS, { ...param, email: param.email?.toLowerCase() }); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async registerNewUserIfAllowed({ |
|
|
|
async registerNewUserIfAllowed({ |
|
|
|