From b8221b2b913aca454e6c6b9f496394ac8f22fc02 Mon Sep 17 00:00:00 2001 From: default Date: Fri, 19 Jul 2024 11:52:32 +0000 Subject: [PATCH 1/2] Added a button to profile settings that allows to add email and password when logged with OAuth methods. Needs to be tested. --- src/router/profile.ts | 4 + src/views/auth/AddEmailView.vue | 113 ++++++++++++++++++++++ src/views/profile/ProfileSettingsView.vue | 10 ++ 3 files changed, 127 insertions(+) create mode 100644 src/views/auth/AddEmailView.vue diff --git a/src/router/profile.ts b/src/router/profile.ts index dbe9d78e..b32c90e0 100644 --- a/src/router/profile.ts +++ b/src/router/profile.ts @@ -33,4 +33,8 @@ export const profileRoutes: RouteRecordRaw[] = [ path: 'change-email', component: () => import('@/views/auth/ChangeEmailView.vue'), }, + { + path: 'add-email', + component: () => import('@/views/auth/AddEmailView.vue'), + }, ]; diff --git a/src/views/auth/AddEmailView.vue b/src/views/auth/AddEmailView.vue new file mode 100644 index 00000000..2dec9c2b --- /dev/null +++ b/src/views/auth/AddEmailView.vue @@ -0,0 +1,113 @@ + + + + + diff --git a/src/views/profile/ProfileSettingsView.vue b/src/views/profile/ProfileSettingsView.vue index 6ca57543..c98a6cd2 100644 --- a/src/views/profile/ProfileSettingsView.vue +++ b/src/views/profile/ProfileSettingsView.vue @@ -52,6 +52,16 @@ const OnClick = async () => { > Изменение почты + + Добавление почты + Date: Fri, 19 Jul 2024 17:15:04 +0300 Subject: [PATCH 2/2] Update AddEmailView.vue --- src/views/auth/AddEmailView.vue | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/views/auth/AddEmailView.vue b/src/views/auth/AddEmailView.vue index 2dec9c2b..de9e0568 100644 --- a/src/views/auth/AddEmailView.vue +++ b/src/views/auth/AddEmailView.vue @@ -1,9 +1,7 @@