Schravendeel
Newcomer
- Joined
- Dec 22, 2009
- Messages
- 2
Hello,
The line "result._response = LoginResult.INVALID_REQUEST;" throws an Unreachable code detected warning. What am I doing wrong?
The line "result._response = LoginResult.INVALID_REQUEST;" throws an Unreachable code detected warning. What am I doing wrong?
Code:
[WebMethod]
public LoginResponse Authenticate(string username, string passwordmd5){
LoginResponse result = new LoginResponse();
if (DataBaseManager.CheckIPBan(Context.Request.UserHostAddress))
{
result._response = LoginResult.IP_BANNED;
}
else
{
if (MAINTENANCE_MODE)
{
result._response = LoginResult.MAINTENANCE_MODE;
}
else
{
result._response = LoginResult.INVALID_REQUEST;
}
}
return result;
}