@@ -130,7 +130,7 @@ - (void)viewWillAppear:(BOOL)animated {
130
130
((CheckAccessToServer *)[CheckAccessToServer sharedManager ]).delegate = self;
131
131
132
132
133
- if (self.urlTextField .text .length > 0 && (isConnectionToServer == NO ) && !self.alreadyHaveValidSAMLCredentials ) {
133
+ if (self.urlTextField .text .length > 0 && (! isConnectionToServer) && !self.alreadyHaveValidSAMLCredentials ) {
134
134
DLog (@" _login view appear and no connection to server and no valid SAML credentials auto recheck server manually_" );
135
135
[self checkUrlManually ];
136
136
}
@@ -1631,7 +1631,7 @@ - (void)textFieldDidEndEditing:(UITextField *)textField {
1631
1631
[refreshTestServerButton setHidden: NO ];
1632
1632
}
1633
1633
1634
- if ((self.urlTextField .text .length > 0 && self.passwordTextField .text .length > 0 && self.passwordTextField .text .length > 0 && isConnectionToServer== YES && hasInvalidAuth == NO ) || (isConnectionToServer && (k_is_oauth_active || k_is_sso_active))) {
1634
+ if ((self.urlTextField .text .length > 0 && self.passwordTextField .text .length > 0 && self.passwordTextField .text .length > 0 && isConnectionToServer && ! hasInvalidAuth) || (isConnectionToServer && (k_is_oauth_active || k_is_sso_active))) {
1635
1635
// [loginButton setEnabled:YES];
1636
1636
isLoginButtonEnabled = YES ;
1637
1637
[self .tableView reloadData ];
@@ -1800,7 +1800,7 @@ -(void)updateInterfaceWithConnectionToTheServer:(BOOL)isConnection{
1800
1800
dispatch_async (dispatch_get_main_queue (), ^{
1801
1801
if (isConnection) {
1802
1802
isConnectionToServer = YES ;
1803
- if (self.urlTextField .text .length > 0 && self.usernameTextField .text .length > 0 && self.passwordTextField .text .length > 0 && hasInvalidAuth == NO ) {
1803
+ if (self.urlTextField .text .length > 0 && self.usernameTextField .text .length > 0 && self.passwordTextField .text .length > 0 && ! hasInvalidAuth) {
1804
1804
// [loginButton setEnabled:YES];
1805
1805
isLoginButtonEnabled = YES ;
1806
1806
}
@@ -1989,7 +1989,7 @@ - (void) checkIfServerAutentificationIsNormalFromURL {
1989
1989
1990
1990
BOOL isInvalid = NO ;
1991
1991
1992
- if (k_is_sso_active == NO ) {
1992
+ if (! k_is_sso_active) {
1993
1993
// Get header related with autentication type
1994
1994
NSString *autenticationType = [[response allHeaderFields ] valueForKey: @" Www-Authenticate" ];
1995
1995
@@ -1999,7 +1999,7 @@ - (void) checkIfServerAutentificationIsNormalFromURL {
1999
1999
isInvalid = NO ;
2000
2000
} else if ([autenticationType hasPrefix: @" Bearer" ]) {
2001
2001
// Autentication type oauth
2002
- if (k_is_oauth_active == YES ) {
2002
+ if (k_is_oauth_active) {
2003
2003
// Check if is activate oauth
2004
2004
isInvalid = NO ;
2005
2005
} else {
0 commit comments