/// <summary> /// Posts the specified request. /// </summary> /// <param name="request">The request.</param> public async Task <object> Post(AuthenticateAccount request) { var auth = _authContext.GetAuthorizationInfo(Request); var result = _sessionMananger.AuthenticateNewSessionAccount(new AuthenticationRequest { App = auth.Client, AppVersion = auth.Version, DeviceId = auth.DeviceId, DeviceName = auth.Device, Password = request.Password, RemoteEndPoint = Request.RemoteIp, Email = request.Email }); return(ToOptimizedResult(result)); }