From 6eee7e8f6cab5880d346d278a0d1b0acd6e37071 Mon Sep 17 00:00:00 2001 From: prakharlowanshi Date: Thu, 22 Jan 2026 15:42:20 +0530 Subject: [PATCH 1/2] fix the register --- .../src/app/otp/send-otp/send-otp.component.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/proxy-auth/src/app/otp/send-otp/send-otp.component.ts b/apps/proxy-auth/src/app/otp/send-otp/send-otp.component.ts index ff357703..35c85e39 100644 --- a/apps/proxy-auth/src/app/otp/send-otp/send-otp.component.ts +++ b/apps/proxy-auth/src/app/otp/send-otp/send-otp.component.ts @@ -152,9 +152,11 @@ export class SendOtpComponent extends BaseComponent implements OnInit, OnDestroy this.theme = prefersDark.matches ? Theme.DARK : Theme.LIGHT; } this.selectWidgetTheme$.pipe(filter(Boolean), takeUntil(this.destroy$)).subscribe((theme) => { + console.log('theme', theme); if (theme?.theme !== Theme.SYSTEM) { this.theme = theme?.theme || theme; } + this.loginWidgetData = theme?.registerState; this.version = theme?.version || 'v1'; this.input_fields = theme?.input_fields || 'top'; this.show_social_login_icons = theme?.icons || false; @@ -202,11 +204,10 @@ export class SendOtpComponent extends BaseComponent implements OnInit, OnDestroy ); this.otpWidgetService.loadScript(); } - this.loginWidgetData = widgetData?.find( - (widget) => widget?.service_id === FeatureServiceIds.PasswordAuthentication - ); if (!this.loginWidgetData) { - this.loginWidgetData = widgetData[0]; + this.loginWidgetData = widgetData?.find( + (widget) => widget?.service_id === FeatureServiceIds.PasswordAuthentication + ); } }); this.otpWidgetService.otpWidgetToken.pipe(filter(Boolean), takeUntil(this.destroy$)).subscribe((token) => { From c2bf3850e929c9cabbff8138a62cb9fb8e4d8a96 Mon Sep 17 00:00:00 2001 From: prakharlowanshi Date: Thu, 22 Jan 2026 15:45:04 +0530 Subject: [PATCH 2/2] remove console --- apps/proxy-auth/src/app/otp/send-otp/send-otp.component.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/proxy-auth/src/app/otp/send-otp/send-otp.component.ts b/apps/proxy-auth/src/app/otp/send-otp/send-otp.component.ts index 35c85e39..f44e9e96 100644 --- a/apps/proxy-auth/src/app/otp/send-otp/send-otp.component.ts +++ b/apps/proxy-auth/src/app/otp/send-otp/send-otp.component.ts @@ -152,7 +152,6 @@ export class SendOtpComponent extends BaseComponent implements OnInit, OnDestroy this.theme = prefersDark.matches ? Theme.DARK : Theme.LIGHT; } this.selectWidgetTheme$.pipe(filter(Boolean), takeUntil(this.destroy$)).subscribe((theme) => { - console.log('theme', theme); if (theme?.theme !== Theme.SYSTEM) { this.theme = theme?.theme || theme; }