refactor(auth): removed verification console logs
This commit is contained in:
parent
88f7c0cb0e
commit
8b514c8beb
|
|
@ -50,11 +50,9 @@ export class AuthentikStrategy extends PassportStrategy(OIDCStrategy, 'openidcon
|
||||||
): Promise<any> {
|
): Promise<any> {
|
||||||
try {
|
try {
|
||||||
const email = profile.emails?.[0]?.value;
|
const email = profile.emails?.[0]?.value;
|
||||||
console.log('email: ', email);
|
|
||||||
if (!email) return cb(new Error('Missing email in OIDC profile'), false);
|
if (!email) return cb(new Error('Missing email in OIDC profile'), false);
|
||||||
|
|
||||||
const user = await this.authentikAuthService.validateUser(email);
|
const user = await this.authentikAuthService.validateUser(email);
|
||||||
console.log('user: ', user);
|
|
||||||
if (!user) return cb(new Error('User not found'), false);
|
if (!user) return cb(new Error('User not found'), false);
|
||||||
|
|
||||||
return cb(null, user);
|
return cb(null, user);
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import { EmailToIdResolver } from "src/modules/shared/utils/resolve-email-id.uti
|
||||||
import { BankCodesResolver } from "src/modules/shared/utils/resolve-bank-type-id.utils";
|
import { BankCodesResolver } from "src/modules/shared/utils/resolve-bank-type-id.utils";
|
||||||
import { PrismaService } from "src/prisma/prisma.service";
|
import { PrismaService } from "src/prisma/prisma.service";
|
||||||
import { TimesheetMap } from "../utils-helpers-others/timesheet.types";
|
import { TimesheetMap } from "../utils-helpers-others/timesheet.types";
|
||||||
import { Shift, Expense } from "../dtos/timesheet.dto";
|
import { Shift, Expense } from "src/modules/shared/classes/timesheet.dto";
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class TimesheetsCommandService extends BaseApprovalService<Timesheets>{
|
export class TimesheetsCommandService extends BaseApprovalService<Timesheets>{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user