Пример #1
0
 public string SavePasswordActivate()
 {
     if (Request["Password"].Length > 4)
     {
         var encrypt  = new Cryptography();
         var userId   = Request["UserId"];
         var password = Convert.ToBase64String(encrypt.Encryption(Request["Password"]));
         return(_userManagement.ActivateUser(Convert.ToInt32(userId), password).ToString());
     }
     return("Failure");
 }