From e333a2e32da3614af1915a1457e1665b3d0e2186 Mon Sep 17 00:00:00 2001 From: Jake Kasper Date: Thu, 21 Aug 2025 10:28:25 -0500 Subject: [PATCH] update register call --- frontend/src/contexts/AuthContext.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/contexts/AuthContext.js b/frontend/src/contexts/AuthContext.js index 6338971..80d97a4 100644 --- a/frontend/src/contexts/AuthContext.js +++ b/frontend/src/contexts/AuthContext.js @@ -148,7 +148,10 @@ export const AuthProvider = ({ children }) => { dispatch({ type: actionTypes.SET_LOADING, payload: true }); dispatch({ type: actionTypes.CLEAR_ERROR }); - const response = await authAPI.register(userData); + // Filter out frontend-only fields before sending to backend + const { confirmPassword, agreeTerms, ...backendData } = userData; + + const response = await authAPI.register(backendData); dispatch({ type: actionTypes.LOGIN_SUCCESS,