mario-core 2.9.190-release → 2.9.192-release

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.
@@ -22183,9 +22183,10 @@ var getUserNewPassword = function getUserNewPassword(userId) {
22183
22183
  }
22184
22184
  });
22185
22185
  };
22186
- var checkResetToken = function checkResetToken(token) {
22186
+ var checkResetToken = function checkResetToken(token, key) {
22187
22187
  return api.post(ACCOUNT_URL + "/checkResetToken", {
22188
- token: token
22188
+ token: token,
22189
+ key: key
22189
22190
  });
22190
22191
  };
22191
22192
  var resetPassword = function resetPassword(data) {
@@ -22861,8 +22862,11 @@ var LOGIN = "/login";
22861
22862
  var TITLE$1 = "Log in";
22862
22863
 
22863
22864
  var useForgotPassword = function useForgotPassword() {
22865
+ var _query$get;
22866
+
22864
22867
  var query = new URLSearchParams(useLocation().search);
22865
22868
  var token = query.get("token");
22869
+ var key = (_query$get = query.get("key")) != null ? _query$get : "";
22866
22870
  var dispatch = useDispatch();
22867
22871
  var history = useHistory();
22868
22872
 
@@ -22935,7 +22939,7 @@ var useForgotPassword = function useForgotPassword() {
22935
22939
  return Promise.reject(e);
22936
22940
  }
22937
22941
  }, []);
22938
- var checkResetTokenRequest = useCallback(function (token) {
22942
+ var checkResetTokenRequest = useCallback(function (token, key) {
22939
22943
  try {
22940
22944
  var _temp7 = function _temp7() {
22941
22945
  dispatch(setLoading(false));
@@ -22944,7 +22948,7 @@ var useForgotPassword = function useForgotPassword() {
22944
22948
  dispatch(setLoading(true));
22945
22949
 
22946
22950
  var _temp8 = _catch(function () {
22947
- return Promise.resolve(checkResetToken(token)).then(function (res) {
22951
+ return Promise.resolve(checkResetToken(token, key)).then(function (res) {
22948
22952
  if (res.data) {
22949
22953
  setInitialValues(_extends({}, initialValues, {
22950
22954
  token: token,
@@ -23008,7 +23012,7 @@ var useForgotPassword = function useForgotPassword() {
23008
23012
  }, [executeRecaptcha]);
23009
23013
  var handleVerify = useCallback(function () {}, []);
23010
23014
  useEffect(function () {
23011
- checkResetTokenRequest(token);
23015
+ checkResetTokenRequest(token, key);
23012
23016
  }, []);
23013
23017
  return {
23014
23018
  defaultInfo: defaultInfo$1,