changeset 534:f96d18e53369

Client: add passwordrest api call. * Add the actuall to the passwordreset api. Note that it is okay that "Request send" is shown even if there is a 404 from the backend in the current situation.
author Bernhard Reiter <bernhard@intevation.de>
date Tue, 28 Aug 2018 14:38:18 +0200
parents 42a4e97f8d6b
children da5f47a0941c
files client/src/views/Login.vue
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/views/Login.vue	Tue Aug 28 14:34:13 2018 +0200
+++ b/client/src/views/Login.vue	Tue Aug 28 14:38:18 2018 +0200
@@ -138,6 +138,7 @@
 
 <script>
 import { mapGetters } from "vuex";
+import { HTTP } from "../lib/http";
 
 export default {
   name: "login",
@@ -209,7 +210,9 @@
     },
     resetPassword() {
       if (this.user) {
-        console.log("FIXME send reset password to api");
+        HTTP.post("/users/passwordreset", { user: this.user }).catch(error => {
+          console.log("backend problem", error);
+        });
         this.togglePasswordReset();
         this.passwordJustResetted = true;
       }