(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{627:function(e,r,o){e.exports={}},710:function(e,r,o){"use strict";o(627)},838:function(e,r,o){"use strict";o.r(r);var t=o(195),c=o(196),n=o(27),d=o(484),l=o(489),_=o(483),w=o(481),m=o(469),v=o(5),$=(o(16),o(29),o(21)),h={name:"Recover",asyncData:e=>Object(v.a)((function*(){var{params:r,$axios:o}=e,code=r.code;try{return{user:yield o.$post("/user/check_recover_code",{recover_code:code}),code:code}}catch(e){return{user:!1}}}))(),data:()=>({new_password:""}),computed:Object($.d)(["settings"]),methods:{change_password(){var e=this;return Object(v.a)((function*(){try{yield e.$axios.$post("/user/recover_password",{recover_code:e.code,password:e.new_password}),e.$root.$message("common.password_updated"),e.$router.replace("/login")}catch(r){e.$root.$message(r,{color:"warning"})}}))()}},head(){return{title:"".concat(this.settings.title," - Authorize")}}},f=(o(710),o(12)),component=Object(f.a)(h,(function(){var e=this,r=e._self._c;return r(l.a,[r(_.a,{staticClass:"mt-5",attrs:{align:"center",justify:"center"}},[r(d.a,{attrs:{cols:"12",md:"6",lg:"5",xl:"4"}},[r(c.a,[r(n.d,[e._v(e._s(e.$t("common.recover_password")))]),e.user?[r(n.b,[e._v(e._s(e.user.email))]),r(n.c,[r(m.a,{attrs:{type:"password",rules:e.$validators.password,autofocus:"",placeholder:e.$t("common.new_password")},model:{value:e.new_password,callback:function(r){e.new_password=r},expression:"new_password"}})],1)]:r("div",[e._v(e._s(e.$t("recover.not_valid_code")))]),r(n.a,[r(w.a),e.user?r(t.a,{attrs:{text:"",color:"primary"},on:{click:e.change_password}},[e._v(e._s(e.$t("common.send")))]):e._e()],1)],2)],1)],1)],1)}),[],!1,null,null,null);r.default=component.exports}}]);