diff --git a/api/controllers/users.js b/api/controllers/users.js
index df08d58..c40ebee 100644
--- a/api/controllers/users.js
+++ b/api/controllers/users.js
@@ -148,7 +148,7 @@ exports.confirmEmail = async (req, res, next) => {
user.tempToken = null;
user.isConfirmed = true;
await user.save();
- return res.redirect(`${FRONT_END_HOST}/login?isConfirmed=true`);
+ return res.redirect(`${FRONT_END_HOST}/users/login?isConfirmed=true`);
} catch (error) {
console.log(error);
return errorHandling(next, serverError);
@@ -174,7 +174,7 @@ exports.resetPassword = async (req, res, next) => {
from: `"FunctionProject" <${EMAIL_INFO.auth.user}>`,
to: email,
subject: "FunctionProject - Réinitialisation du mot de passe",
- html: emailUserTemplate("Veuillez confirmer la réinitialisation du mot de passe", "Oui, je change mon mot de passe.", `${FRONT_END_HOST}/newPassword?token=${tempToken}`, "Si vous avez reçu ce message par erreur, il suffit de le supprimer. Votre mot de passe ne sera pas réinitialiser si vous ne cliquez pas sur le lien ci-dessus. Par ailleurs, pour la sécurité de votre compte, la réinitialisation du mot de passe est disponible pendant un délai de 1 heure, passez ce temps, la réinitialisation ne sera plus valide.")
+ html: emailUserTemplate("Veuillez confirmer la réinitialisation du mot de passe", "Oui, je change mon mot de passe.", `${FRONT_END_HOST}/users/newPassword?token=${tempToken}`, "Si vous avez reçu ce message par erreur, il suffit de le supprimer. Votre mot de passe ne sera pas réinitialiser si vous ne cliquez pas sur le lien ci-dessus. Par ailleurs, pour la sécurité de votre compte, la réinitialisation du mot de passe est disponible pendant un délai de 1 heure, passez ce temps, la réinitialisation ne sera plus valide.")
});
return res.status(200).json({ result: "Demande de réinitialisation du mot de passe réussi, veuillez vérifier vos emails!" });
} catch (error) {
diff --git a/website/components/FunctionPage/CommentCard/CommentCard.js b/website/components/FunctionPage/CommentCard/CommentCard.js
index a8a30bc..264e164 100644
--- a/website/components/FunctionPage/CommentCard/CommentCard.js
+++ b/website/components/FunctionPage/CommentCard/CommentCard.js
@@ -28,11 +28,11 @@ const CommentCard = forwardRef((props, ref) => {
diff --git a/website/pages/profile/[name].js b/website/pages/users/[name].js
similarity index 100%
rename from website/pages/profile/[name].js
rename to website/pages/users/[name].js
diff --git a/website/pages/forgotPassword.js b/website/pages/users/forgotPassword.js
similarity index 91%
rename from website/pages/forgotPassword.js
rename to website/pages/users/forgotPassword.js
index 5a36652..60581d1 100644
--- a/website/pages/forgotPassword.js
+++ b/website/pages/users/forgotPassword.js
@@ -1,10 +1,10 @@
import { Fragment, useState } from 'react';
import htmlParser from 'html-react-parser';
-import Loader from '../components/Loader';
-import HeadTag from '../components/HeadTag';
-import api from '../utils/api';
-import withoutAuth from '../hoc/withoutAuth';
-import '../public/css/pages/register-login.css';
+import Loader from '../../components/Loader';
+import HeadTag from '../../components/HeadTag';
+import api from '../../utils/api';
+import withoutAuth from '../../hoc/withoutAuth';
+import '../../public/css/pages/register-login.css';
const forgotPassword = () => {
diff --git a/website/pages/login.js b/website/pages/users/login.js
similarity index 92%
rename from website/pages/login.js
rename to website/pages/users/login.js
index 1edeb44..0ec70fb 100644
--- a/website/pages/login.js
+++ b/website/pages/users/login.js
@@ -2,11 +2,11 @@ import { Fragment, useContext, useState } from 'react';
import { useRouter } from 'next/router';
import Link from 'next/link';
import htmlParser from 'html-react-parser';
-import Loader from '../components/Loader';
-import HeadTag from '../components/HeadTag';
-import { UserContext } from '../contexts/UserContext';
-import withoutAuth from '../hoc/withoutAuth';
-import '../public/css/pages/register-login.css';
+import Loader from '../../components/Loader';
+import HeadTag from '../../components/HeadTag';
+import { UserContext } from '../../contexts/UserContext';
+import withoutAuth from '../../hoc/withoutAuth';
+import '../../public/css/pages/register-login.css';
const Login = () => {
diff --git a/website/pages/newPassword.js b/website/pages/users/newPassword.js
similarity index 89%
rename from website/pages/newPassword.js
rename to website/pages/users/newPassword.js
index 1d5f1d7..20e719b 100644
--- a/website/pages/newPassword.js
+++ b/website/pages/users/newPassword.js
@@ -1,11 +1,11 @@
import { Fragment, useState } from 'react';
import htmlParser from 'html-react-parser';
-import Loader from '../components/Loader';
-import HeadTag from '../components/HeadTag';
-import api from '../utils/api';
-import redirect from '../utils/redirect';
-import withoutAuth from '../hoc/withoutAuth';
-import '../public/css/pages/register-login.css';
+import Loader from '../../components/Loader';
+import HeadTag from '../../components/HeadTag';
+import api from '../../utils/api';
+import redirect from '../../utils/redirect';
+import withoutAuth from '../../hoc/withoutAuth';
+import '../../public/css/pages/register-login.css';
const newPassword = (props) => {
diff --git a/website/pages/register.js b/website/pages/users/register.js
similarity index 92%
rename from website/pages/register.js
rename to website/pages/users/register.js
index 6509a96..05d0020 100644
--- a/website/pages/register.js
+++ b/website/pages/users/register.js
@@ -1,10 +1,10 @@
import { Fragment, useState } from 'react';
import htmlParser from 'html-react-parser';
-import Loader from '../components/Loader';
-import HeadTag from '../components/HeadTag';
-import api from '../utils/api';
-import withoutAuth from '../hoc/withoutAuth';
-import '../public/css/pages/register-login.css';
+import Loader from '../../components/Loader';
+import HeadTag from '../../components/HeadTag';
+import api from '../../utils/api';
+import withoutAuth from '../../hoc/withoutAuth';
+import '../../public/css/pages/register-login.css';
const Register = () => {