Package main.domain.contexts.user
Class UserLogin
java.lang.Object
main.domain.contexts.user.UserLogin
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
UserLoginConstructs a UserLogin context with the specified user repository.- Parameters:
- users- the repository of users
 
 
- 
- 
Method Details- 
withSession
- 
logAsLogs in the user with the specified email and password.- Parameters:
- email- the email of the user
- password- the password of the user
- Throws:
- PermissionDenied- if the login credentials are incorrect
 
- 
logOutpublic void logOut()Logs out the current session.
 
-