Skip to content

Commit 2556391

Browse files
authored
Merge pull request #54 from AnonymousDotNet/lida_Dev
fix: Add regionCode verification
2 parents 4841c43 + da90856 commit 2556391

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)