%PDF- %PDF-
Direktori : /home/forge/takeaseat.eco-n-tech.co.uk/.nuxt/dist/server/pages/ |
Current File : //home/forge/takeaseat.eco-n-tech.co.uk/.nuxt/dist/server/pages/reset-password.js.map |
{"version":3,"file":"pages/reset-password.js","sources":["webpack:///./pages/reset-password.vue?eed8","webpack:///./pages/reset-password.vue","webpack:///./pages/reset-password.vue?937b","webpack:///./pages/reset-password.vue?6011"],"sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"page-wrapper\"},[_vm._ssrNode(\"<section class=\\\"bg-gray py-20 px-8\\\">\",\"</section>\",[_vm._ssrNode(\"<div class=\\\"max-w-xl mx-auto w-full\\\">\",\"</div>\",[_vm._ssrNode(\"<header class=\\\"text-center mb-10\\\"><h1 class=\\\"text-4xl font-bold\\\">Reset Password</h1></header> \"),_c('ValidationObserver',{ref:\"form\"},[_c('form',{attrs:{\"role\":\"form\",\"method\":\"POST\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.resetPassword($event)}}},[_c('t-input-group',{attrs:{\"label\":\"Email\"}},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form.email),expression:\"form.email\"}],staticClass:\"form-control\",attrs:{\"type\":\"email\",\"id\":\"email\",\"disabled\":\"disabled\",\"placeholder\":\"Enter your email address\"},domProps:{\"value\":(_vm.form.email)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.form, \"email\", $event.target.value)}}})]),_vm._v(\" \"),_c('ValidationProvider',{attrs:{\"rules\":\"required|password:@password_confirmation\",\"name\":\"password\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('t-input-group',{attrs:{\"label\":\"Password\"}},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form.password),expression:\"form.password\"}],staticClass:\"form-control\",attrs:{\"type\":\"password\",\"id\":\"password\",\"placeholder\":\"Enter a strong password\"},domProps:{\"value\":(_vm.form.password)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.form, \"password\", $event.target.value)}}}),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"field-invalid\"},[_vm._v(_vm._s(errors[0]))]):_vm._e(),_vm._v(\" \"),_c('password',{attrs:{\"strength-meter-only\":true},model:{value:(_vm.form.password),callback:function ($$v) {_vm.$set(_vm.form, \"password\", $$v)},expression:\"form.password\"}})],1)]}}])}),_vm._v(\" \"),_c('ValidationProvider',{attrs:{\"name\":\"password_confirmation\",\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('t-input-group',{attrs:{\"label\":\"Password Confirmation\"}},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form.password_confirmation),expression:\"form.password_confirmation\"}],staticClass:\"form-control\",attrs:{\"type\":\"password\",\"id\":\"password_confirmation\",\"placeholder\":\"Enter your password again\"},domProps:{\"value\":(_vm.form.password_confirmation)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.form, \"password_confirmation\", $event.target.value)}}}),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"field-invalid\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()])]}}])}),_vm._v(\" \"),_c('button',{staticClass:\"w-full btn btn-primary rounded-full\",attrs:{\"disabled\":_vm.working == true,\"type\":\"submit\"}},[(_vm.working == false)?_c('span',[_vm._v(\"Reset Password\")]):_c('span',{staticClass:\"flex items-center justify-center\"},[_c('svg',{staticClass:\"animate-spin -ml-1 mr-3 h-5 w-5 text-current\",attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"fill\":\"none\",\"viewBox\":\"0 0 24 24\"}},[_c('circle',{staticClass:\"opacity-25\",attrs:{\"cx\":\"12\",\"cy\":\"12\",\"r\":\"10\",\"stroke\":\"currentColor\",\"stroke-width\":\"4\"}}),_vm._v(\" \"),_c('path',{staticClass:\"opacity-75\",attrs:{\"fill\":\"currentColor\",\"d\":\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"}})]),_vm._v(\" \"),_c('span',[_vm._v(\"Processing\")])])])],1)])],2)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nexport default {\n auth: 'guest',\n \n head () {\n return {\n titleTemplate: 'Reset your password | %s',\n }\n },\n\n data() {\n return {\n working: false,\n form: {\n email: null,\n password: null,\n password_confirmation: null\n },\n }\n },\n\n async asyncData({ app, query, redirect }) {\n await app.$axios.$get('/password/reset', {\n params: query\n }).catch(() => {\n redirect('/')\n })\n },\n\n mounted() {\n this.form.email = this.$route.query.email;\n },\n\n methods: {\n async resetPassword() {\n let token = this.$route.query.token;\n let email = this.$route.query.email;\n\n this.$refs.form.validate().then(success => {\n if (!success) {\n return;\n }\n\n this.working = true;\n this.$axios.post('/password/reset', {\n email: email,\n token: token,\n password: this.form.password,\n password_confirmation: this.form.password_confirmation\n }).then((response) => {\n this.working = false;\n if(response.status == 200) {\n this.$router.push({path: '/'})\n this.$toast.success(response.data).goAway(3000);\n }\n }).catch(error => {\n this.working = false;\n this.$router.push({path: '/forgot-password'})\n this.$toast.error(error.response.data).goAway(3000);\n this.$refs.form.setErrors(error.response.data.errors);\n });\n });\n }\n }\n}\n","import mod from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./reset-password.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./reset-password.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./reset-password.vue?vue&type=template&id=0b4ff43d&\"\nimport script from \"./reset-password.vue?vue&type=script&lang=js&\"\nexport * from \"./reset-password.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n \"1c98eda5\"\n \n)\n\nexport default component.exports\n\n/* nuxt-component-imports */\ninstallComponents(component, {Header: require('/home/forge/takeaseat.eco-n-tech.co.uk/components/layout/Header.vue').default})\n"],"mappings":";;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AADA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAFA;AAQA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AADA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AA9BA;AAhCA;;AChEA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;A","sourceRoot":""}