text: (window.webpackJsonp=window.webpackJsonp||[]).push([[164],{447:function(t,s,a){"use strict";a.r(s);localStorage.getItem("token");var o={data:function(){return{user_login:"",password:"",login_msg:"",alert_class:"",errors:[],remember:0,loading:0}},mounted:function(){},methods:{ForgotPassword:function(){var t=this,s={user_login:this.user_login,password:this.password};this.alert_class="alert alert-info",this.login_msg="Progressing, please wait...",axios.post(this.apiBaseUrl+"forgot-password",s).then((function(s){s.data.status?(t.alert_class="alert alert-success",t.login_msg=s.data.message,t.loading=1,setTimeout((function(){t.$router.push({name:"otp",params:{action:"forgot-password",mobile_no:s.data.mobile_no,login:s.data.login,otp_code:s.data.otp}}).then((function(s){t.loading=0})).catch((function(s){t.loading=0,console.log(s)}))}),300)):(t.errors=s.data.errors,t.alert_class="alert alert-success",t.login_msg="Login failed! Credentials not matched.")})).catch((function(t){console.log(t)}))}}},e=a(0),n=Object(e.a)(o,(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"login-page-wrap"},[a("div",{staticClass:"login-page-content"},[a("div",{staticClass:"login-box"},[t._m(0),t._v(" "),t.errors.length?a("div",{staticClass:"alert alert-danger"},[a("ul",{staticClass:"mb-0"},t._l(t.errors,(function(s,o){return a("li",{key:o},[t._v(t._s(s))])})),0)]):t._e(),t._v(" "),a("form",{staticClass:"login-form",on:{submit:function(s){return s.preventDefault(),t.ForgotPassword()}}},[a("div",{class:t.alert_class},[t._v(t._s(t.login_msg))]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",[t._v("Username / Mobile No.")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.user_login,expression:"user_login"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Enter Username / Mobile No.",required:""},domProps:{value:t.user_login},on:{input:function(s){s.target.composing||(t.user_login=s.target.value)}}}),t._v(" "),a("i",{staticClass:"far fa-user"})]),t._v(" "),a("div",{staticClass:"form-group"},[a("button",{class:0==t.loading?"login-btn":"login-btn disabled",attrs:{type:"submit",disabled:1==t.loading}},[t._v("Send OTP")])])])]),t._v(" "),a("div",{staticClass:"sign-up"},[t._v("\n            Don't have an account ?\n            "),a("a",{attrs:{href:t.registerUrl+"get-started"}},[t._v("Signup now!")])])])])}),[function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"item-logo"},[s("img",{attrs:{src:"img/logo2.png",alt:"logo"}})])}],!1,null,null,null);s.default=n.exports}}]);