From 735dcef4f1fb397ba6a12af24af696b3702c59fe Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Wed, 21 Oct 2015 11:10:13 +0200 Subject: [PATCH] Wizard: fix account creation --- Classes/WizardViewController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/WizardViewController.m b/Classes/WizardViewController.m index e02ca09b8..22a2c58ae 100644 --- a/Classes/WizardViewController.m +++ b/Classes/WizardViewController.m @@ -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]];