1"use strict";(self.webpackChunkclient=self.webpackChunkclient||[]).push([[508],{1145:function(t,e,s){s.r(e),s.d(e,{default:function(){return r}});var n=s(42793),a={data:function(){return{credentials:{password:"",password_confirmation:"",token:this.$route.query.token,email:""},changed:!1}},methods:{resetPassword:function(){var t=this;try{n.A.post("/password/reset",this.credentials).then((function(e){var s=e.data;if(t.changed="password.changed"==s.message,!t.changed)throw new Error("Something went wrong")}))}catch(t){this.$router.push("/login")}}},created:function(){}},r=(0,s(14486).A)(a,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"private"},[e("div",{staticClass:"layout login"},[e("main",[e("section",{staticClass:"login-wrapper"},[e("header",[e("font-awesome-icon",{attrs:{icon:"route"}}),t._v(" Itinerary Planner\n ")],1),t._v(" "),e("div",{staticClass:"login-box"},[t.changed?e("div",{staticStyle:{"font-size":"12px","padding-bottom":"10px","text-align":"center"}},[e("p",[t._v("Password is changed")]),t._v(" "),e("el-button",{on:{click:function(e){return t.$router.push("/login")}}},[t._v("Back to login")])],1):e("el-form",{on:{submit:function(t){t.preventDefault()}}},[e("el-row",[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"Password"}},[e("el-input",{attrs:{type:"password",placeholder:"Password"},model:{value:t.credentials.password,callback:function(e){t.$set(t.credentials,"password",e)},expression:"credentials.password"}})],1)],1),t._v(" "),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"Confirm password"}},[e("el-input",{attrs:{type:"password",placeholder:"Password"},model:{value:t.credentials.password_confirmation,callback:function(e){t.$set(t.credentials,"password_confirmation",e)},expression:"\n credentials.password_confirmation\n "}})],1)],1)],1),t._v(" "),e("el-form-item",[e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.resetPassword()}}},[t._v("Reset")])],1)],1)],1)])])])])}),[],!1,null,null,null).exports}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.