@igo2/auth 1.9.4 → 1.11.1

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.
@@ -1157,7 +1157,7 @@
1157
1157
  return AuthInternComponent;
1158
1158
  }());
1159
1159
  AuthInternComponent.ɵfac = function AuthInternComponent_Factory(t) { return new (t || AuthInternComponent)(i0__namespace.ɵɵdirectiveInject(AuthService), i0__namespace.ɵɵdirectiveInject(i2__namespace.LanguageService), i0__namespace.ɵɵdirectiveInject(i3__namespace$2.FormBuilder)); };
1160
- AuthInternComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: AuthInternComponent, selectors: [["igo-auth-intern"]], inputs: { allowAnonymous: "allowAnonymous" }, outputs: { login: "login" }, decls: 14, vars: 13, consts: [["role", "form", 3, "formGroup", "ngSubmit"], [1, "full-width"], ["matInput", "", "required", "", "formControlName", "username", 3, "placeholder"], ["matInput", "", "required", "", "type", "password", "formControlName", "password", 3, "placeholder"], ["mat-raised-button", "", "type", "submit", 3, "disabled"], ["mat-raised-button", "", "class", "anonymous", "type", "button", 3, "disabled", "click", 4, "ngIf"], [4, "ngIf"], ["mat-raised-button", "", "type", "button", 1, "anonymous", 3, "disabled", "click"], ["size", "3", "color", "red"]], template: function AuthInternComponent_Template(rf, ctx) {
1160
+ AuthInternComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: AuthInternComponent, selectors: [["igo-auth-intern"]], inputs: { allowAnonymous: "allowAnonymous" }, outputs: { login: "login" }, decls: 14, vars: 12, consts: [["role", "form", 3, "formGroup", "ngSubmit"], [1, "full-width"], ["matInput", "", "required", "", "formControlName", "username", 3, "placeholder"], ["matInput", "", "required", "", "type", "password", "formControlName", "password", 3, "placeholder"], ["mat-raised-button", "", "type", "submit"], ["mat-raised-button", "", "class", "anonymous", "type", "button", 3, "disabled", "click", 4, "ngIf"], [4, "ngIf"], ["mat-raised-button", "", "type", "button", 1, "anonymous", 3, "disabled", "click"], ["size", "3", "color", "red"]], template: function AuthInternComponent_Template(rf, ctx) {
1161
1161
  if (rf & 1) {
1162
1162
  i0__namespace.ɵɵelementStart(0, "form", 0);
1163
1163
  i0__namespace.ɵɵlistener("ngSubmit", function AuthInternComponent_Template_form_ngSubmit_0_listener() { return ctx.loginUser(ctx.form.value); });
@@ -1184,13 +1184,11 @@
1184
1184
  if (rf & 2) {
1185
1185
  i0__namespace.ɵɵproperty("formGroup", ctx.form);
1186
1186
  i0__namespace.ɵɵadvance(3);
1187
- i0__namespace.ɵɵpropertyInterpolate("placeholder", i0__namespace.ɵɵpipeBind1(4, 7, "igo.auth.user"));
1187
+ i0__namespace.ɵɵpropertyInterpolate("placeholder", i0__namespace.ɵɵpipeBind1(4, 6, "igo.auth.user"));
1188
1188
  i0__namespace.ɵɵadvance(4);
1189
- i0__namespace.ɵɵpropertyInterpolate("placeholder", i0__namespace.ɵɵpipeBind1(8, 9, "igo.auth.password"));
1190
- i0__namespace.ɵɵadvance(2);
1191
- i0__namespace.ɵɵproperty("disabled", !ctx.form.valid || ctx.loading);
1192
- i0__namespace.ɵɵadvance(1);
1193
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(11, 11, "igo.auth.login"));
1189
+ i0__namespace.ɵɵpropertyInterpolate("placeholder", i0__namespace.ɵɵpipeBind1(8, 8, "igo.auth.password"));
1190
+ i0__namespace.ɵɵadvance(3);
1191
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(11, 10, "igo.auth.login"));
1194
1192
  i0__namespace.ɵɵadvance(2);
1195
1193
  i0__namespace.ɵɵproperty("ngIf", ctx.allowAnonymous);
1196
1194
  i0__namespace.ɵɵadvance(1);
@@ -1808,8 +1806,12 @@
1808
1806
  var hostWithAuthByKey = _c.value;
1809
1807
  var domainRegex = new RegExp(hostWithAuthByKey.domainRegFilters);
1810
1808
  if (domainRegex.test(reqUrl)) {
1811
- hostWithKey = { key: hostWithAuthByKey.keyProperty, value: hostWithAuthByKey.keyValue };
1812
- break;
1809
+ var replace = hostWithAuthByKey.keyProperty + "=" + hostWithAuthByKey.keyValue;
1810
+ var keyAdded = new RegExp(replace, "gm");
1811
+ if (!keyAdded.test(reqUrl)) {
1812
+ hostWithKey = { key: hostWithAuthByKey.keyProperty, value: hostWithAuthByKey.keyValue };
1813
+ break;
1814
+ }
1813
1815
  }
1814
1816
  }
1815
1817
  }