Add display name support for user management and update related components
All checks were successful
Build & Push Docker Image / build (push) Successful in 6m2s

This commit is contained in:
2026-02-27 16:29:23 +01:00
parent d781022b63
commit 9be9938f02
14 changed files with 165 additions and 63 deletions

View File

@@ -28,8 +28,8 @@ export function AuthProvider({ children }) {
return res.data.user;
}, []);
const register = useCallback(async (name, email, password) => {
const res = await api.post('/auth/register', { name, email, password });
const register = useCallback(async (username, displayName, email, password) => {
const res = await api.post('/auth/register', { username, display_name: displayName, email, password });
if (res.data.needsVerification) {
return { needsVerification: true };
}