/home/techb158/ileadtechnology.com/SSM/public/js/auth
Edit: /home/techb158/ileadtechnology.com/SSM/public/js/auth/lock.js (3268B)
(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{"C5X/":function(t,e,s){"use strict";s.r(e);var r={components:{guestFooter:s("ZuF2").a},data:function(){return{lockScreenForm:new Form({password:""})}},mounted:function(){helper.getConfig("lock_screen")&&helper.isScreenLocked()||this.$router.push("/dashboard"),helper.getConfig("mode")||(this.lockScreenForm.password="abcd1234")},methods:{logout:function(){var t=this;helper.logout().then((function(){t.$router.push("/login")}))},submit:function(){var t=this,e=this.$loading.show();this.lockScreenForm.post("/api/auth/lock").then((function(s){t.$store.dispatch("setLastActivity"),toastr.success(s.message),e.hide(),t.$router.push("/dashboard")})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))},getAuthUser:function(t){return helper.getAuthUser(t)}},computed:{getLogo:function(){return helper.getLogo()}}},o=s("KHd+"),a=Object(o.a)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("section",{attrs:{id:"wrapper"}},[s("div",{staticClass:"login-register guest-page"},[s("div",{staticClass:"login-box card guest-box"},[s("div",{staticClass:"card-body p-4"},[s("img",{staticClass:"mx-auto d-block",staticStyle:{"max-width":"250px"},attrs:{src:t.getLogo}}),t._v(" "),s("center",{staticClass:"m-t-30"},[s("h4",{staticClass:"card-title m-t-10"},[t._v(t._s(t.getAuthUser("name")))])]),t._v(" "),s("form",{staticClass:"form-horizontal form-material",attrs:{id:"lockScreenForm"},on:{submit:function(e){return e.preventDefault(),t.submit(e)},keydown:function(e){return t.lockScreenForm.errors.clear(e.target.name)}}},[s("h3",{staticClass:"box-title m-b-20 text-center"},[t._v(t._s(t.trans("auth.password")))]),t._v(" "),s("div",{staticClass:"form-group "},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.lockScreenForm.password,expression:"lockScreenForm.password"}],staticClass:"form-control text-center",attrs:{type:"password",name:"password",placeholder:t.trans("auth.password")},domProps:{value:t.lockScreenForm.password},on:{input:function(e){e.target.composing||t.$set(t.lockScreenForm,"password",e.target.value)}}}),t._v(" "),s("show-error",{attrs:{"form-name":t.lockScreenForm,"prop-name":"password"}})],1),t._v(" "),s("div",{staticClass:"form-group text-center m-t-20"},[s("button",{staticClass:"btn btn-info btn-lg btn-block text-uppercase waves-effect waves-light",attrs:{type:"submit"}},[t._v(t._s(t.trans("auth.confirm")))])]),t._v(" "),s("div",{staticClass:"form-group m-b-0"},[s("div",{staticClass:"col-sm-12 text-center"},[s("p",[s("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.logout(e)}}},[s("i",{staticClass:"fas fa-power-off"}),t._v(" "+t._s(t.trans("auth.logout")))])])])])])],1),t._v(" "),s("guest-footer")],1)])])}),[],!1,null,null,null);e.default=a.exports},ZuF2:function(t,e,s){"use strict";var r={methods:{getConfig:function(t){return helper.getConfig(t)}}},o=s("KHd+"),a=Object(o.a)(r,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("p",{staticClass:"text-center"},[e("small",[this._v(this._s(this.getConfig("footer_credit"))+" "+this._s(this.trans("general.version")+" "+this.getConfig("v")))])])])}),[],!1,null,null,null);e.a=a.exports}}]);
//# sourceMappingURL=lock.js.map?id=e029c677e6b2d95b2e9a