A
A
Alexey Voropaev2018-12-11 00:13:57
RESTful API
Alexey Voropaev, 2018-12-11 00:13:57

Is a password confirmation field needed in REST Api?

I'm making a Symphony 4 backend for our frontend. On the front there is a registration page and 2 fields: "password" and "confirm password". Do I need to make fields "password" and "password_confirmation" on the backend and check them? Or will just the "password" field suffice?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2018-12-11
@boomrap

data on the client cannot be trusted, it must be validated on the server.
either leave one field at the front, or pass both.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question