auth0-lock 12.4.0 → 12.5.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.
- package/.github/workflows/test.yml +1 -1
- package/.version +1 -1
- package/CHANGELOG.md +5 -0
- package/Makefile +1 -1
- package/README.md +1 -1
- package/lib/__tests__/connection/database/actions.js +1 -1
- package/lib/__tests__/connection/database/index.js +1 -1
- package/lib/__tests__/connection/database/login_pane.js +1 -1
- package/lib/__tests__/connection/database/password_reset_confirmation.js +1 -1
- package/lib/__tests__/connection/database/signed_up_confirmation.js +1 -1
- package/lib/__tests__/connection/enterprise/actions.js +1 -1
- package/lib/__tests__/connection/enterprise/hrd_pane.js +1 -1
- package/lib/__tests__/connection/enterprise/hrd_screen.js +1 -1
- package/lib/__tests__/connection/enterprise/quick_auth_screen.js +1 -1
- package/lib/__tests__/connection/passwordless/ask_vcode.js +1 -1
- package/lib/__tests__/connection/passwordless/email_sent_confirmation.js +1 -1
- package/lib/__tests__/core/actions.js +2 -2
- package/lib/__tests__/core/remote_data.js +1 -1
- package/lib/__tests__/core/signed_in_confirmation.js +1 -1
- package/lib/__tests__/core/sso/last_login_screen.js +1 -1
- package/lib/__tests__/core/tenant.js +1 -1
- package/lib/__tests__/core/web_api.js +1 -1
- package/lib/__tests__/engine/classic.js +1 -1
- package/lib/__tests__/field/captcha/third_party_captcha.js +1 -1
- package/lib/__tests__/field/field.js +1 -1
- package/lib/__tests__/i18n.js +1 -1
- package/lib/__tests__/testUtils.js +2 -2
- package/lib/__tests__/ui/box/chrome.js +1 -1
- package/lib/__tests__/ui/box/confirmation_pane.js +1 -1
- package/lib/avatar.js +1 -1
- package/lib/connection/captcha.js +54 -20
- package/lib/connection/database/actions.js +19 -8
- package/lib/connection/database/index.js +1 -1
- package/lib/connection/database/login_pane.js +11 -13
- package/lib/connection/database/login_sign_up_tabs.js +13 -17
- package/lib/connection/database/mfa_pane.js +8 -10
- package/lib/connection/database/password_reset_confirmation.js +9 -11
- package/lib/connection/database/reset_password.js +12 -16
- package/lib/connection/database/reset_password_pane.js +20 -12
- package/lib/connection/database/signed_up_confirmation.js +9 -11
- package/lib/connection/enterprise/actions.js +4 -4
- package/lib/connection/enterprise/hrd_pane.js +10 -12
- package/lib/connection/enterprise/hrd_screen.js +9 -11
- package/lib/connection/enterprise/kerberos_screen.js +9 -11
- package/lib/connection/enterprise/quick_auth_screen.js +9 -11
- package/lib/connection/enterprise.js +1 -1
- package/lib/connection/passwordless/actions.js +7 -7
- package/lib/connection/passwordless/ask_vcode.js +8 -10
- package/lib/connection/passwordless/email_sent_confirmation.js +16 -22
- package/lib/connection/passwordless/index.js +1 -1
- package/lib/connection/social/index.js +1 -1
- package/lib/core/actions.js +2 -2
- package/lib/core/client/index.js +2 -2
- package/lib/core/client/settings.js +1 -1
- package/lib/core/error_screen.js +9 -11
- package/lib/core/index.js +13 -4
- package/lib/core/loading_screen.js +12 -16
- package/lib/core/remote_data.js +9 -1
- package/lib/core/screen.js +3 -4
- package/lib/core/signed_in_confirmation.js +9 -11
- package/lib/core/sso/last_login_screen.js +9 -11
- package/lib/core/tenant/index.js +2 -2
- package/lib/core/tenant/settings.js +1 -1
- package/lib/core/web_api/helper.js +3 -3
- package/lib/core/web_api/p2_api.js +8 -3
- package/lib/core/web_api.js +7 -3
- package/lib/core.js +12 -14
- package/lib/engine/classic/login.js +9 -11
- package/lib/engine/classic/mfa_login_screen.js +9 -11
- package/lib/engine/classic/sign_up_pane.js +10 -12
- package/lib/engine/classic/sign_up_screen.js +9 -11
- package/lib/engine/classic.js +3 -4
- package/lib/engine/passwordless/social_or_email_login_screen.js +11 -13
- package/lib/engine/passwordless/social_or_phone_number_login_screen.js +11 -13
- package/lib/engine/passwordless.js +3 -4
- package/lib/field/captcha/captcha_pane.js +16 -15
- package/lib/field/captcha/third_party_captcha.js +8 -10
- package/lib/field/custom_input.js +1 -1
- package/lib/field/email/email_pane.js +9 -11
- package/lib/field/email.js +1 -1
- package/lib/field/index.js +1 -1
- package/lib/field/mfa-code/mfa_code_pane.js +9 -11
- package/lib/field/password/password_pane.js +11 -13
- package/lib/field/phone-number/phone_number_pane.js +10 -12
- package/lib/field/social/event.js +1 -1
- package/lib/field/social/social_buttons_pane.js +9 -11
- package/lib/field/username/username_pane.js +9 -11
- package/lib/field/vcode/vcode_pane.js +11 -13
- package/lib/i18n/af.js +3 -1
- package/lib/i18n/ar.js +3 -1
- package/lib/i18n/az.js +3 -1
- package/lib/i18n/bg.js +3 -1
- package/lib/i18n/ca.js +3 -1
- package/lib/i18n/cs.js +3 -1
- package/lib/i18n/da.js +3 -1
- package/lib/i18n/de.js +3 -1
- package/lib/i18n/el.js +3 -1
- package/lib/i18n/en.js +3 -1
- package/lib/i18n/es.js +3 -1
- package/lib/i18n/et.js +3 -1
- package/lib/i18n/fa.js +3 -1
- package/lib/i18n/fi.js +3 -1
- package/lib/i18n/fr.js +3 -1
- package/lib/i18n/he.js +3 -1
- package/lib/i18n/hr.js +3 -1
- package/lib/i18n/hu.js +3 -1
- package/lib/i18n/id.js +3 -1
- package/lib/i18n/it.js +3 -1
- package/lib/i18n/ja.js +3 -1
- package/lib/i18n/ko.js +3 -1
- package/lib/i18n/lt.js +3 -1
- package/lib/i18n/lv.js +3 -1
- package/lib/i18n/ms.js +3 -1
- package/lib/i18n/nb.js +3 -1
- package/lib/i18n/nl.js +3 -1
- package/lib/i18n/nn.js +3 -1
- package/lib/i18n/no.js +3 -1
- package/lib/i18n/pl.js +3 -1
- package/lib/i18n/pt-br.js +3 -1
- package/lib/i18n/pt.js +3 -1
- package/lib/i18n/ro.js +3 -1
- package/lib/i18n/ru.js +3 -1
- package/lib/i18n/sk.js +3 -1
- package/lib/i18n/sl.js +3 -1
- package/lib/i18n/sr.js +3 -1
- package/lib/i18n/sv.js +3 -1
- package/lib/i18n/tr.js +3 -1
- package/lib/i18n/ua.js +3 -1
- package/lib/i18n/uk.js +3 -1
- package/lib/i18n/vi.js +3 -1
- package/lib/i18n/zh-tw.js +3 -1
- package/lib/i18n/zh.js +3 -1
- package/lib/i18n.js +2 -2
- package/lib/lock.js +9 -10
- package/lib/passwordless.js +9 -10
- package/lib/quick-auth/actions.js +2 -2
- package/lib/sync.js +1 -1
- package/lib/ui/box/chrome.js +12 -16
- package/lib/ui/box/confirmation_pane.js +1 -1
- package/lib/ui/box/container.js +10 -13
- package/lib/ui/box/global_message.js +8 -10
- package/lib/ui/box/header.js +18 -26
- package/lib/ui/box/multisize_slide.js +12 -16
- package/lib/ui/box.js +3 -5
- package/lib/ui/input/captcha_input.js +13 -15
- package/lib/ui/input/checkbox_input.js +8 -10
- package/lib/ui/input/email_input.js +9 -11
- package/lib/ui/input/input_wrap.js +8 -10
- package/lib/ui/input/location_input.js +8 -10
- package/lib/ui/input/mfa_code_input.js +9 -11
- package/lib/ui/input/password/password_strength.js +14 -20
- package/lib/ui/input/password_input.js +10 -12
- package/lib/ui/input/phone_number_input.js +9 -11
- package/lib/ui/input/select_input.js +8 -10
- package/lib/ui/input/text_input.js +9 -11
- package/lib/ui/input/username_input.js +9 -11
- package/lib/ui/input/vcode_input.js +9 -11
- package/lib/ui/list.js +15 -21
- package/lib/utils/atom.js +2 -3
- package/lib/utils/cache.js +2 -3
- package/lib/utils/jsonp_utils.js +2 -3
- package/package.json +2 -2
|
@@ -19,28 +19,27 @@ var _index4 = require("../../store/index");
|
|
|
19
19
|
var _email = require("../../field/email");
|
|
20
20
|
var _field = require("../../field");
|
|
21
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
23
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
24
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25
25
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
26
26
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
27
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
27
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
28
28
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
29
|
-
function
|
|
30
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
29
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
32
30
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
31
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
34
|
-
function _isNativeReflectConstruct() {
|
|
32
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
35
33
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
34
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
35
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
36
36
|
var Component = /*#__PURE__*/function (_React$Component) {
|
|
37
|
-
_inherits(Component, _React$Component);
|
|
38
|
-
var _super = _createSuper(Component);
|
|
39
37
|
function Component() {
|
|
40
38
|
_classCallCheck(this, Component);
|
|
41
|
-
return
|
|
39
|
+
return _callSuper(this, Component, arguments);
|
|
42
40
|
}
|
|
43
|
-
|
|
41
|
+
_inherits(Component, _React$Component);
|
|
42
|
+
return _createClass(Component, [{
|
|
44
43
|
key: "componentDidMount",
|
|
45
44
|
value: function componentDidMount() {
|
|
46
45
|
var model = this.props.model;
|
|
@@ -71,16 +70,14 @@ var Component = /*#__PURE__*/function (_React$Component) {
|
|
|
71
70
|
});
|
|
72
71
|
}
|
|
73
72
|
}]);
|
|
74
|
-
return Component;
|
|
75
73
|
}(_react.default.Component);
|
|
76
74
|
var ResetPassword = exports.default = /*#__PURE__*/function (_Screen) {
|
|
77
|
-
_inherits(ResetPassword, _Screen);
|
|
78
|
-
var _super2 = _createSuper(ResetPassword);
|
|
79
75
|
function ResetPassword() {
|
|
80
76
|
_classCallCheck(this, ResetPassword);
|
|
81
|
-
return
|
|
77
|
+
return _callSuper(this, ResetPassword, ['forgotPassword']);
|
|
82
78
|
}
|
|
83
|
-
|
|
79
|
+
_inherits(ResetPassword, _Screen);
|
|
80
|
+
return _createClass(ResetPassword, [{
|
|
84
81
|
key: "backHandler",
|
|
85
82
|
value: function backHandler(m) {
|
|
86
83
|
return (0, _index.hasScreen)(m, 'login') ? _actions.cancelResetPassword : undefined;
|
|
@@ -126,5 +123,4 @@ var ResetPassword = exports.default = /*#__PURE__*/function (_Screen) {
|
|
|
126
123
|
return Component;
|
|
127
124
|
}
|
|
128
125
|
}]);
|
|
129
|
-
return ResetPassword;
|
|
130
126
|
}(_screen.default);
|
|
@@ -8,31 +8,32 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _email_pane = _interopRequireDefault(require("../../field/email/email_pane"));
|
|
10
10
|
var l = _interopRequireWildcard(require("../../core/index"));
|
|
11
|
+
var _captcha_pane = _interopRequireDefault(require("../../field/captcha/captcha_pane"));
|
|
12
|
+
var _captcha = require("../../connection/captcha");
|
|
11
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
12
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
16
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
15
17
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
16
18
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
17
19
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
18
|
-
function
|
|
19
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
20
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
20
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
21
21
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
22
22
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
23
|
-
function _isNativeReflectConstruct() {
|
|
23
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
24
24
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
25
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
26
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
25
27
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
26
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
28
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
27
29
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
28
30
|
var ResetPasswordPane = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
29
|
-
_inherits(ResetPasswordPane, _React$Component);
|
|
30
|
-
var _super = _createSuper(ResetPasswordPane);
|
|
31
31
|
function ResetPasswordPane() {
|
|
32
32
|
_classCallCheck(this, ResetPasswordPane);
|
|
33
|
-
return
|
|
33
|
+
return _callSuper(this, ResetPasswordPane, arguments);
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
_inherits(ResetPasswordPane, _React$Component);
|
|
36
|
+
return _createClass(ResetPasswordPane, [{
|
|
36
37
|
key: "render",
|
|
37
38
|
value: function render() {
|
|
38
39
|
var _this$props = this.props,
|
|
@@ -40,15 +41,22 @@ var ResetPasswordPane = exports.default = /*#__PURE__*/function (_React$Componen
|
|
|
40
41
|
header = _this$props.header,
|
|
41
42
|
i18n = _this$props.i18n,
|
|
42
43
|
lock = _this$props.lock;
|
|
44
|
+
var captchaPane = l.passwordResetCaptcha(lock) && l.passwordResetCaptcha(lock).get('required') ? /*#__PURE__*/_react.default.createElement(_captcha_pane.default, {
|
|
45
|
+
i18n: i18n,
|
|
46
|
+
lock: lock,
|
|
47
|
+
flow: _captcha.Flow.PASSWORD_RESET,
|
|
48
|
+
onReload: function onReload() {
|
|
49
|
+
return (0, _captcha.swapCaptcha)(l.id(lock), _captcha.Flow.PASSWORD_RESET, false, null);
|
|
50
|
+
}
|
|
51
|
+
}) : null;
|
|
43
52
|
return /*#__PURE__*/_react.default.createElement("div", null, header, /*#__PURE__*/_react.default.createElement(_email_pane.default, {
|
|
44
53
|
i18n: i18n,
|
|
45
54
|
lock: lock,
|
|
46
55
|
placeholder: emailInputPlaceholder,
|
|
47
56
|
strictValidation: false
|
|
48
|
-
}));
|
|
57
|
+
}), captchaPane);
|
|
49
58
|
}
|
|
50
59
|
}]);
|
|
51
|
-
return ResetPasswordPane;
|
|
52
60
|
}(_react.default.Component);
|
|
53
61
|
_defineProperty(ResetPasswordPane, "propTypes", {
|
|
54
62
|
emailInputPlaceholder: _propTypes.default.string.isRequired,
|
|
@@ -14,29 +14,28 @@ var l = _interopRequireWildcard(require("../../core/index"));
|
|
|
14
14
|
var _index2 = require("./index");
|
|
15
15
|
var i18n = _interopRequireWildcard(require("../../i18n"));
|
|
16
16
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
17
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
17
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
20
20
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
21
21
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
22
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
22
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
23
23
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
24
|
-
function
|
|
25
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
26
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
24
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
27
25
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
28
26
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
29
|
-
function _isNativeReflectConstruct() {
|
|
27
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
30
28
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
29
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
30
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
31
|
// TODO: can't we get this from props?
|
|
32
32
|
var SignedUpConfirmation = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
33
|
-
_inherits(SignedUpConfirmation, _React$Component);
|
|
34
|
-
var _super = _createSuper(SignedUpConfirmation);
|
|
35
33
|
function SignedUpConfirmation() {
|
|
36
34
|
_classCallCheck(this, SignedUpConfirmation);
|
|
37
|
-
return
|
|
35
|
+
return _callSuper(this, SignedUpConfirmation, arguments);
|
|
38
36
|
}
|
|
39
|
-
|
|
37
|
+
_inherits(SignedUpConfirmation, _React$Component);
|
|
38
|
+
return _createClass(SignedUpConfirmation, [{
|
|
40
39
|
key: "handleClose",
|
|
41
40
|
value: function handleClose() {
|
|
42
41
|
var _this$props = this.props,
|
|
@@ -55,7 +54,6 @@ var SignedUpConfirmation = exports.default = /*#__PURE__*/function (_React$Compo
|
|
|
55
54
|
}, /*#__PURE__*/_react.default.createElement("p", null, i18n.html(lock, ['success', 'signUp'])));
|
|
56
55
|
}
|
|
57
56
|
}]);
|
|
58
|
-
return SignedUpConfirmation;
|
|
59
57
|
}(_react.default.Component);
|
|
60
58
|
SignedUpConfirmation.propTypes = {
|
|
61
59
|
closeHandler: _propTypes.default.func.isRequired,
|
|
@@ -15,12 +15,12 @@ var l = _interopRequireWildcard(require("../../core/index"));
|
|
|
15
15
|
var _captcha = require("../captcha");
|
|
16
16
|
var _index4 = require("../database/index");
|
|
17
17
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
18
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
18
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
19
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
20
20
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21
21
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22
22
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
23
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
24
24
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } // TODO: enterprise connections should not depend on database
|
|
25
25
|
// connections. However, we now allow a username input to contain also
|
|
26
26
|
// an email and this information is in the database module. We should
|
|
@@ -55,7 +55,7 @@ function logIn(id) {
|
|
|
55
55
|
if (ssoConnection && !(0, _enterprise.isHRDActive)(m)) {
|
|
56
56
|
return logInSSO(id, ssoConnection, params);
|
|
57
57
|
}
|
|
58
|
-
var isCaptchaValid = (0, _captcha.setCaptchaParams)(m, params,
|
|
58
|
+
var isCaptchaValid = (0, _captcha.setCaptchaParams)(m, params, _captcha.Flow.DEFAULT, fields);
|
|
59
59
|
if (!isCaptchaValid && !ssoConnection) {
|
|
60
60
|
return (0, _captcha.showMissingCaptcha)(m, id);
|
|
61
61
|
}
|
|
@@ -74,7 +74,7 @@ function logInActiveFlow(id, params) {
|
|
|
74
74
|
login_hint: username
|
|
75
75
|
}), function (id, error, fields, next) {
|
|
76
76
|
var wasCaptchaInvalid = error && error.code === 'invalid captcha';
|
|
77
|
-
(0, _captcha.swapCaptcha)(id,
|
|
77
|
+
(0, _captcha.swapCaptcha)(id, _captcha.Flow.DEFAULT, wasCaptchaInvalid, next);
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
function logInSSO(id, connection, params) {
|
|
@@ -13,28 +13,27 @@ var _captcha_pane = _interopRequireDefault(require("../../field/captcha/captcha_
|
|
|
13
13
|
var _captcha = require("../captcha");
|
|
14
14
|
var l = _interopRequireWildcard(require("../../core/index"));
|
|
15
15
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
18
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19
19
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
20
20
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
21
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
22
22
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
23
|
-
function
|
|
24
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
25
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
23
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
26
24
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
27
25
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
28
|
-
function _isNativeReflectConstruct() {
|
|
26
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
29
27
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
28
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
30
30
|
var HRDPane = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
31
|
-
_inherits(HRDPane, _React$Component);
|
|
32
|
-
var _super = _createSuper(HRDPane);
|
|
33
31
|
function HRDPane() {
|
|
34
32
|
_classCallCheck(this, HRDPane);
|
|
35
|
-
return
|
|
33
|
+
return _callSuper(this, HRDPane, arguments);
|
|
36
34
|
}
|
|
37
|
-
|
|
35
|
+
_inherits(HRDPane, _React$Component);
|
|
36
|
+
return _createClass(HRDPane, [{
|
|
38
37
|
key: "render",
|
|
39
38
|
value: function render() {
|
|
40
39
|
var _this$props = this.props,
|
|
@@ -47,7 +46,7 @@ var HRDPane = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
47
46
|
i18n: i18n,
|
|
48
47
|
lock: model,
|
|
49
48
|
onReload: function onReload() {
|
|
50
|
-
return (0, _captcha.swapCaptcha)(l.id(model),
|
|
49
|
+
return (0, _captcha.swapCaptcha)(l.id(model), _captcha.Flow.DEFAULT, false);
|
|
51
50
|
}
|
|
52
51
|
}) : null;
|
|
53
52
|
return /*#__PURE__*/_react.default.createElement("div", null, header, /*#__PURE__*/_react.default.createElement(_username_pane.default, {
|
|
@@ -63,7 +62,6 @@ var HRDPane = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
63
62
|
}), captchaPane);
|
|
64
63
|
}
|
|
65
64
|
}]);
|
|
66
|
-
return HRDPane;
|
|
67
65
|
}(_react.default.Component);
|
|
68
66
|
HRDPane.propTypes = {
|
|
69
67
|
header: _propTypes.default.element,
|
|
@@ -13,20 +13,20 @@ var _actions = require("./actions");
|
|
|
13
13
|
var _enterprise = require("../enterprise");
|
|
14
14
|
var i18n = _interopRequireWildcard(require("../../i18n"));
|
|
15
15
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
18
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19
19
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
20
20
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
21
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
22
22
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
23
|
-
function
|
|
24
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
25
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
23
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
26
24
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
27
25
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
28
|
-
function _isNativeReflectConstruct() {
|
|
26
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
29
27
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
28
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
30
30
|
var Component = function Component(_ref) {
|
|
31
31
|
var i18n = _ref.i18n,
|
|
32
32
|
model = _ref.model;
|
|
@@ -48,13 +48,12 @@ var Component = function Component(_ref) {
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
var HRDScreen = exports.default = /*#__PURE__*/function (_Screen) {
|
|
51
|
-
_inherits(HRDScreen, _Screen);
|
|
52
|
-
var _super = _createSuper(HRDScreen);
|
|
53
51
|
function HRDScreen() {
|
|
54
52
|
_classCallCheck(this, HRDScreen);
|
|
55
|
-
return
|
|
53
|
+
return _callSuper(this, HRDScreen, ['hrd']);
|
|
56
54
|
}
|
|
57
|
-
|
|
55
|
+
_inherits(HRDScreen, _Screen);
|
|
56
|
+
return _createClass(HRDScreen, [{
|
|
58
57
|
key: "backHandler",
|
|
59
58
|
value: function backHandler(model) {
|
|
60
59
|
return (0, _enterprise.isSingleHRDConnection)(model) ? null : _actions.cancelHRD;
|
|
@@ -80,5 +79,4 @@ var HRDScreen = exports.default = /*#__PURE__*/function (_Screen) {
|
|
|
80
79
|
return Component;
|
|
81
80
|
}
|
|
82
81
|
}]);
|
|
83
|
-
return HRDScreen;
|
|
84
82
|
}(_screen.default);
|
|
@@ -13,20 +13,20 @@ var _signed_in_confirmation = require("../../core/signed_in_confirmation");
|
|
|
13
13
|
var l = _interopRequireWildcard(require("../../core/index"));
|
|
14
14
|
var _enterprise = require("../enterprise");
|
|
15
15
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
18
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19
19
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
20
20
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
21
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
22
22
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
23
|
-
function
|
|
24
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
25
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
23
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
26
24
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
27
25
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
28
|
-
function _isNativeReflectConstruct() {
|
|
26
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
29
27
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
28
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
30
30
|
var Component = function Component(_ref) {
|
|
31
31
|
var i18n = _ref.i18n,
|
|
32
32
|
model = _ref.model;
|
|
@@ -46,13 +46,12 @@ var Component = function Component(_ref) {
|
|
|
46
46
|
});
|
|
47
47
|
};
|
|
48
48
|
var KerberosScreen = exports.default = /*#__PURE__*/function (_Screen) {
|
|
49
|
-
_inherits(KerberosScreen, _Screen);
|
|
50
|
-
var _super = _createSuper(KerberosScreen);
|
|
51
49
|
function KerberosScreen() {
|
|
52
50
|
_classCallCheck(this, KerberosScreen);
|
|
53
|
-
return
|
|
51
|
+
return _callSuper(this, KerberosScreen, ['kerberos']);
|
|
54
52
|
}
|
|
55
|
-
|
|
53
|
+
_inherits(KerberosScreen, _Screen);
|
|
54
|
+
return _createClass(KerberosScreen, [{
|
|
56
55
|
key: "renderAuxiliaryPane",
|
|
57
56
|
value: function renderAuxiliaryPane(lock) {
|
|
58
57
|
return (0, _signed_in_confirmation.renderSignedInConfirmation)(lock);
|
|
@@ -63,5 +62,4 @@ var KerberosScreen = exports.default = /*#__PURE__*/function (_Screen) {
|
|
|
63
62
|
return Component;
|
|
64
63
|
}
|
|
65
64
|
}]);
|
|
66
|
-
return KerberosScreen;
|
|
67
65
|
}(_screen.default);
|
|
@@ -14,20 +14,20 @@ var l = _interopRequireWildcard(require("../../core/index"));
|
|
|
14
14
|
var _enterprise = require("../enterprise");
|
|
15
15
|
var _index2 = require("../../connection/social/index");
|
|
16
16
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
17
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
17
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
20
20
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
21
21
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
22
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
22
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
23
23
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
24
|
-
function
|
|
25
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
26
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
24
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
27
25
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
28
26
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
29
|
-
function _isNativeReflectConstruct() {
|
|
27
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
30
28
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
29
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
30
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
31
|
// TODO: handle this from CSS
|
|
32
32
|
function icon(strategy) {
|
|
33
33
|
if (strategy === 'google-apps' || strategy === 'okta') return strategy;
|
|
@@ -63,13 +63,12 @@ var Component = function Component(_ref) {
|
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
65
|
var QuickAuthScreen = exports.default = /*#__PURE__*/function (_Screen) {
|
|
66
|
-
_inherits(QuickAuthScreen, _Screen);
|
|
67
|
-
var _super = _createSuper(QuickAuthScreen);
|
|
68
66
|
function QuickAuthScreen() {
|
|
69
67
|
_classCallCheck(this, QuickAuthScreen);
|
|
70
|
-
return
|
|
68
|
+
return _callSuper(this, QuickAuthScreen, ['enterpriseQuickAuth']);
|
|
71
69
|
}
|
|
72
|
-
|
|
70
|
+
_inherits(QuickAuthScreen, _Screen);
|
|
71
|
+
return _createClass(QuickAuthScreen, [{
|
|
73
72
|
key: "renderAuxiliaryPane",
|
|
74
73
|
value: function renderAuxiliaryPane(lock) {
|
|
75
74
|
return (0, _signed_in_confirmation.renderSignedInConfirmation)(lock);
|
|
@@ -80,5 +79,4 @@ var QuickAuthScreen = exports.default = /*#__PURE__*/function (_Screen) {
|
|
|
80
79
|
return Component;
|
|
81
80
|
}
|
|
82
81
|
}]);
|
|
83
|
-
return QuickAuthScreen;
|
|
84
82
|
}(_screen.default);
|
|
@@ -33,7 +33,7 @@ var _classic = require("../engine/classic");
|
|
|
33
33
|
var _index3 = require("./database/index");
|
|
34
34
|
var _index4 = require("../store/index");
|
|
35
35
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
36
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
36
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
37
37
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
38
38
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
39
39
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -21,13 +21,13 @@ var _phone_number = require("../../field/phone_number");
|
|
|
21
21
|
var i18n = _interopRequireWildcard(require("../../i18n"));
|
|
22
22
|
var _captcha = require("../captcha");
|
|
23
23
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
24
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
24
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
25
25
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
26
26
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
27
27
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
28
28
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29
29
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
30
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
30
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
31
31
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
32
32
|
function getErrorMessage(m, id, error) {
|
|
33
33
|
var key = error.error;
|
|
@@ -36,13 +36,13 @@ function getErrorMessage(m, id, error) {
|
|
|
36
36
|
}
|
|
37
37
|
if (error.code === 'invalid_captcha') {
|
|
38
38
|
var captchaConfig = l.passwordlessCaptcha(m);
|
|
39
|
-
key = captchaConfig.get('provider') === 'recaptcha_v2' || captchaConfig.get('provider') === 'recaptcha_enterprise' || captchaConfig.get('provider') === 'hcaptcha' || captchaConfig.get('provider') === 'auth0_v2' || captchaConfig.get('provider') === 'friendly_captcha' ? 'invalid_recaptcha' : 'invalid_captcha';
|
|
39
|
+
key = captchaConfig.get('provider') === 'recaptcha_v2' || captchaConfig.get('provider') === 'recaptcha_enterprise' || captchaConfig.get('provider') === 'hcaptcha' || captchaConfig.get('provider') === 'auth0_v2' || captchaConfig.get('provider') === 'friendly_captcha' || captchaConfig.get('provider') === 'arkose' ? 'invalid_recaptcha' : 'invalid_captcha';
|
|
40
40
|
}
|
|
41
41
|
return i18n.html(m, ['error', 'passwordless', key]) || i18n.html(m, ['error', 'passwordless', 'lock.fallback']);
|
|
42
42
|
}
|
|
43
43
|
function swapCaptchaAfterError(id, error) {
|
|
44
44
|
var wasCaptchaInvalid = error && error.code === 'invalid_captcha';
|
|
45
|
-
(0, _captcha.swapCaptcha)(id,
|
|
45
|
+
(0, _captcha.swapCaptcha)(id, _captcha.Flow.PASSWORDLESS, wasCaptchaInvalid);
|
|
46
46
|
}
|
|
47
47
|
function requestPasswordlessEmail(id) {
|
|
48
48
|
(0, _actions.validateAndSubmit)(id, ['email'], function (m) {
|
|
@@ -85,7 +85,7 @@ function sendEmail(m, id, successFn, errorFn) {
|
|
|
85
85
|
if ((0, _index4.isSendLink)(m) && !l.auth.params(m).isEmpty()) {
|
|
86
86
|
params.authParams = l.auth.params(m).toJS();
|
|
87
87
|
}
|
|
88
|
-
var isCaptchaValid = (0, _captcha.setCaptchaParams)(m, params,
|
|
88
|
+
var isCaptchaValid = (0, _captcha.setCaptchaParams)(m, params, _captcha.Flow.PASSWORDLESS, []);
|
|
89
89
|
if (!isCaptchaValid) {
|
|
90
90
|
return (0, _captcha.showMissingCaptcha)(m, id, true);
|
|
91
91
|
}
|
|
@@ -106,7 +106,7 @@ function sendSMS(id) {
|
|
|
106
106
|
phoneNumber: (0, _phone_number.phoneNumberWithDiallingCode)(m),
|
|
107
107
|
send: (0, _index4.send)(m)
|
|
108
108
|
};
|
|
109
|
-
var isCaptchaValid = (0, _captcha.setCaptchaParams)(m, params,
|
|
109
|
+
var isCaptchaValid = (0, _captcha.setCaptchaParams)(m, params, _captcha.Flow.PASSWORDLESS, []);
|
|
110
110
|
if (!isCaptchaValid) {
|
|
111
111
|
return (0, _captcha.showMissingCaptcha)(m, id, true);
|
|
112
112
|
}
|
|
@@ -166,7 +166,7 @@ function logIn(id) {
|
|
|
166
166
|
}
|
|
167
167
|
function restart(id) {
|
|
168
168
|
(0, _index.swap)(_index.updateEntity, 'lock', id, _index4.restartPasswordless);
|
|
169
|
-
(0, _captcha.swapCaptcha)(id,
|
|
169
|
+
(0, _captcha.swapCaptcha)(id, _captcha.Flow.PASSWORDLESS, false);
|
|
170
170
|
}
|
|
171
171
|
function toggleTermsAcceptance(id) {
|
|
172
172
|
(0, _index.swap)(_index.updateEntity, 'lock', id, _index4.toggleTermsAcceptance);
|