"use strict";(self["webpackChunkdespre_bani"]=self["webpackChunkdespre_bani"]||[]).push([[864],{7864:function(e,t,s){s.r(t),s.d(t,{default:function(){return p}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"login-bg"},[t("div",{staticClass:"login"},[t("transition",{attrs:{name:"slide-fade"}},[e.show?t("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"box-card login-box"},[t("el-form",{nativeOn:{submit:function(t){return t.preventDefault(),e.login()}}},[t("img",{staticClass:"img-responsive img-logo",attrs:{src:s(6949)}}),t("hr"),t("h5",{staticClass:"card-title"},[e._v("Login")]),t("el-form-item",{attrs:{label:"Email"}},[t("el-input",{attrs:{type:"email",placeholder:"Emailul dvs"},model:{value:e.email,callback:function(t){e.email=t},expression:"email"}})],1),t("el-form-item",{attrs:{label:"Parola"}},[t("el-input",{attrs:{type:"password",placeholder:"Parola dvs"},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}})],1),t("el-form-item",[t("el-button",{attrs:{"native-type":"submit",type:"primary"},on:{click:function(t){return e.login()}}},[e._v(" Login ")])],1)],1)],1):e._e()],1)],1)])},a=[],n=(s(7658),s(3873)),o={name:"login",data(){return{show:!1,loading:!1,email:"",password:""}},methods:{login:async function(){var e=await this.post("login",{email:this.email,password:this.password});""!=e.Token?(n.Z.set_token(e.Token),n.Z.set_drepturi(e.Rights),n.Z.set_user_type(e.UserType),this.$router.push("/dashboard")):this.$message.error("Date gresite")},post:async function(e,t={}){this.loadingVisible=!0;var s=await this.$http.post(e,t);if(this.loadingVisible=!1,n.Z.verify_response(s))return s.body}},mounted:function(){this.show=!0}},l=o,r=s(1001),d=(0,r.Z)(l,i,a,!1,null,"7f071eea",null),p=d.exports},6949:function(e,t,s){e.exports=s.p+"img/logo.f794a991.png"}}]);
//# sourceMappingURL=864.b1aef2d7.js.map