fix: 解决修改手机/邮箱后未重新登录,导致修改密码失败
This commit is contained in:
parent
f2dc57c6b7
commit
ee1de29495
|
|
@ -127,7 +127,8 @@ public class UserService : IUserService
|
|||
public async Task<bool> UpdatePassword(string password, string verificationCode)
|
||||
{
|
||||
var db = _services.GetRequiredService<IBotSharpRepository>();
|
||||
var record = db.GetUserByUserName(_user.UserName);
|
||||
|
||||
var record = db.GetUserById(_user.Id);
|
||||
|
||||
if (record == null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue