Update naming
This commit is contained in:
parent
06b0571f1f
commit
032c266349
|
@ -332,7 +332,8 @@ export class AppComponent implements OnInit {
|
|||
await this.stateService.setActiveUser(message.userId);
|
||||
}
|
||||
const locked =
|
||||
(await this.authService.authStatus(message.userId)) === AuthenticationStatus.Locked;
|
||||
(await this.authService.getAuthStatus(message.userId)) ===
|
||||
AuthenticationStatus.Locked;
|
||||
if (locked) {
|
||||
this.messagingService.send("locked", { userId: message.userId });
|
||||
} else {
|
||||
|
@ -438,7 +439,8 @@ export class AppComponent implements OnInit {
|
|||
isAuthenticated: await this.stateService.getIsAuthenticated({
|
||||
userId: userId,
|
||||
}),
|
||||
isLocked: (await this.authService.authStatus(userId)) === AuthenticationStatus.Locked,
|
||||
isLocked:
|
||||
(await this.authService.getAuthStatus(userId)) === AuthenticationStatus.Locked,
|
||||
email: stateAccounts[i].profile.email,
|
||||
userId: stateAccounts[i].profile.userId,
|
||||
};
|
||||
|
@ -593,7 +595,7 @@ export class AppComponent implements OnInit {
|
|||
const keys = Object.keys(accounts);
|
||||
if (keys.length > 0) {
|
||||
for (const userId of keys) {
|
||||
if ((await this.authService.authStatus(userId)) === AuthenticationStatus.Unlocked) {
|
||||
if ((await this.authService.getAuthStatus(userId)) === AuthenticationStatus.Unlocked) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -86,7 +86,9 @@ export class AccountSwitcherComponent implements OnInit {
|
|||
async ngOnInit(): Promise<void> {
|
||||
this.stateService.accounts.subscribe(async (accounts: { [userId: string]: Account }) => {
|
||||
for (const userId in accounts) {
|
||||
accounts[userId].profile.authenticationStatus = await this.authService.authStatus(userId);
|
||||
accounts[userId].profile.authenticationStatus = await this.authService.getAuthStatus(
|
||||
userId
|
||||
);
|
||||
}
|
||||
|
||||
this.accounts = await this.createSwitcherAccounts(accounts);
|
||||
|
|
Loading…
Reference in New Issue