mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 08:14:44 -04:00
Admin Portal - Profile
This commit is contained in:
parent
c456a84c88
commit
164a29c61a
26
public/main.profile.dart.js
vendored
26
public/main.profile.dart.js
vendored
@ -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);
|
||||
},
|
||||
passwordCallback: function(alwaysRequire, callback, context) {
|
||||
var error, skipOAuth, exception, _null = null,
|
||||
var error, t4, exception, _null = null,
|
||||
_s21_ = "please_set_a_password",
|
||||
_s12_ = "set_password",
|
||||
store = O.StoreProvider_of(context, type$.legacy_AppState),
|
||||
@ -48954,15 +48954,15 @@
|
||||
t2 = state,
|
||||
t3 = t2.userCompanyStates;
|
||||
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) {
|
||||
t2 = state;
|
||||
t3 = t2.userCompanyStates;
|
||||
t2 = t2.uiState.selectedCompanyIndex;
|
||||
t2 = !J.$index$asx(t3._list, t2).userCompany.user.hasPassword;
|
||||
t3 = state;
|
||||
t4 = t3.userCompanyStates;
|
||||
t3 = t3.uiState.selectedCompanyIndex;
|
||||
t3 = !J.$index$asx(t4._list, t3).userCompany.user.hasPassword;
|
||||
} else
|
||||
t2 = false;
|
||||
if (t2) {
|
||||
t3 = false;
|
||||
if (t3) {
|
||||
t1 = t1.localeCode;
|
||||
t2 = J.$index$asx($.LocalizationsProvider__localizedValues.$index(0, t1), _s21_);
|
||||
if (t2 == null)
|
||||
@ -48976,16 +48976,8 @@
|
||||
if (state.get$hasRecentlyEnteredPassword() && !alwaysRequire) {
|
||||
callback.call$2(_null, _null);
|
||||
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);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user