change user_name still used as login and add display_name for dashboard view instead of username on login

This commit is contained in:
Alberto-Audrix committed 2026-09-10 10:51:51 +07:00
1 parent 7a562c18ec
commit 11b0ca26a5
33 files changed
+180 -145

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_login: string, password: string) =>
post<User>('/auth/login/', { user_login, password }),
login: (user_name: string, password: string) =>
post<User>('/auth/login/', { user_name, password }),
logout: () => post<void>('/auth/logout/'),
me: () => get<User>('/auth/me/'),
},