mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 23:57:12 +01:00
Implement redux.
This commit is contained in:
parent
9d8a2406e1
commit
5d4ff5cfa4
31 changed files with 341 additions and 85 deletions
|
|
@ -20,7 +20,7 @@ export default function Login() {
|
|||
const [message, setMessage] = useState();
|
||||
|
||||
const handleSubmit = async ({ username, password }) => {
|
||||
const response = await post('/api/auth', { username, password });
|
||||
const response = await post('/api/auth/login', { username, password });
|
||||
|
||||
if (response?.token) {
|
||||
await Router.push('/');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue