Q:

Location of password functionalitly in DDD

I'm buidling an application using MVC 2, with EF 4, using the repository pattern and poco. I want to build a login page for Customers. Where should the functionality live that does things like checks password policy, validity and all other things login related. Would this live inside the POCO generated Customer Entity, should I create a seperate login class, or something else?
Thanks
Stu

A:

Under DDD, that functionality could be implemented as a Service, as it is not the responibility of the Customer to authenticate itself.
You can read a definition of Service here.

