[update]
This commit is contained in:
@@ -44,7 +44,8 @@ export class LoginComponent implements OnInit {
|
||||
if (!form.valid) return false;
|
||||
try {
|
||||
const result = await lastValueFrom(this.authService.login(this.dataForm));
|
||||
// const cathayResult = await lastValueFrom(this.cathayAuthService.login(this.cathayForm))
|
||||
const cathayResult: any = await lastValueFrom(this.cathayAuthService.login(this.cathayForm));
|
||||
this.appService.setToken(cathayResult.token.token)
|
||||
this.appService.setAuth(result);
|
||||
return this.router.navigate(['/pages']);
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user