UserServiceBeforeResetPasswordAsync Method
重置密码前调用的方法。
Namespace: QuickAdmin.Service.AdminAssembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 2.0.6
protected virtual Task<IServiceResult> BeforeResetPasswordAsync(
SysUser user,
string newPwd,
bool isDefaultPwd,
CancellationToken cancellationToken
)
- user SysUser
- 正在重置密码的用户实体。
- newPwd string
- 新密码。
- isDefaultPwd bool
- 指示新密码是否是默认密码。
- cancellationToken CancellationToken
- 用于取消操作的令牌。
TaskIServiceResult服务调用结果。