Skip to content

Commit da90856

Browse files
fix: Add regionCode verification
1 parent 4841c43 commit da90856

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Infrastructure/BotSharp.Core/Users/Services/UserService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ public async Task<bool> SendVerificationCodeResetPasswordNoLogin(User user)
570570

571571
if (!string.IsNullOrEmpty(user.Phone))
572572
{
573-
record = db.GetUserByPhone(user.Phone);
573+
record = db.GetUserByPhone(user.Phone, regionCode: user.RegionCode);
574574
}
575575

576576
if (!string.IsNullOrEmpty(user.Email))
@@ -745,7 +745,7 @@ public async Task<bool> AddDashboardConversation(string userId, string conversat
745745
await Task.CompletedTask;
746746
return true;
747747
}
748-
748+
749749
public async Task<bool> RemoveDashboardConversation(string userId, string conversationId)
750750
{
751751
var db = _services.GetRequiredService<IBotSharpRepository>();

0 commit comments

Comments
 (0)