常用方法
常用方法
常用方法
常用方法
public int ChangePassword(User user, string newPassword) { user.Password = PasswordEncryptor.EncryptPassword(user.Password); newPassword = PasswordEncryptor.EncryptPassword(newPassword); return(context.ChangePassword(user, newPassword)); }