Wire frontend login to user_login.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alberto-AudrixandCursor committed 2026-09-08 16:23:05 +07:00
1 parent 4eed6b2e87
commit 92be5ee3d2
4 files changed
+16 -14

No files matched your search

+2 -2
View File
@@ -159,8 +159,8 @@ const del = (path: string) => request<void>(path, { method: 'DELETE' });
export const api = {
auth: {
csrf: () => get<{ csrfToken: string }>('/auth/csrf/'),
login: (user_name: string, password: string) =>
post<User>('/auth/login/', { user_name, password }),
login: (user_login: string, password: string) =>
post<User>('/auth/login/', { user_login, password }),
logout: () => post<void>('/auth/logout/'),
me: () => get<User>('/auth/me/'),
},