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;
|
break;
|
||||||
case 'authorizationStateWaitPassword':
|
case 'authorizationStateWaitPassword':
|
||||||
setGlobal({
|
global = {
|
||||||
...global,
|
...global,
|
||||||
authHint: update.hint,
|
authHint: update.hint,
|
||||||
hasWebAuthTokenPasswordRequired: update.noReset,
|
};
|
||||||
});
|
|
||||||
|
if (update.noReset) {
|
||||||
|
global = {
|
||||||
|
...global,
|
||||||
|
hasWebAuthTokenPasswordRequired: true,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
setGlobal(global);
|
||||||
break;
|
break;
|
||||||
case 'authorizationStateWaitQrCode':
|
case 'authorizationStateWaitQrCode':
|
||||||
setGlobal({
|
setGlobal({
|
||||||
|
|||||||
@ -141,7 +141,7 @@ export type GlobalState = {
|
|||||||
appConfig?: ApiAppConfig;
|
appConfig?: ApiAppConfig;
|
||||||
canInstall?: boolean;
|
canInstall?: boolean;
|
||||||
hasWebAuthTokenFailed?: boolean;
|
hasWebAuthTokenFailed?: boolean;
|
||||||
hasWebAuthTokenPasswordRequired?: boolean;
|
hasWebAuthTokenPasswordRequired?: true;
|
||||||
isChatInfoShown: boolean;
|
isChatInfoShown: boolean;
|
||||||
isStatisticsShown?: boolean;
|
isStatisticsShown?: boolean;
|
||||||
isLeftColumnShown: boolean;
|
isLeftColumnShown: boolean;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user