add various things of the backend

This commit is contained in:
2023-07-09 19:53:55 +02:00
parent fc4b18274b
commit 29a68edc0c
4 changed files with 12 additions and 4 deletions

View File

@@ -19,10 +19,10 @@ app.use( createPinia() );
let userStore = useUserStore();
let prod = false;
let prod = true;
if ( prod ) {
fetch( '/api/getAuth' ).then( res => {
fetch( 'http://localhost:8081/api/getAuth' ).then( res => {
res.json().then( data => {
userStore.setUserAuth( data.user );
userStore.setAdminAuth( data.admin );

View File

@@ -0,0 +1,6 @@
<template>
<div id="2fa">
<h1>Two Factor Authentication</h1>
<p>We have sent you an email containing a link for Authentication.</p>
</div>
</template>