I have a servlet used to create an account. I have a question: to me, the controller should be totally independent of request's parameters, but for example if I have a controller method like
public User signup(String pseudo, String firstname, String lastname, String password, String email)
and i want the user to type his password twice, should I pass the second input as an argument to signup (breaking the "simplicity" of this method) or should I check if the first password matches the second in the servlet (keeping the controller doing only it's job, but making the servlet check inputs) ?