Skip to content

Commit

Permalink
fixed interactive validation check
Browse files Browse the repository at this point in the history
  • Loading branch information
drusellers committed May 27, 2011
1 parent 40ff79f commit 4a2f1cc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ public void Validate()
"The service account must be a user account when a username and password are specified");
}

if (_username.IsEmpty() && _password.IsEmpty() && _accountType == ServiceAccount.User)
return; //interactive

if (_accountType == ServiceAccount.User && (_username.IsEmpty() || _password.IsEmpty()))
throw new HostConfigurationException("The username and password must be specified for a user account");
}
Expand Down

0 comments on commit 4a2f1cc

Please sign in to comment.