(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0dcdd0af"],{"346b":function(e,t,s){e.exports=s.p+"img/logo-ipssoma.f07af647.png"},3809:function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"bg-dark"},[t("FormResetPassword")],1)])},r=[],o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pt-5 pb-16"},[e._m(0),t("h4",{staticClass:"text-white d-flex justify-content-center align-items-center"},[e._v("Formulario de recuperación de cuenta")]),t("div",{staticClass:"p-4"},[t("v-form",{ref:"form",attrs:{"lazy-validation":""},model:{value:e.valid,callback:function(t){e.valid=t},expression:"valid"}},[t("v-text-field",{attrs:{dark:"",label:"Correo",required:""},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}}),t("v-text-field",{attrs:{dark:"",label:"Codigo",required:""},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}}),t("v-text-field",{attrs:{dark:"",label:"Nueva contraseña",required:""},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}}),t("v-text-field",{attrs:{dark:"",label:"Confirmar contraseña",required:""},model:{value:e.form.password2,callback:function(t){e.$set(e.form,"password2",t)},expression:"form.password2"}}),t("div",{staticClass:"d-flex justify-content-center align-items-center mt-5 mb-5"},[t("v-btn",{staticClass:"mr-4 d-flex justify-content-center align-items-center",attrs:{color:"#ffc700"},on:{click:e.login}},[e._v(" Reestablecer contraseña ")])],1),t("br"),t("br")],1)],1),t("div",{staticClass:"text-center"},[t("h5",{staticStyle:{"font-size":"0.7em",color:"#989898"}},[e._v(" Copyright © "+e._s(e.year)+". "+e._s(e.$t("message.footer_all_rights_reserved"))+" LAPROFECHRIS ")])])])},i=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"d-flex justify-content-center align-items-center mt-5 mb-5"},[t("img",{staticClass:"mx-1",staticStyle:{width:"30%"},attrs:{src:s("346b")}})])}],l=(s("14d9"),s("2f62")),n={name:"FormLogin",data(){return{message:"",statusRegister:!1,statusErrorRegister:!1,form:{},documentType:{},country:{},error:!1,userRules:[e=>!!e||"El usuario es requerido"],passwordRules:[e=>!!e||"La contraseña es requerida"],valid:!0,year:"",date:new Date(Date.now()-6e4*(new Date).getTimezoneOffset()).toISOString().substr(0,10),menu:!1}},methods:{showAlert(){this.error=!0},validateFields(){return this.form.email&&""!==this.form.email.trim()&&0!==this.form.email.length?this.form.email.length>60?(alert("Email demasiado largo!"),!1):this.form.code&&""!==this.form.code.trim()&&0!==this.form.code.length?this.form.password&&""!==this.form.password.trim()&&0!==this.form.password.length?this.form.password2&&""!==this.form.password2.trim()&&0!==this.form.password2.length?this.form.password==this.form.password2||(alert("Las contraseñas no coinciden!"),!1):(alert("Confirmación de password esta vacío!"),!1):(alert("Nuevo password esta vacío!"),!1):(alert("Código esta vacío!"),!1):(alert("Email esta vacío!"),!1)},async login(){if(this.validateFields())try{const{status:e,data:t}=await this.$axios.post("/public/recoveryPassword",this.form);200===e&&(alert(t),"Contraseña reestablecida"!=t&&"Ha alcanzado el maximo de intentos, porfavor vuelva a realizar el proceso de recuperación de cuenta desde el aula virtual"!=t||this.$router.push("/iniciar-sesion"))}catch(e){console.log(e),this.showAlert(),alert("ocurrió un problema, puede que los datos ingresados no sean los correctos")}},...Object(l["b"])("user",{actionUser:"actionUser"}),setYear(){this.year=(new Date).getFullYear()}},computed:{...Object(l["c"])("user",["getStatusRequest"])},created(){this.setYear()}},c=n,d=(s("ff83"),s("2877")),m=Object(d["a"])(c,o,i,!1,null,null,null),f=m.exports,u={name:"Login",components:{FormResetPassword:f},methods:{}},p=u,h=(s("4ea0"),Object(d["a"])(p,a,r,!1,null,null,null));t["default"]=h.exports},"4ea0":function(e,t,s){"use strict";s("ce09")},ce09:function(e,t,s){},ef8d:function(e,t,s){},ff83:function(e,t,s){"use strict";s("ef8d")}}]);
//# sourceMappingURL=chunk-0dcdd0af.e31879b5.js.map