From 21504e80055941d4e58862ec483450df1f51210c Mon Sep 17 00:00:00 2001 From: elweyn Date: Mon, 14 Mar 2022 12:33:57 +0100 Subject: [PATCH] Add query to the queries file, add method that checks if optin code is valid else push to password reset page. --- frontend/src/graphql/queries.js | 6 ++++++ frontend/src/pages/ResetPassword.vue | 16 ++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/frontend/src/graphql/queries.js b/frontend/src/graphql/queries.js index 94a5e59f3..7d9498f43 100644 --- a/frontend/src/graphql/queries.js +++ b/frontend/src/graphql/queries.js @@ -127,3 +127,9 @@ export const communities = gql` } } ` + +export const queryOptIn = gql` + query($optIn: String!) { + queryOptIn(optIn: $optIn) + } +` diff --git a/frontend/src/pages/ResetPassword.vue b/frontend/src/pages/ResetPassword.vue index 830107a99..8d6bcca48 100644 --- a/frontend/src/pages/ResetPassword.vue +++ b/frontend/src/pages/ResetPassword.vue @@ -46,6 +46,7 @@