Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User can register and login to their account #50

Merged
merged 1 commit into from Oct 12, 2018

Conversation

E0191729
Copy link
Collaborator

No description provided.

@xllx1 xllx1 merged commit 04a733e into CS2113-AY1819S1-T13-2:master Oct 12, 2018
@@ -40,8 +40,7 @@ public CommandResult execute(Model model, CommandHistory history) throws Command
User exist = new User();
try(UnitOfWork unitOfWork = new UnitOfWork()) {
try {
exist= unitOfWork.getUserRepository().authenticate(userName,userPassword);

exist = unitOfWork.getUserRepository().authenticate(userName,userPassword);
} catch (Exception e) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is better to inform user if login authentication fails

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants