From 69c6c883c2f72b3fe0c827bf351dca676b100749 Mon Sep 17 00:00:00 2001
From: MakerLab-Dev <47223013+MakerLab-Dev@users.noreply.github.com>
Date: Thu, 3 Dec 2020 19:04:50 +0100
Subject: [PATCH] Password reset update
---
.../V1/Auth/IsRegisteredController.php | 25 -------------
.../assets/js/store/modules/auth/actions.js | 13 -------
.../assets/js/views/auth/ForgotPassword.vue | 36 +++++++------------
routes/api.php | 8 +----
4 files changed, 14 insertions(+), 68 deletions(-)
delete mode 100644 app/Http/Controllers/V1/Auth/IsRegisteredController.php
diff --git a/app/Http/Controllers/V1/Auth/IsRegisteredController.php b/app/Http/Controllers/V1/Auth/IsRegisteredController.php
deleted file mode 100644
index 69682e7c..00000000
--- a/app/Http/Controllers/V1/Auth/IsRegisteredController.php
+++ /dev/null
@@ -1,25 +0,0 @@
-email)->first()) {
- return 'true';
- } else {
- return 'false';
- }
- }
-}
diff --git a/resources/assets/js/store/modules/auth/actions.js b/resources/assets/js/store/modules/auth/actions.js
index be471ff9..1851377f 100644
--- a/resources/assets/js/store/modules/auth/actions.js
+++ b/resources/assets/js/store/modules/auth/actions.js
@@ -48,16 +48,3 @@ export const logout = ({ state, commit }) => {
})
})
}
-
-export const checkMail = ({ commit }, data) => {
- return new Promise((resolve, reject) => {
- window.axios
- .post('/api/v1/is-registered', data)
- .then((response) => {
- resolve(response)
- })
- .catch((err) => {
- reject(err)
- })
- })
-}
diff --git a/resources/assets/js/views/auth/ForgotPassword.vue b/resources/assets/js/views/auth/ForgotPassword.vue
index 7341a86f..b0f86551 100644
--- a/resources/assets/js/views/auth/ForgotPassword.vue
+++ b/resources/assets/js/views/auth/ForgotPassword.vue
@@ -20,19 +20,24 @@