Commit 9e965738 authored by Grzegorz Pietrusza's avatar Grzegorz Pietrusza

cleanup and add todos

parent 160386c6
......@@ -23,9 +23,6 @@ import java.util.Map;
import java.util.Optional;
import java.util.stream.Collectors;
/**
* Created by gpietrus on 20.02.2016.
*/
@Singleton
public class TasksRepository implements Repository
{
......
......@@ -51,6 +51,7 @@ public class TeamsRepository implements Repository {
}
//todo: move to interface
//todo: use default as interface-implemented methods
public void add(Team team) {
datastore.save(team);
}
......
......@@ -42,7 +42,6 @@ public class UsersRepository implements Repository
public User authenticateUser(BasicCredentials basicCredentials)
{
return datastore.createQuery(User.class)
.field("name").equal(basicCredentials.getUsername())
.field("password").equal(Hex.encodeHexString(messageDigest.digest(basicCredentials.getPassword().getBytes())))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment