Fix Web Token login (again 2) (#2140)
This commit is contained in:
parent
d6972c2a6f
commit
9435381b24
@ -111,11 +111,19 @@ function onUpdateAuthorizationState(update: ApiUpdateAuthorizationState) {
|
||||
});
|
||||
break;
|
||||
case 'authorizationStateWaitPassword':
|
||||
setGlobal({
|
||||
global = {
|
||||
...global,
|
||||
authHint: update.hint,
|
||||
hasWebAuthTokenPasswordRequired: update.noReset,
|
||||
});
|
||||
};
|
||||
|
||||
if (update.noReset) {
|
||||
global = {
|
||||
...global,
|
||||
hasWebAuthTokenPasswordRequired: true,
|
||||
};
|
||||
}
|
||||
|
||||
setGlobal(global);
|
||||
break;
|
||||
case 'authorizationStateWaitQrCode':
|
||||
setGlobal({
|
||||
|
||||
@ -141,7 +141,7 @@ export type GlobalState = {
|
||||
appConfig?: ApiAppConfig;
|
||||
canInstall?: boolean;
|
||||
hasWebAuthTokenFailed?: boolean;
|
||||
hasWebAuthTokenPasswordRequired?: boolean;
|
||||
hasWebAuthTokenPasswordRequired?: true;
|
||||
isChatInfoShown: boolean;
|
||||
isStatisticsShown?: boolean;
|
||||
isLeftColumnShown: boolean;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user