(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{LZDC:function(t,s,e){"use strict";e.r(s);var r={data:function(){return{passwordForm:new Form({email:""})}},components:{guestFooter:e("ZuF2").a},mounted:function(){if(!helper.featureAvailable("reset_password"))return helper.featureNotAvailableMsg(),this.$router.push("/dashboard")},methods:{submit:function(t){var s=this,e=this.$loading.show();this.passwordForm.post("/api/auth/password").then((function(t){toastr.success(t.message),e.hide(),s.$router.push("/login")})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))},getConfig:function(t){return helper.getConfig(t)}},computed:{getLogo:function(){return helper.getLogo()}}},a=e("KHd+"),o=Object(a.a)(r,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("section",{attrs:{id:"wrapper"}},[e("div",{staticClass:"login-register guest-page"},[e("div",{staticClass:"login-box card guest-box"},[e("div",{staticClass:"card-body p-4"},[e("img",{staticClass:"mx-auto d-block",staticStyle:{"max-width":"250px"},attrs:{src:t.getLogo}}),t._v(" "),e("form",{staticClass:"form-horizontal form-material",attrs:{id:"passwordform"},on:{submit:function(s){return s.preventDefault(),t.submit(s)},keydown:function(s){return t.passwordForm.errors.clear(s.target.name)}}},[e("h3",{staticClass:"box-title m-t-20 m-b-10"},[t._v(t._s(t.trans("passwords.reset_password")))]),t._v(" "),e("div",{staticClass:"form-group "},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.passwordForm.email,expression:"passwordForm.email"}],staticClass:"form-control",attrs:{type:"text",name:"email",placeholder:t.trans("auth.email")},domProps:{value:t.passwordForm.email},on:{input:function(s){s.target.composing||t.$set(t.passwordForm,"email",s.target.value)}}}),t._v(" "),e("show-error",{attrs:{"form-name":t.passwordForm,"prop-name":"email"}})],1),t._v(" "),t.getConfig("recaptcha")&&t.getConfig("reset_password_recaptcha")?e("div",{staticClass:"g-recaptcha",attrs:{"data-sitekey":t.getConfig("recaptcha_key")}}):t._e(),t._v(" "),e("div",{staticClass:"form-group text-center m-t-20"},[e("button",{staticClass:"btn btn-info btn-lg btn-block text-uppercase waves-effect waves-light",attrs:{type:"submit"}},[t._v(t._s(t.trans("passwords.reset_password")))])]),t._v(" "),e("div",{staticClass:"form-group m-b-0"},[e("div",{staticClass:"col-sm-12 text-center"},[e("p",[t._v(t._s(t.trans("auth.back_to_login?"))+" "),e("router-link",{staticClass:"text-info m-l-5",attrs:{to:"/login"}},[e("b",[t._v(t._s(t.trans("auth.sign_in")))])])],1)])])])]),t._v(" "),e("guest-footer")],1)])])}),[],!1,null,null,null);s.default=o.exports},ZuF2:function(t,s,e){"use strict";var r={methods:{getConfig:function(t){return helper.getConfig(t)}}},a=e("KHd+"),o=Object(a.a)(r,(function(){var t=this.$createElement,s=this._self._c||t;return s("div",[s("p",{staticClass:"text-center"},[s("small",[this._v(this._s(this.getConfig("footer_credit"))+" "+this._s(this.trans("general.version")+" "+this.getConfig("v")))])])])}),[],!1,null,null,null);s.a=o.exports}}]);
//# sourceMappingURL=password.js.map?id=570ef3b3e3a307d010f5