feat(auth): add MINDA_DEMO support with auto-seeded demo accounts and username login
MindSift CI & Docker Release / Build, Test in Container & Push (push) Successful in 59s

This commit is contained in:
sandrodach committed 2026-10-25 10:12:13 +01:00
1 parent 41c64c4924
commit 7f312fef14
12 files changed
+297 -23

No files matched your search

+2 -2
View File
@@ -125,10 +125,10 @@ export const api = {
return res;
},
async login(email: string, password: string): Promise<{ token: string; user: User }> {
async login(loginOrEmail: string, password: string): Promise<{ token: string; user: User }> {
const res = await request<{ token: string; user: User }>('/api/v1/auth/login', {
method: 'POST',
body: JSON.stringify({ email, password }),
body: JSON.stringify({ email: loginOrEmail, username: loginOrEmail, login: loginOrEmail, password }),
});
setToken(res.token);
return res;