Skip to content
Snippets Groups Projects
Commit 7aeea31b authored by Thomas Mewily's avatar Thomas Mewily
Browse files

ProfCore getLoginPair

parent af139589
Branches
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
...@@ -23,4 +23,16 @@ public class ProfCore extends _DefaultCore<ProfEntity> { ...@@ -23,4 +23,16 @@ public class ProfCore extends _DefaultCore<ProfEntity> {
entity.setPassword(password); entity.setPassword(password);
return dao.create(entity); return dao.create(entity);
} }
public ProfEntity getLoginPair(String username, String password)
{
for(ProfEntity p : dao.getAll())
{
if(p.getUserName() == username && p.getPassword() == password)
{
return p;
}
}
return null;
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment