//[RestRoute(Method = "POST", Path = "login")] public static async void HandleLoginRequest(HttpHeader request, BnetChallengeSession session) { // TODO: Implement authentication. if (false) { } else await session.Send(RestResponse.InvalidAccountOrCredentials); }
//[RestRoute(Method = "POST", Path = "login")] public static async void HandleLoginRequest(HttpHeader request, BnetChallengeSession session) { // TODO: Implement authentication. if (false) { } else { await session.Send(RestResponse.InvalidAccountOrCredentials); } }
public static async void HandleConnectRequest(HttpHeader request, BnetChallengeSession session) { // Login form is the same for all clients... await session.Send(RestResponse.LoginForm); }