Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 083e7006 authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

removed route

parent 14bba444
Loading
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -15,8 +15,7 @@
				"@nextcloud/router": "^2.0.0",
				"@nextcloud/vue": "^5.4.0",
				"vue": "^2.7.0",
				"vue-password-strength-meter": "^1.7.2",
				"vue-router": "^3.6.5"
				"vue-password-strength-meter": "^1.7.2"
			},
			"devDependencies": {
				"@nextcloud/babel-config": "^1.0.0",
@@ -11162,11 +11161,6 @@
				"vue": "^2.6.0"
			}
		},
		"node_modules/vue-router": {
			"version": "3.6.5",
			"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz",
			"integrity": "sha512-VYXZQLtjuvKxxcshuRAwjHnciqZVoXAjTjcqBTz4rKc8qih9g9pI3hbDjmqXaHdgL3v8pV6P8Z335XvHzESxLQ=="
		},
		"node_modules/vue-style-loader": {
			"version": "4.1.3",
			"resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz",
@@ -20285,11 +20279,6 @@
				"@babel/runtime": "^7.13.10"
			}
		},
		"vue-router": {
			"version": "3.6.5",
			"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz",
			"integrity": "sha512-VYXZQLtjuvKxxcshuRAwjHnciqZVoXAjTjcqBTz4rKc8qih9g9pI3hbDjmqXaHdgL3v8pV6P8Z335XvHzESxLQ=="
		},
		"vue-style-loader": {
			"version": "4.1.3",
			"resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz",
+1 −2
Original line number Diff line number Diff line
@@ -25,8 +25,7 @@
		"@nextcloud/router": "^2.0.0",
		"@nextcloud/vue": "^5.4.0",
		"vue": "^2.7.0",
		"vue-password-strength-meter": "^1.7.2",
		"vue-router": "^3.6.5"
		"vue-password-strength-meter": "^1.7.2"
	},
	"browserslist": [
		"extends @nextcloud/browserslist-config"

src/routes.js

deleted100644 → 0
+0 −20
Original line number Diff line number Diff line
import Vue from 'vue'
import VueRouter from 'vue-router'
import Signup from './Signup.vue'

Vue.use(VueRouter)

const routes = [
	{
		path: '/signup',
		name: 'Signup',
		component: () => Signup,
	},
]

const router = new VueRouter({
	mode: 'history',
	routes,
})

export default router
+0 −2
Original line number Diff line number Diff line
import Vue from 'vue'
import './common.js'
import Signup from './Signup.vue'
import router from './routes.js'

export default new Vue({
	el: '#ecloud-accounts-signup',
	router,
	render: h => h(Signup),
})
+3 −6
Original line number Diff line number Diff line
@@ -85,15 +85,12 @@ export default {
			this.validation.isCaptchaInputNotMatched = false

			try {
				const urlParams = new URLSearchParams(window.location.search)
				const bypassToken = urlParams.get('bypassToken')
				const data = {
					captchaInput: this.formData.captchaInput,
					bypassToken: this.$route.query.bypassToken || null,
					bypassToken: bypassToken || null,
				}
				const urlParams = new URLSearchParams(window.location.search)
				const myParam = urlParams.get('bypassToken')
				/* eslint-disable no-console */
				console.log('here is the value of bypassToken')
				console.log(myParam)
				const url = generateUrl(`/apps/${this.appName}/accounts/verify_captcha`)
				await Axios.post(url, data)
				const isFormValid = true