From 7116de27d47031f68a6e61a663bc354f133f68e5 Mon Sep 17 00:00:00 2001 From: lilthree <87437904@qq.com> Date: Wed, 20 Sep 2017 00:17:45 +0800 Subject: [PATCH] problem with serverTextField when wrong password --- seafile/SeafAccountViewController.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/seafile/SeafAccountViewController.m b/seafile/SeafAccountViewController.m index a3e086ed..d1f07b70 100644 --- a/seafile/SeafAccountViewController.m +++ b/seafile/SeafAccountViewController.m @@ -86,7 +86,7 @@ - (IBAction)httpsSwitchFlip:(id)sender - (IBAction)shibboleth:(id)sender { - NSString *url = serverTextField.text; + NSString *url = [NSString stringWithFormat:@"%@%@",self.prefixLabel.text,serverTextField.text]; if (!url || url.length < 1) { [self alertWithTitle:NSLocalizedString(@"Server must not be empty", @"Seafile")]; return; @@ -110,7 +110,6 @@ - (IBAction)shibboleth:(id)sender - (IBAction)login:(id)sender { - serverTextField.text = [NSString stringWithFormat:@"%@%@",self.prefixLabel.text,serverTextField.text]; if (self.type == ACCOUNT_SHIBBOLETH) { return [self shibboleth:sender]; } @@ -119,7 +118,7 @@ - (IBAction)login:(id)sender [passwordTextField resignFirstResponder]; NSString *username = usernameTextField.text; NSString *password = passwordTextField.text; - NSString *url = serverTextField.text; + NSString *url = [NSString stringWithFormat:@"%@%@",self.prefixLabel.text,serverTextField.text]; if (!url || url.length < 1) { [self alertWithTitle:NSLocalizedString(@"Server must not be empty", @"Seafile")];