parent
7b0bc22a71
commit
760b1b32a2
@ -3,6 +3,8 @@ const config = {
|
|||||||
documentserver_key: '',
|
documentserver_key: '',
|
||||||
// required
|
// required
|
||||||
baseurl: '',
|
baseurl: '',
|
||||||
|
// optional, will fallback to /selfservice
|
||||||
|
baseurl_selfservice: '/selfservice',
|
||||||
// optional, will fallback to /imprint
|
// optional, will fallback to /imprint
|
||||||
url_imprint: '',
|
url_imprint: '',
|
||||||
// optional, will fallback to /privacy
|
// optional, will fallback to /privacy
|
||||||
|
@ -3,5 +3,5 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
//
|
config.baseurl_selfservices = (config.baseurl_selfservices || "/selfservice");
|
||||||
</script>
|
</script>
|
@ -276,9 +276,6 @@ const state = reactive({
|
|||||||
&& userdetails.value.lastname && (provide_address.value === false || provide_address.value === true && (userdetails.value.address.street.trim() && userdetails.value.address.city.trim() && isPostalCode(userdetails.value.address.zipcode, "DE"))))
|
&& userdetails.value.lastname && (provide_address.value === false || provide_address.value === true && (userdetails.value.address.street.trim() && userdetails.value.address.city.trim() && isPostalCode(userdetails.value.address.zipcode, "DE"))))
|
||||||
})
|
})
|
||||||
const toast = useToast();
|
const toast = useToast();
|
||||||
const $t = this.$t.bind(this)
|
|
||||||
console.log($t);
|
|
||||||
// console.log(i18n('you_have_been_registered'));
|
|
||||||
function login() {
|
function login() {
|
||||||
userdetails = userdetails.value;
|
userdetails = userdetails.value;
|
||||||
if (userdetails.phone === "" || isMobilePhone(userdetails.phone)) {
|
if (userdetails.phone === "" || isMobilePhone(userdetails.phone)) {
|
||||||
@ -310,10 +307,7 @@ function login() {
|
|||||||
axios.post(url, postdata)
|
axios.post(url, postdata)
|
||||||
.then(({ data }) => {
|
.then(({ data }) => {
|
||||||
const token = btoa(data.token);
|
const token = btoa(data.token);
|
||||||
// location.replace("../profile/" + token)
|
router.push(`${config.baseurl_selfservices}/profile/${token}`);
|
||||||
router.push("../profile/" + token);
|
|
||||||
//
|
|
||||||
toast.success($t('you_have_been_registered'));
|
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user