trim() method called in user form creation before submitting it
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/admin/create-users@131034 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
b0fbde6943
commit
7937e8cfd8
|
@ -112,10 +112,10 @@ public class AddUserForm extends Composite{
|
|||
void onClick(ClickEvent e) {
|
||||
|
||||
// input validation
|
||||
String actualName = nameTextbox.getText();
|
||||
String actualSurname = surnameTextbox.getText();
|
||||
String actualEmail = emailTextbox.getText();
|
||||
String actualCompany = companyTextbox.getText();
|
||||
String actualName = nameTextbox.getText().trim();
|
||||
String actualSurname = surnameTextbox.getText().trim();
|
||||
String actualEmail = emailTextbox.getText().trim();
|
||||
String actualCompany = companyTextbox.getText().trim();
|
||||
|
||||
if(actualEmail.isEmpty() || !actualEmail.matches(EMAIL_PATTERN)){
|
||||
|
||||
|
|
Loading…
Reference in New Issue