diff --git a/bookie/src/app/auth/login/login.component.ts b/bookie/src/app/auth/login/login.component.ts index 2ae1ccd..feeda0b 100644 --- a/bookie/src/app/auth/login/login.component.ts +++ b/bookie/src/app/auth/login/login.component.ts @@ -65,11 +65,11 @@ export class LoginComponent implements OnInit, AfterViewInit { this.router.navigate([this.returnUrl]); }, (error) => { - if (error.status === 401 && error.error.detail === 'Client is not registered') { + if (error.status === 401 && error.error.detail === 'Device is not registered') { this.showOtp = true; - this.clientId = this.cs.getCookie('client_id'); + this.clientId = this.cs.getCookie('device_id'); } - this.toaster.show('Error', error.error.details); + this.toaster.show('Error', error.error.detail); }, ); }