@movalib/movalib-commons 1.2.28 → 1.2.29

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.
@@ -61,7 +61,7 @@ var AccountValidation = function (_a) {
61
61
  // Si cette variable est transmise, cela signifie que le compte a été créé sans mot de passe
62
62
  var localEmptyPwd = Boolean(params.get('emptyPwd'));
63
63
  setEmptyPwd(localEmptyPwd);
64
- if (token) {
64
+ if (token && !resetPassword) {
65
65
  setLoading(true);
66
66
  try {
67
67
  UserService_1.default.existsByToken(token)
@@ -81,8 +81,6 @@ var AccountValidation = function (_a) {
81
81
  finally {
82
82
  setLoading(false);
83
83
  }
84
- }
85
- if (token && !resetPassword) {
86
84
  if (!localEmptyPwd) {
87
85
  var req = {
88
86
  token: token
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movalib/movalib-commons",
3
- "version": "1.2.28",
3
+ "version": "1.2.29",
4
4
  "description": "Bibliothèque d'objets communs à l'ensemble des projets React de Movalib",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -60,7 +60,8 @@ const AccountValidation: FunctionComponent<AccountValidationProps> = ({ movaAppT
60
60
  let localEmptyPwd = Boolean(params.get('emptyPwd'));
61
61
  setEmptyPwd(localEmptyPwd);
62
62
 
63
- if(token){
63
+ if (token && !resetPassword) {
64
+
64
65
  setLoading(true);
65
66
 
66
67
  try {
@@ -82,9 +83,6 @@ const AccountValidation: FunctionComponent<AccountValidationProps> = ({ movaAppT
82
83
  }finally {
83
84
  setLoading(false);
84
85
  }
85
- }
86
-
87
- if (token && !resetPassword) {
88
86
 
89
87
  if(!localEmptyPwd){
90
88