/home/techb158/ileadtechnology.com/SSM/public/js/auth
NameSizeModeActions
changePassword.js40750644editdlrm
changePassword.js.map1570644editdlrm
lock.js32680644editdlrm
lock.js.map1370644editdlrm
login.js105180644editdlrm
login.js.map1390644editdlrm
password.js30990644editdlrm
password.js.map1450644editdlrm
reset.js49500644editdlrm
reset.js.map1390644editdlrm
security.js34940644editdlrm
security.js.map1450644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/public/js/auth/changePassword.js (4075B)
(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{diNo:function(s,r,a){"use strict";a.r(r);var t={components:{},data:function(){return{passwordForm:new Form({current_password:"",new_password:"",new_password_confirmation:""}),content:"change password"}},mounted:function(){},methods:{changePassword:function(){var s=this.$loading.show();this.passwordForm.post("/api/change/password").then((function(r){toastr.success(r.message),s.hide()})).catch((function(r){s.hide(),helper.showErrorMsg(r)}))},getConfig:function(s){return helper.getConfig(s)},getAuthUser:function(s){return helper.getAuthUser(s)}}},o=a("KHd+"),e=Object(o.a)(t,(function(){var s=this,r=s.$createElement,a=s._self._c||r;return a("div",[a("div",{staticClass:"page-titles"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-sm-6"},[a("h3",{staticClass:"text-themecolor"},[s._v(s._s(s.trans("auth.change_password"))+" "),a("span",{staticClass:"card-subtitle"},[s._v(s._s(s.getAuthUser("name"))+" ("+s._s(s.getAuthUser("email"))+")")])])]),s._v(" "),a("div",{staticClass:"col-12 col-sm-6"},[a("div",{staticClass:"action-buttons pull-right"},[a("button",{staticClass:"btn btn-info btn-sm",on:{click:function(r){return s.$router.push("/dashboard")}}},[a("i",{staticClass:"fas fa-home"}),s._v(" "),a("span",{staticClass:"d-none d-sm-inline"},[s._v(s._s(s.trans("general.dashboard")))])])])])])]),s._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-sm-8"},[a("div",{staticClass:"card"},[a("div",{staticClass:"card-body p-4"},[a("form",{on:{submit:function(r){return r.preventDefault(),s.changePassword(r)},keydown:function(r){return s.passwordForm.errors.clear(r.target.name)}}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-sm-4"},[a("div",{staticClass:"form-group"},[a("label",{attrs:{for:""}},[s._v(s._s(s.trans("auth.current_password")))]),s._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:s.passwordForm.current_password,expression:"passwordForm.current_password"}],staticClass:"form-control",attrs:{type:"password",name:"current_password",placeholder:s.trans("auth.current_password")},domProps:{value:s.passwordForm.current_password},on:{input:function(r){r.target.composing||s.$set(s.passwordForm,"current_password",r.target.value)}}}),s._v(" "),a("show-error",{attrs:{"form-name":s.passwordForm,"prop-name":"current_password"}})],1)]),s._v(" "),a("div",{staticClass:"col-12 col-sm-4"},[a("div",{staticClass:"form-group"},[a("label",{attrs:{for:""}},[s._v(s._s(s.trans("auth.new_password")))]),s._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:s.passwordForm.new_password,expression:"passwordForm.new_password"}],staticClass:"form-control",attrs:{type:"password",name:"new_password",placeholder:s.trans("auth.new_password")},domProps:{value:s.passwordForm.new_password},on:{input:function(r){r.target.composing||s.$set(s.passwordForm,"new_password",r.target.value)}}}),s._v(" "),a("show-error",{attrs:{"form-name":s.passwordForm,"prop-name":"new_password"}})],1)]),s._v(" "),a("div",{staticClass:"col-12 col-sm-4"},[a("div",{staticClass:"form-group"},[a("label",{attrs:{for:""}},[s._v(s._s(s.trans("auth.new_password_confirmation")))]),s._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:s.passwordForm.new_password_confirmation,expression:"passwordForm.new_password_confirmation"}],staticClass:"form-control",attrs:{type:"password",name:"new_password_confirmation",placeholder:s.trans("auth.new_password_confirmation")},domProps:{value:s.passwordForm.new_password_confirmation},on:{input:function(r){r.target.composing||s.$set(s.passwordForm,"new_password_confirmation",r.target.value)}}}),s._v(" "),a("show-error",{attrs:{"form-name":s.passwordForm,"prop-name":"new_password_confirmation"}})],1)])]),s._v(" "),a("button",{staticClass:"btn btn-info waves-effect waves-light pull-right m-t-10",attrs:{type:"submit"}},[s._v(s._s(s.trans("auth.change_password")))])])])])])])])}),[],!1,null,null,null);r.default=e.exports}}]); //# sourceMappingURL=changePassword.js.map?id=2fd92b3d45894af30d28