Exemplo n.º 1
0
 private bool checkToken(string username, string password)
 {
     if (string.IsNullOrEmpty(username) || string.IsNullOrEmpty(password))
     {
         return(false);
     }
     else
     {
         FpUtility.Fp_Common.UnameAndPwd up    = new FpUtility.Fp_Common.UnameAndPwd(username, password);
         FpUtility.Fp_BLL.Token          token = new FpUtility.Fp_BLL.Token(up);
         bool b = token.checkAuth_Token();
         return(b);
     }
 }
Exemplo n.º 2
0
 private bool checkToken(string username, string password)
 {
     if (string.IsNullOrEmpty(username) || string.IsNullOrEmpty(password))
     {
         return false;
     }
     else
     {
         FpUtility.Fp_Common.UnameAndPwd up = new FpUtility.Fp_Common.UnameAndPwd(username, password);
         FpUtility.Fp_BLL.Token token = new FpUtility.Fp_BLL.Token(up);
         bool b = token.checkAuth_Token();
         return b;
     }
 }