forked from mirrors/linphone-iphone
Wizard: fix account creation
This commit is contained in:
parent
ccec58f5f6
commit
735dcef4f1
1 changed files with 2 additions and 2 deletions
|
|
@ -780,14 +780,14 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
NSInteger username_length = [[LinphoneManager instance] lpConfigIntForKey:@"username_length" forSection:@"wizard"];
|
||||
NSInteger password_length = [[LinphoneManager instance] lpConfigIntForKey:@"password_length" forSection:@"wizard"];
|
||||
|
||||
if ([username length] < username_length) {
|
||||
if (username_length > (int)username.length) {
|
||||
[errors appendString:[NSString stringWithFormat:NSLocalizedString(
|
||||
@"The username is too short (minimum %d characters).", nil),
|
||||
username_length]];
|
||||
[errors appendString:@"\n"];
|
||||
}
|
||||
|
||||
if ([password length] < password_length) {
|
||||
if (password_length > (int)password.length) {
|
||||
[errors appendString:[NSString stringWithFormat:NSLocalizedString(
|
||||
@"The password is too short (minimum %d characters).", nil),
|
||||
password_length]];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue