diff --git a/package.json b/package.json index 7c4a6ab..39e08db 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,10 @@ { "name": "colempub", - "version": "0.10.12", + "version": "1.0.0", "dependencies": { "axios": "^0.19.2", "bootstrap": "^3.3.7", "keycloak-js": "^10.0.2", - "node-sass": "^4.11.0", "prop-types": "^15.6.2", "react": "^16.12.0", "react-app-polyfill": "^1.0.3", @@ -18,7 +17,8 @@ "react-responsive-carousel": "^3.2.9", "react-router-bootstrap": "^0.24.4", "react-router-dom": "^4.3.1", - "react-scripts": "3.4.0" + "react-scripts": "3.4.0", + "sass": "^1.68.0" }, "scripts": { "start": "react-scripts start", diff --git a/src/components/forms/assistance-form.js b/src/components/forms/assistance-form.js index d99c163..03f40bd 100644 --- a/src/components/forms/assistance-form.js +++ b/src/components/forms/assistance-form.js @@ -7,7 +7,7 @@ import ErrorComponent from 'components/template/error-component'; import validate from 'utils/validate-forms'; import { getSurveyRootUrl } from 'utils/url-utils'; import { getListOptionsMailAssitance, getListOptionsSurvey } from 'utils/read-content'; -import { idecLength, pathMail } from 'utils/properties'; +import { idecLengthMin, idecLengthMax, pathMail } from 'utils/properties'; import Axios from 'axios'; class AssistanceForm extends React.Component { @@ -258,7 +258,7 @@ class AssistanceForm extends React.Component { valid={formControls.mailaddressconfirmation.valid} maxLength={200} /> - +
diff --git a/src/components/forms/change-password.js b/src/components/forms/change-password.js index fed7350..7e18a16 100644 --- a/src/components/forms/change-password.js +++ b/src/components/forms/change-password.js @@ -5,7 +5,7 @@ import PasswordInput from 'components/form-elements/passwordInput'; import validate from 'utils/validate-forms'; import isPasswordCompliant from 'utils/validate-password'; import { getSurveyRootUrl } from 'utils/url-utils'; -import { idecLength, pathPassword, pathUser } from 'utils/properties'; +import { idecLengthMin, idecLengthMax, pathPassword, pathUser } from 'utils/properties'; import Axios from 'axios'; class ChangePasswordForm extends React.Component { @@ -23,8 +23,8 @@ class ChangePasswordForm extends React.Component { placeholder: '', valid: false, validationRules: { - minLength: idecLength, - maxLength: idecLength, + minLength: idecLengthMin, + maxLength: idecLengthMax, isRequired: true, }, touched: false, @@ -172,7 +172,7 @@ class ChangePasswordForm extends React.Component {

{`Formulaire de changement de mot de passe`}

{`(*) Champs obligatoires`}