Admin Portal - Profile

This commit is contained in:
hillelcoren 2021-11-02 08:20:51 +00:00
parent c456a84c88
commit 164a29c61a

View File

@ -48945,7 +48945,7 @@
E.showDialog(true, new O.confirmCallback_closure(typeToConfirm, callback, t1, title, askForReason, t2 ? null : t1.get$areYouSure()), context, null, true, type$.legacy_AlertDialog); E.showDialog(true, new O.confirmCallback_closure(typeToConfirm, callback, t1, title, askForReason, t2 ? null : t1.get$areYouSure()), context, null, true, type$.legacy_AlertDialog);
}, },
passwordCallback: function(alwaysRequire, callback, context) { passwordCallback: function(alwaysRequire, callback, context) {
var error, skipOAuth, exception, _null = null, var error, t4, exception, _null = null,
_s21_ = "please_set_a_password", _s21_ = "please_set_a_password",
_s12_ = "set_password", _s12_ = "set_password",
store = O.StoreProvider_of(context, type$.legacy_AppState), store = O.StoreProvider_of(context, type$.legacy_AppState),
@ -48954,15 +48954,15 @@
t2 = state, t2 = state,
t3 = t2.userCompanyStates; t3 = t2.userCompanyStates;
t2 = t2.uiState.selectedCompanyIndex; t2 = t2.uiState.selectedCompanyIndex;
skipOAuth = J.$index$asx(t3._list, t2).userCompany.user.oauthProvider.length === 0 && true; t2 = J.$index$asx(t3._list, t2).userCompany.user.oauthProvider;
if (alwaysRequire) { if (alwaysRequire) {
t2 = state; t3 = state;
t3 = t2.userCompanyStates; t4 = t3.userCompanyStates;
t2 = t2.uiState.selectedCompanyIndex; t3 = t3.uiState.selectedCompanyIndex;
t2 = !J.$index$asx(t3._list, t2).userCompany.user.hasPassword; t3 = !J.$index$asx(t4._list, t3).userCompany.user.hasPassword;
} else } else
t2 = false; t3 = false;
if (t2) { if (t3) {
t1 = t1.localeCode; t1 = t1.localeCode;
t2 = J.$index$asx($.LocalizationsProvider__localizedValues.$index(0, t1), _s21_); t2 = J.$index$asx($.LocalizationsProvider__localizedValues.$index(0, t1), _s21_);
if (t2 == null) if (t2 == null)
@ -48976,16 +48976,8 @@
if (state.get$hasRecentlyEnteredPassword() && !alwaysRequire) { if (state.get$hasRecentlyEnteredPassword() && !alwaysRequire) {
callback.call$2(_null, _null); callback.call$2(_null, _null);
return; return;
} else {
t1 = state;
t2 = t1.userCompanyStates;
t1 = t1.uiState.selectedCompanyIndex;
if (!J.$index$asx(t2._list, t1).userCompany.user.hasPassword && skipOAuth) {
callback.call$2(_null, _null);
return;
}
} }
if (skipOAuth) { if (t2.length === 0) {
E.showDialog(false, new O.passwordCallback_closure0(callback), context, _null, true, type$.Null); E.showDialog(false, new O.passwordCallback_closure0(callback), context, _null, true, type$.Null);
return; return;
} }