Blame view
src/components/Reset.vue
4.67 KB
988b5d20a
|
1 2 3 4 |
<template> <main class="landing-page"> <div class="container-fluid main-wrp"> <nav class="navbar navbar-expand-sm spotLight-nav"> |
56f4b7548
|
5 |
<a class="navbar-brand" href="javascript:void(0);" |
988b5d20a
|
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
><img src="../assets/images/logo.png" /></a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExample03" aria-controls="navbarsExample03" aria-expanded="false" aria-label="Toggle navigation" > <span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarsExample03"> <ul class="navbar-nav mr-auto"> <li class="nav-item active"> |
56f4b7548
|
25 |
<a class="nav-link" href="javascript:void(0);">About</a> |
988b5d20a
|
26 27 |
</li> <li class="nav-item"> |
56f4b7548
|
28 |
<a class="nav-link" href="javascript:void(0);">Masterclass</a> |
988b5d20a
|
29 30 |
</li> <li class="nav-item"> |
56f4b7548
|
31 |
<a class="nav-link" href="javascript:void(0);">Stories</a> |
988b5d20a
|
32 33 |
</li> <li class="nav-item spotLight-img"> |
56f4b7548
|
34 |
<a class="nav-link" href="javascript:void(0);" |
988b5d20a
|
35 36 37 38 |
><img src="../assets/images/SPOTLight.svg" /></a> </li> <li class="nav-item"> |
56f4b7548
|
39 |
<a class="nav-link" href="javascript:void(0);">Library</a> |
988b5d20a
|
40 41 42 43 44 |
</li> </ul> </div> </nav> <!-- menu wrapper --> |
f2328546d
|
45 46 |
<div class="sign-login-wrp"> |
988b5d20a
|
47 |
<!-- users land image --> |
f2328546d
|
48 |
<div class="s-l-left-section"> |
988b5d20a
|
49 |
<h1> |
56f4b7548
|
50 51 52 53 |
<!-- Welcome to <br /> Productgrowth --> Hello, there!<br /> welcome to spotlight |
988b5d20a
|
54 55 56 57 |
</h1> <ul class="sign-in-up-list"> <li> <img src="../assets/images/check.svg" /><span |
56f4b7548
|
58 |
>Collaborate, Contribute and Explore with fellow product enthusiasts</span |
988b5d20a
|
59 60 61 62 |
> </li> <li> <img src="../assets/images/check.svg" /><span |
56f4b7548
|
63 |
>Get access to insightful Case Studies and participate in Roundtables</span |
988b5d20a
|
64 65 66 67 |
> </li> <li> <img src="../assets/images/check.svg" /><span |
56f4b7548
|
68 69 70 |
>Engage actively on the Bounce Board - we’re all ears! </span |
988b5d20a
|
71 72 73 74 75 |
> </li> </ul> </div> <!-- users land image --> |
f2328546d
|
76 77 |
<div class="s-l-right-section"> <div class="form-layout reset-pass"> |
56f4b7548
|
78 |
<form > |
988b5d20a
|
79 |
<h5> |
56f4b7548
|
80 |
Forgot password? Enter your Email <br /> ID to retrieve it |
988b5d20a
|
81 82 83 84 85 86 87 88 |
</h5> <div class="fill-form"> <label for="inputEmail" class="sr-only">Email address</label> <input type="email" id="inputEmail" class="form-control" placeholder="Your Email ID" |
5684145ce
|
89 |
v-model="email" |
988b5d20a
|
90 |
/> |
5684145ce
|
91 |
<a href="javascript:void(0);" class="btn btn-lg sb-button" type="submit" @click="forgotPassword"> |
988b5d20a
|
92 |
<img src="../assets/images/key.svg" /> Reset Password |
5684145ce
|
93 |
</a> |
988b5d20a
|
94 |
|
56f4b7548
|
95 96 97 |
<h3 class="ft-normal"> <span>Go back to </span><a class="cursor-pointer no-underline" @click="goToLogin">Login</a><span> / </span ><a class="cursor-pointer no-underline" @click="goToSignUp">SignUp</a> |
988b5d20a
|
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
</h3> </div> </form> </div> </div> <!-- sign up --> </div> <!-- body wrapper --> </div> <!-- main wrapper --> </main> </template> <script> import Vue from "vue"; import router from "../router"; |
5684145ce
|
114 |
import axios from "axios"; |
988b5d20a
|
115 116 117 118 119 |
export default { name: "Reset", data() { |
5684145ce
|
120 121 122 |
return { email:null, }; |
988b5d20a
|
123 124 125 126 |
}, mounted() {}, methods: { goToLogin() { |
56f4b7548
|
127 |
this.$router.push("/login"); |
988b5d20a
|
128 129 |
}, goToSignUp() { |
56f4b7548
|
130 |
this.$router.push("/"); |
988b5d20a
|
131 |
}, |
5684145ce
|
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
forgotPassword(){ axios .post("/forgotPassword", {'email':this.email,'forgotPassword':true}) .then((response) => { console.log("forgotPassword- response",response) this.$toaster.success(response.data.message) if(response.data.status == 'success'){ localStorage.setItem('spotlight_email', this.email); this.$router.push("/changepassword"); } }) .catch( (error) =>{ if (error.response) { this.$toaster.error(error.response.data.message) } }); } |
988b5d20a
|
151 152 153 154 |
}, }; </script> |