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