Skip to content
Snippets Groups Projects
Commit 8cf493cf authored by srosse's avatar srosse
Browse files

OO-1105: lower case + trim for email in registration forms

parent cee36c1c
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,7 @@ public class EmailSendingForm extends FormBasicController { ...@@ -71,7 +71,7 @@ public class EmailSendingForm extends FormBasicController {
} }
protected String getEmailAddress() { protected String getEmailAddress() {
return mail.getValue().trim(); return mail.getValue().toLowerCase().trim();
} }
@Override @Override
......
...@@ -88,13 +88,17 @@ public class ShibbolethRegistrationWithEmailForm extends FormBasicController { ...@@ -88,13 +88,17 @@ public class ShibbolethRegistrationWithEmailForm extends FormBasicController {
/** /**
* @return Login field. * @return Login field.
*/ */
protected String getLogin() { return login.getValue(); } protected String getLogin() {
return login.getValue();
}
/** /**
* *
* @return E-mail field * @return E-mail field
*/ */
protected String getEmail() { return eMail.getValue(); } protected String getEmail() {
return eMail.getValue().toLowerCase().trim();
}
@Override @Override
protected void formOK(UserRequest ureq) { protected void formOK(UserRequest ureq) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment