Skip to content

Commit

Permalink
Merge pull request #570 from afriedmanGlacier/patch-1
Browse files Browse the repository at this point in the history
Allow username with IP address
  • Loading branch information
chrisballinger committed Oct 10, 2016
2 parents f88c44d + da087ea commit 885ee06
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -182,7 +182,7 @@ + (XLFormRowDescriptor *)jidTextFieldRowDescriptorWithValue:(NSString *)value
XLFormRowDescriptor *usernameDescriptor = [self textfieldFormDescriptorType:XLFormRowDescriptorTypeEmail withTag:kOTRXLFormUsernameTextFieldTag title:USERNAME_STRING placeHolder:XMPP_USERNAME_EXAMPLE_STRING value:value];
usernameDescriptor.value = value;
usernameDescriptor.required = YES;
[usernameDescriptor addValidator:[XLFormValidator emailValidatorLong]];
[usernameDescriptor addValidator:[[OTRUsernameValidator alloc] init]];
return usernameDescriptor;
}

Expand Down

0 comments on commit 885ee06

Please sign in to comment.