Password encoding transforms a submitted plaintext password into a stored representation before registration saves the user. Later, the user details service authenticates against that encoded value. section 5.2.2
Encoding during Taco Cloud registration
RegistrationController receives a PasswordEncoder and passes it to RegistrationForm.toUser(). That method calls passwordEncoder.encode(password) while constructing the User object, so UserRepository saves the encoded password rather than the submitted plaintext. section 5.2.2
The registration flow places encoding between form submission and persistence:
- Bind the registration form fields to RegistrationForm. section 5.2.2
- Save the resulting user so authentication can use the encoded password. section 5.2.2
