需求
“Create a UML class diagram for user registration and login with an IAuthenticable interface, AbstractUser, RegisteredUser, credentials, sessions and an authentication service.”
接著試試Add password reset tokens.Add an email verification field to RegisteredUser.
這張圖裡有什麼
看懂背後的決策。
01
Use composition for session ownership
02
Dependency injection for service classes
When modeling object-oriented authentication systems with interfaces and abstract base classes.