Merge branch 'dev' into staging
This commit is contained in:
commit
94b992ab3d
@ -51,6 +51,11 @@ export default class UserController extends ApiController {
|
||||
|
||||
//Hydrate user to be able to use his contact
|
||||
const userHydrated = User.hydrate<User>(prismaUser, { strategy: "excludeAll" });
|
||||
|
||||
if(!userHydrated.contact?.email || userHydrated.contact?.email === "") {
|
||||
this.httpBadRequest(response, "Email not found");
|
||||
return;
|
||||
}
|
||||
|
||||
//Check if user is whitelisted
|
||||
const isWhitelisted = await this.whitelistService.getByEmail(userHydrated.contact!.email);
|
||||
|
@ -120,7 +120,9 @@ export default class IdNotService extends BaseService {
|
||||
redirect_uri: this.variables.IDNOT_REDIRECT_URL,
|
||||
code: code,
|
||||
grant_type: "authorization_code",
|
||||
});
|
||||
});
|
||||
console.log(this.variables.IDNOT_BASE_URL + this.variables.IDNOT_CONNEXION_URL + "?" + query.toString());
|
||||
|
||||
const token = await fetch(this.variables.IDNOT_BASE_URL + this.variables.IDNOT_CONNEXION_URL + "?" + query, { method: "POST" });
|
||||
if(token.status !== 200) console.error(await token.text());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user