Exemple #1
0
 public bool SetPassword(string UserName, string password)
 {
     byte[]    encPassword = AccountsPrincipal.EncryptPassword(password);
     Data.User user        = new Data.User(PubConstant.ConnectionString);
     return(user.SetPassword(UserName, encPassword));
 }
Exemple #2
0
 /// <summary>
 /// 设置用户密码
 /// </summary>
 public bool SetPassword(string UserName, string password)
 {
     byte[] cryptPassword = AccountsPrincipal.EncryptPassword(password);
     return(dataUser.SetPassword(UserName, cryptPassword));
 }