Closed RitaHC closed 1 year ago
Instead of handling all this on sign up, I'd recommend reverting back to the initial AUTH components, and building a route similar to change-password that updates the user with these additional fields. Try that instead of changing the built in sign up components.
Thanks Timm, trying that
Got my contents to display in the Sign up page itself -> There was a problem in my axios call which defined the credentials
corrected Code: ->
export const signUp = (credentials) => {
return axios({
method: 'POST',
url: apiUrl + '/sign-up',
data: {
credentials: {
email: credentials.email,
password: credentials.password,
password_confirmation: credentials.passwordConfirmation,
name: credentials.name
},
},
})
}
Describe the bug A clear and concise description of what the bug is.
We are creating a Social Media app-> I have made some additional fields in the User model and they are not popping up in the credentials section.
The bug is in the Backend, it is not populating the data in the backend
What is the problem you are trying to solve?
Trying to display the user fields input in the frontend to get stored in the backend
Expected behavior A clear and concise description of what you expected to happen.
It should send back email, password, name, city and description to the backend
What is the actual behavior? A clear and concise description of what actually happened.
It just give email, password and password confirmation, rest data does not pops up
Post any code you think might be relevant (one fenced block per file)
BACKEND CODE
FRONTEND CODE
What is your best guess as to the source of the problem?
problem with backend
What things have you already tried to solve the problem?
Self study, online, Team members help
Additional context Add any other context about the problem here.
That's pretty much it
Paste a link to your repository here Frontend https://github.com/RitaHC/Social-Media-Clone-Front-End/tree/ritaF2
Backend https://github.com/bruce
abrigo/App3-API/tree/content_Routes2