diff --git a/intranet.7z b/intranet.7z new file mode 100644 index 0000000..826cc8a Binary files /dev/null and b/intranet.7z differ diff --git a/src/components/RegisterForm/RegisterForm.tsx b/src/components/RegisterForm/RegisterForm.tsx index 73ce574..a0d2ff3 100644 --- a/src/components/RegisterForm/RegisterForm.tsx +++ b/src/components/RegisterForm/RegisterForm.tsx @@ -32,68 +32,113 @@ const RegisterForm = (): JSX.Element => { return (
) } diff --git a/src/components/RegisterForm/styles.module.scss b/src/components/RegisterForm/styles.module.scss index 7cd0669..ad6fd57 100755 --- a/src/components/RegisterForm/styles.module.scss +++ b/src/components/RegisterForm/styles.module.scss @@ -4,9 +4,15 @@ .registerIntro { dt { font-weight: bold; + margin-top: 10px; + margin-bottom: 10px; } dd { - margin-bottom: 10px; + margin-bottom: 30px; + } + p { + margin-block-start: 0.3em; + margin-block-end: 0.3em; } } @@ -26,14 +32,15 @@ outline: 0; } textarea { - height: 80px; + height: 100px; } .inputRadio { + margin-left: 12px; width: inherit; } .inputRadio + label { display: inline; - margin: 0 20px 0 5px; + margin: 0 0 0 5px; } } diff --git a/src/routes/index.ts b/src/routes/index.ts index 3bd20da..9663b56 100755 --- a/src/routes/index.ts +++ b/src/routes/index.ts @@ -13,9 +13,7 @@ export default [ routes: [ { path: "/", - exact: true, - component: AsyncHome, // Add your page here - loadData: loadHomeData, // Add your pre-fetch method here + component: Register, }, { path: "/MembrePage/:id", @@ -28,7 +26,9 @@ export default [ }, { path: "/register", - component: Register, + exact: true, + component: AsyncHome, + loadData: loadHomeData, }, { component: NotFound, diff --git a/src/server/userManagement/__tests__/login.tsx b/src/server/userManagement/__tests__/login.tsx index ab2d4a8..1f67ed2 100755 --- a/src/server/userManagement/__tests__/login.tsx +++ b/src/server/userManagement/__tests__/login.tsx @@ -5,7 +5,9 @@ import _ from "lodash" import { login } from "../login" -// Could do a full test with wget --header='Content-Type:application/json' --post-data='{"email":"pikiou.sub@gmail.com","password":"mot de passe"}' http://localhost:3000/api/user/login +// Could do a full test with: wget --header='Content-Type:application/json' --post-data='{"email":"pikiou.sub@gmail.com","password":"mot de passe"}' http://localhost:3000/api/user/login + +// Full test with Bearer: wget --header='Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoicGlraW91c3ViQGdlYWlsLmNvbSIsInBlcm1pc3Npb25zIjpbXSwiaWF0IjoxNjM4MjUzODgzLCJleHAiOjE2Mzg4NTg2ODN9.MknJ4NfcVlgW2ODeimfwZI1a4z8asdEXtHwHgViy6c4' http://localhost:3000/MembreGet?id=1 const mockUser = { mail: "my.email@gmail.com",