(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7b635a67"],{"1cb7":function(s,e,t){"use strict";t.r(e);var r=function(){var s=this,e=s.$createElement,r=s._self._c||e;return r("div",{staticClass:"register-page"},[r("el-card",{staticClass:"register-card",attrs:{shadow:"always"}},[r("div",{staticClass:"register-top"},[r("div",{staticClass:"register-logo-box"},[r("img",{staticClass:"register-logo",attrs:{src:t("e347"),alt:"logo"}}),r("div",{staticClass:"register-logo-text"},[s._v("Artshiney")])]),r("div",{staticClass:"register-title"},[s._v("Reset Password")]),r("div",{staticClass:"register-sub-title"},[s._v("Your new password must be different form")]),r("div",{staticClass:"register-sub-title"},[s._v("previously used passwords")])]),r("el-form",{ref:"resetForm",attrs:{model:s.resetForm,rules:s.resetRules,"label-width":"100px","label-position":"top"}},[r("el-form-item",{attrs:{label:"New Password",prop:"password"}},[r("el-input",{attrs:{"show-password":""},model:{value:s.resetForm.password,callback:function(e){s.$set(s.resetForm,"password",e)},expression:"resetForm.password"}})],1),r("el-form-item",{attrs:{label:"New Password Confirmation",prop:"password2"}},[r("el-input",{attrs:{"show-password":""},model:{value:s.resetForm.password2,callback:function(e){s.$set(s.resetForm,"password2",e)},expression:"resetForm.password2"}})],1),r("el-form-item",[r("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary",loading:s.saveLoading},on:{click:function(e){return s.submit("resetForm")}}},[s._v("Set New Password")])],1),r("el-form-item",[r("div",{staticClass:"to-login div-hover",on:{click:function(e){return s.callNewPage("/")}}},[r("div",{staticClass:"to-login-text"},[s._v(" Back to login "),r("i",{staticClass:"el-icon-arrow-left to-login-icon"})])])])],1)],1)],1)},a=[],o=t("43f3"),i={name:"PasswdReset",data(){return{resetForm:{token:"",password:"",password2:""},resetRules:{password:[{required:!0,message:"The new password field is required",trigger:"blur"}],password2:[{required:!0,message:"The new password confirmation field is required",trigger:"blur"}]},saveLoading:!1}},created(){this.resetForm.token=this.$route.query.token},methods:{async submit(s){this.$refs[s].validate(async s=>{if(!s)return;const e=Object.assign({},this.resetForm);if(e.password!==e.password2)return this.$message.error("The new password is inconsistent");delete e.password2,this.saveLoading=!0;try{await Object(o["e"])(e),this.$message.success("Reset the success"),this.callNewPage("/")}finally{this.saveLoading=!1}})}}},l=i,n=(t("7ee4"),t("2877")),d=Object(n["a"])(l,r,a,!1,null,"98ae4cf6",null);e["default"]=d.exports},"7ee4":function(s,e,t){"use strict";t("e95c")},e95c:function(s,e,t){}}]);