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> {
|
||||
try {
|
||||
const email = profile.emails?.[0]?.value;
|
||||
console.log('email: ', email);
|
||||
if (!email) return cb(new Error('Missing email in OIDC profile'), false);
|
||||
|
||||
const user = await this.authentikAuthService.validateUser(email);
|
||||
console.log('user: ', user);
|
||||
if (!user) return cb(new Error('User not found'), false);
|
||||
|
||||
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 { PrismaService } from "src/prisma/prisma.service";
|
||||
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()
|
||||
export class TimesheetsCommandService extends BaseApprovalService<Timesheets>{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user