(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{720:function(e,r,t){e.exports={}},802:function(e,r,t){"use strict";t(720)},932:function(e,r,t){"use strict";t.r(r);var n=t(262),o=t(263),c=t(52),d=t(574),l=t(579),w=t(573),_=t(571),m=t(559),v=t(13),f=(t(21),t(54),t(56),t(38)),h={name:"Recover",asyncData:function(e){return Object(v.a)(regeneratorRuntime.mark((function r(){var t,n,code,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.params,n=e.$axios,code=t.code,r.prev=2,r.next=5,n.$post("/user/check_recover_code",{recover_code:code});case 5:return o=r.sent,r.abrupt("return",{user:o,code:code});case 9:return r.prev=9,r.t0=r.catch(2),r.abrupt("return",{user:!1});case 12:case"end":return r.stop()}}),r,null,[[2,9]])})))()},data:function(){return{new_password:""}},computed:Object(f.d)(["settings"]),methods:{change_password:function(){var e=this;return Object(v.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,e.$axios.$post("/user/recover_password",{recover_code:e.code,password:e.new_password});case 3:e.$root.$message("common.password_updated"),e.$router.replace("/login"),r.next=10;break;case 7:r.prev=7,r.t0=r.catch(0),e.$root.$message(r.t0,{color:"warning"});case 10:case"end":return r.stop()}}),r,null,[[0,7]])})))()}},head:function(){return{title:"".concat(this.settings.title," - Authorize")}}},$=(t(802),t(24)),component=Object($.a)(h,(function(){var e=this,r=e._self._c;return r(l.a,[r(w.a,{staticClass:"mt-5",attrs:{align:"center",justify:"center"}},[r(d.a,{attrs:{cols:"12",md:"6",lg:"5",xl:"4"}},[r(o.a,[r(c.d,[e._v(e._s(e.$t("common.recover_password")))]),e.user?[r(c.b,[e._v(e._s(e.user.email))]),r(c.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(c.a,[r(_.a),e.user?r(n.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}}]);