@genesislcap/foundation-login 14.78.4-alpha-c15b781.0 → 14.79.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-form.d.ts","sourceRoot":"","sources":["../../../../src/routes/login-form/login-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAKpE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAI/B,qBAKa,SAAU,SAAQ,SAAS;IAC1B,IAAI,EAAE,GAAG,EAAE,CAAM;IACjB,WAAW,EAAE,MAAM,CAAM;IACzB,UAAU,EAAE,OAAO,CAAS;IAElC,iBAAiB;
|
|
1
|
+
{"version":3,"file":"login-form.d.ts","sourceRoot":"","sources":["../../../../src/routes/login-form/login-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAKpE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAI/B,qBAKa,SAAU,SAAQ,SAAS;IAC1B,IAAI,EAAE,GAAG,EAAE,CAAM;IACjB,WAAW,EAAE,MAAM,CAAM;IACzB,UAAU,EAAE,OAAO,CAAS;IAElC,iBAAiB;IAsBjB,KAAK;IAqBL,gBAAgB,IAAI,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC;IAStD,OAAO,CAAC,yBAAyB;IA8BjC,OAAO,CAAC,iBAAiB;IAczB,iBAAiB;IAmBjB,IACI,eAAe,WAElB;IAED,cAAc,MAAO,WAAW,KAAG,IAAI,CAIrC;IAEF,UAAU;IAiBV,OAAO,CAAC,cAAc;IAQhB,YAAY;IAIZ,aAAa;IAOb,KAAK,CAAC,WAAW,EAAE,QAAQ;IA4CjC,IACI,iBAAiB,6BAEpB;IAED,IAAI,qBAAqB,YAExB;IAED,IAAI,cAAc,YAEjB;CACF"}
|
|
@@ -33,13 +33,20 @@ let LoginForm = class LoginForm extends BaseRoute {
|
|
|
33
33
|
yield this.auth.logout();
|
|
34
34
|
}
|
|
35
35
|
this.convertHostUrl();
|
|
36
|
-
|
|
36
|
+
const shouldAutofill = !this.ssoToggled &&
|
|
37
|
+
!this.credentialManager.validateRefreshCredentials(this.credentialManager.createRefreshCredentials());
|
|
38
|
+
if (shouldAutofill) {
|
|
37
39
|
yield this.autofill();
|
|
38
40
|
}
|
|
39
41
|
});
|
|
40
42
|
}
|
|
41
43
|
enter() {
|
|
42
44
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
+
const queryParams = new URLSearchParams(window.location.search);
|
|
46
|
+
const mfaToken = queryParams.get('MFA_CODE');
|
|
47
|
+
if (mfaToken) {
|
|
48
|
+
this.session.setSessionStorageItem('mfaToken', mfaToken);
|
|
49
|
+
}
|
|
43
50
|
DOM.queueUpdate(() => __awaiter(this, void 0, void 0, function* () {
|
|
44
51
|
try {
|
|
45
52
|
if (!this.connect.isConnected && this.config.autoConnect) {
|
|
@@ -192,6 +199,13 @@ let LoginForm = class LoginForm extends BaseRoute {
|
|
|
192
199
|
this.onNavigate(this.getSubRoutePath('reset-password?expired'));
|
|
193
200
|
return;
|
|
194
201
|
}
|
|
202
|
+
if (err.hasMFAError()) {
|
|
203
|
+
this.storeCredentials();
|
|
204
|
+
this.session.setSessionStorageItem('refreshToken', err.received.REFRESH_AUTH_TOKEN);
|
|
205
|
+
this.session.setSessionStorageItem('username', this.username);
|
|
206
|
+
this.setError('Please check your inbox for your login link.');
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
195
209
|
if (this.config.fields.organisation &&
|
|
196
210
|
this.config.fields.organisation.required !== false &&
|
|
197
211
|
!this.organisation.length) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-login",
|
|
3
3
|
"description": "Genesis Foundation Login",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.79.0",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/foundation-login.d.ts",
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
"test:debug": "genx test --debug"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@genesislcap/foundation-testing": "14.
|
|
53
|
-
"@genesislcap/genx": "14.
|
|
52
|
+
"@genesislcap/foundation-testing": "14.79.0",
|
|
53
|
+
"@genesislcap/genx": "14.79.0",
|
|
54
54
|
"rimraf": "^3.0.2"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@genesislcap/foundation-comms": "14.
|
|
58
|
-
"@genesislcap/foundation-ui": "14.
|
|
59
|
-
"@genesislcap/foundation-utils": "14.
|
|
60
|
-
"@genesislcap/foundation-zero": "14.
|
|
57
|
+
"@genesislcap/foundation-comms": "14.79.0",
|
|
58
|
+
"@genesislcap/foundation-ui": "14.79.0",
|
|
59
|
+
"@genesislcap/foundation-utils": "14.79.0",
|
|
60
|
+
"@genesislcap/foundation-zero": "14.79.0",
|
|
61
61
|
"@microsoft/fast-components": "^2.21.3",
|
|
62
62
|
"@microsoft/fast-element": "^1.7.0",
|
|
63
63
|
"@microsoft/fast-foundation": "^2.33.2",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
76
|
"customElements": "dist/custom-elements.json",
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "387b58371f312eade8910d403a6bcce506212bb7"
|
|
78
78
|
}
|