Exemple #1
0
 public object Any(WmsLogin request)
 {
     var signature = this.Request.Headers.GetValues("Signature");
     if (signature != null)
     {
         if (auth.AuthResult(signature[0].ToString(), this.Request.RawUrl))
         {
             var Result = loginLogic.LoginCheck(request).ToString();
             return new LoginResponse { strResult = Result };
         }
     }
     return new AuthFaildResponse { strResult = "No Authentication." };
 }
Exemple #2
0
        public object Any(WmsLogin request)
        {
            var signature = this.Request.Headers.GetValues("Signature");

            if (signature != null)
            {
                if (auth.AuthResult(signature[0].ToString(), this.Request.RawUrl))
                {
                    var Result = loginLogic.LoginCheck(request).ToString();
                    return(new LoginResponse {
                        strResult = Result
                    });
                }
            }
            return(new AuthFaildResponse {
                strResult = "No Authentication."
            });
        }