Suppose my module accepts a username and password and returns true or false to indicate success or failure. Would this be more a model or a controller?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It really doesn’t need to exist in a controller. It could be in a class library if needed. You would need to have a Controller Action / View that eventually prompts a user for their credentials, but the logic of authenticating does not need to exist in the Controller Action.