From 3f2a40fbdee6f86703cdce68390f2661f9ee2a39 Mon Sep 17 00:00:00 2001 From: Dean Bartok-Thomas Date: Mon, 2 Sep 2019 11:26:00 +0100 Subject: [PATCH] Added password reset to the user list --- src/api/user.js | 10 ++++++++++ src/views/users/list.vue | 31 +++++++++++++++++++++++++++++-- 2 files changed, 39 insertions(+), 2 deletions(-) diff --git a/src/api/user.js b/src/api/user.js index ce775b56..c35a27e0 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -61,6 +61,16 @@ export function updateUser(data) { return axios.put(`${apiUrl}/user/${data.id}`, dto) } +export function sendPasswordReset(email, type) { + const dto = { + email, + type, + platform: 'OLFDE' + } + + return axios.post(`${apiUrl}/user/password/send-reset-link`, dto) +} + function __dataToDTO(data) { return { 'firstName': data.firstName, diff --git a/src/views/users/list.vue b/src/views/users/list.vue index 9fd1dfd2..7e4c6728 100644 --- a/src/views/users/list.vue +++ b/src/views/users/list.vue @@ -36,13 +36,16 @@ - + @@ -53,7 +56,7 @@