package util;

/**
 * Created by Peter Mösenthin.
 *
 * Class to handle the Authentication. Currently there isn't any real
 * authentication
 */
public class NoAuth {
    private static final String DEBUG_TAG = NoAuth.class.getSimpleName();
    private static final String key = "abc12345";

    public static boolean verify(String keyToVerify){
        Log.add(DEBUG_TAG, "Verifying key");
        return key.equals(keyToVerify);
    }
}

@@ -8,16 +8,104 @@
  util;%0A%0A
+import data.model.User;%0Aimport system.service.DataBaseService;%0A%0Aimport java.util.List;%0A%0A
 /**%0A * C
@@ -518,10 +518,395 @@
 ;%0A    %7D%0A
+%0A%0A    public static boolean verify(User user)%7B%0A        User u = (User) DataBaseService.getInstance().readId(DataBaseService.DataType.USER,%0A                user.getId()).get(0);%0A        String db_password,db_email;%0A        db_email = u.getEmail();%0A        db_password = u.getPassword();%0A        return db_email.equals(user.getEmail()) && db_password.equals(user.getPassword());%0A    %7D%0A%0A%0A
 %7D%0A

add user verification