Skip to content
Snippets Groups Projects
Unverified Commit a79fdd29 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

BUG: Workaround für probleme in der WebUI

parent 0e2927e6
No related branches found
No related tags found
No related merge requests found
......@@ -222,6 +222,9 @@ public class AWIBoxLoan extends AWIBoxLoanModel {
if (Objects.equals(p.getId(), getEmailID()) && p.getValue() instanceof SingleValue) {
if (!Utils.isRFC822Compliant(((SingleValue) p.getValue()).toDatabaseString())) {
p.addError(ServerMessages.EMAIL_NOT_WELL_FORMED);
} else {
p.setName("email"); // TODO fix webinterface to use lower-case email
p.setNameOverride(false);
}
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment