diff --git a/front/components/SideBar.vue b/front/components/SideBar.vue index 0882b93e..3d839c70 100644 --- a/front/components/SideBar.vue +++ b/front/components/SideBar.vue @@ -150,7 +150,7 @@ async function logout() { > - {{ $t("about") }} + {{ $t("about.title") }} - {{ $t("security") }} + {{ $t("security.title") }} - {{ $t("security") }} + {{ $t("security.title") }} diff --git a/front/locales/en-US.json b/front/locales/en-US.json index 58c61eb5..94dc892c 100644 --- a/front/locales/en-US.json +++ b/front/locales/en-US.json @@ -49,7 +49,6 @@ "optional_information": "Optional information", "required_information": "Required information", - "security": "Security", "data": "Data", "logout": "Logout", "account": "Account", @@ -84,10 +83,31 @@ "profile_picture": { "title": "Update profile picture", "import": "Import a new photo" + }, + "email": { + "title": "Update e-mail" + }, + "password": { + "title": "Update password" } }, "save": "Save", + "logged_as": "Logged in as {'@'}{vanity}", + "access": { + "title": "Confirm access", + "warn": "You'll be able to change the most crucial information in your account!" + }, + "confirm": "Confirm", + + "connection": "Connection and recovery", + "mfa": "Multi-factor authentication", + "mfa_soon": "This section will be available soon! It will allow you to add an extra security step during the connection.", + "security": { + "title": "Security", + "description": "Change your account security details." + }, + "p_policy": "Privacy policy", "terms_of_use": "Terms of Use", "terms_of_service": "Terms of Service", diff --git a/front/locales/fr-FR.json b/front/locales/fr-FR.json index 4fd1fa21..e2d04873 100644 --- a/front/locales/fr-FR.json +++ b/front/locales/fr-FR.json @@ -49,7 +49,6 @@ "optional_information": "Informations facultatives", "required_information": "Informations requises", - "security": "Sécurité", "data": "Données", "logout": "Se déconnecter", "account": "Compte", @@ -84,10 +83,31 @@ "profile_picture": { "title": "Modifier la photo de profil", "import": "Importer une nouvelle photo" + }, + "email": { + "title": "Modifier l'adresse e-mail" + }, + "password": { + "title": "Modifier le mot de passe" } }, "save": "Sauvegarder", + "logged_as": "Connecté en tant que {'@'}{vanity}", + "access": { + "title": "Confirmer l'accès", + "warn": "Vous allez pouvoir modifier les informations les plus cruciales de votre compte !" + }, + "confirm": "Confirmer", + + "connection": "Connexion et récupération", + "mfa": "Authentification à plusieurs étapes", + "mfa_soon": "Cette section sera bientôt disponible ! Elle vous permettra d'ajouter une étape de sécurité supplémentaire lors de la connexion.", + "security": { + "title": "Sécurité", + "description": "Modifiez les données relatives à la sécurité de votre compte." + }, + "p_policy": "Confidentialité", "terms_of_use": "Conditions Générales d'Utilisation", "terms_of_service": "Conditions d'usage", diff --git a/front/pages/access.vue b/front/pages/access.vue new file mode 100644 index 00000000..a4428f2d --- /dev/null +++ b/front/pages/access.vue @@ -0,0 +1,206 @@ + + + + + + + + + + + + + + + + {{ $t("logged_as", { vanity: user.vanity }) }} + + + + + + + + + {{ $t("access.title") }} + + + + + + + + + + + + + + + + + {{ $t("lost_account") }} + + + + + + + + + {{ $t("confirm") }} + + + + + + diff --git a/front/pages/security.vue b/front/pages/security.vue new file mode 100644 index 00000000..0fead834 --- /dev/null +++ b/front/pages/security.vue @@ -0,0 +1,224 @@ + + + + + + + + {{ $t("security.title") }} + + {{ $t("security.description") }} + + + + + + + + + {{ $t("email") }} + + + + + + + {{ $t("password") }} + + + + + + + + + + + {{ $t("mfa_soon") }} + + + + + + + + + + + + {{ $t("save") }} + + + + + + + + + {{ $t("save") }} + + + diff --git a/front/stores/user.ts b/front/stores/user.ts index cc22e0ca..e37b841b 100644 --- a/front/stores/user.ts +++ b/front/stores/user.ts @@ -6,6 +6,7 @@ const EMPTY_USER: User = { avatar: null, bio: null, email: "", + password: null, verified: false, deleted: false, flags: 0, diff --git a/front/types/index.ts b/front/types/index.ts index 068a9d24..dd4c259e 100644 --- a/front/types/index.ts +++ b/front/types/index.ts @@ -12,6 +12,8 @@ export interface User { bio: string | null; /** @default null */ email: string | null; + /** @default null */ + password: string | null; /** @default false */ verified: boolean; /** @default false */
{{ $t("logged_as", { vanity: user.vanity }) }}
+ {{ $t("security.description") }} +
{{ $t("mfa_soon") }}