♻️ Rework authentication

- Move login endpoint `/login` to `/auth/login`
- Add logout route `/auth/logout`
- Add `/api/token` endpoint and `?token=` query parameter for auth
- Refactor `auth.js`
This commit is contained in:
minie4 committed 2023-01-01 17:11:42 +01:00
1 parent 8c8a45aae3
commit e2e3113b5b
4 files changed
+96 -27

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
<template>
<div class="login">
<h1>Timetable V2</h1>
<form action="/login" method="POST">
<form action="/auth/login" method="POST">
<input
type="password"
name="password"