🐞 fix /profile/ router on register

ref #32
This commit is contained in:
Philipp Dormann 2021-04-01 18:31:37 +02:00
parent e3f7497af5
commit 52a082841d
1 changed files with 2 additions and 3 deletions

View File

@ -261,8 +261,6 @@ import isEmail from 'validator/es/lib/isEmail';
import isMobilePhone from 'validator/es/lib/isMobilePhone';
import isPostalCode from 'validator/es/lib/isPostalCode';
import { useToast } from "vue-toastification";
// import { router } from '../router';
import { i18n } from '../language';
const props = defineProps({
token: String
@ -328,7 +326,8 @@ function login() {
axios.post(url, postdata)
.then(({ data }) => {
const token = btoa(data.token);
// router.push(`${config.baseurl_selfservice}/profile/${token}`);
// alert(token);
location.replace(`${config.baseurl_selfservice}profile/${token}`);
})
.catch((error) => {
console.log(error);