Open cahall555 opened 6 months ago
This might help on the frontend: https://pub.dev/packages/crypt
Currently the request api is passing the password in plain text.
{"email":"stephanie@garden.com","password":"maci"}
The backend is hashing the password and saving the password as a hash in the db.
However, when creating a user the password and confirm password appear in plain text in the api. This should also be corrected.
{"id":"365a0612-483d-4f97-9303-59fd33dad5bb","first_name":"Stephanie","last_name":"Hall","email":"stephanie@garden.com","password_hash":"$2a$10$7GUELZpckaKL4wl0FBBkT.nIyBiHd9xsPF.rd/xwvc2wCeMKcrTku","password":"maci","password_confirmation":"maci","created_at":"2024-05-19T15:16:39.766623-04:00","updated_at":"2024-05-19T15:16:39.766623-04:00"}
may also consider this: https://pub.dev/packages/passwordfield
This might help on the frontend: https://pub.dev/packages/crypt
Currently the request api is passing the password in plain text.
{"email":"stephanie@garden.com","password":"maci"}
The backend is hashing the password and saving the password as a hash in the db.
However, when creating a user the password and confirm password appear in plain text in the api. This should also be corrected.
{"id":"365a0612-483d-4f97-9303-59fd33dad5bb","first_name":"Stephanie","last_name":"Hall","email":"stephanie@garden.com","password_hash":"$2a$10$7GUELZpckaKL4wl0FBBkT.nIyBiHd9xsPF.rd/xwvc2wCeMKcrTku","password":"maci","password_confirmation":"maci","created_at":"2024-05-19T15:16:39.766623-04:00","updated_at":"2024-05-19T15:16:39.766623-04:00"}