auth enhancements amongst other things
This commit is contained in:
parent
bb9769e917
commit
85c3799fca
21 changed files with 336 additions and 363 deletions
|
|
@ -29,13 +29,12 @@
|
|||
</form>
|
||||
|
||||
<!-- back to login button: position: fixed -->
|
||||
<button class="createAccountButton button" @click.prevent="switchView">Create account</button>
|
||||
<!-- <button class="createAccountButton button" @click.prevent="switchView">Create account</button> -->
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
|
||||
import { defineComponent, ref } from "vue";
|
||||
import { useAuth } from "@/modules/auth";
|
||||
import { useIpc } from "@/modules/ipc";
|
||||
import useMessages from "@/modules/messages";
|
||||
import { authRequest } from '@/modules/message';
|
||||
|
|
@ -46,11 +45,9 @@ export default defineComponent({
|
|||
setup() {
|
||||
|
||||
const { post } = useIpc();
|
||||
const { setToken } = useAuth();
|
||||
const { resetMessages } = useMessages();
|
||||
|
||||
let usr = ref("");
|
||||
let pwd = ref("");
|
||||
const usr = ref("");
|
||||
const pwd = ref("");
|
||||
|
||||
// Submit login credentials to the backend.
|
||||
const submitForm = () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue