Beispiel #1
0
  public boolean checkPassword(String attempt) {
    String encoded = Utils.getMD5(attempt);

    return (encoded.equals(metadata.get(EPersonMetadataField.PASSWORD)));
  }
Beispiel #2
0
 public void setPassword(String password) {
   metadata.put(EPersonMetadataField.PASSWORD, Utils.getMD5(password));
   modified = true;
 }