Skip to content

Commit 457f7d6

Browse files
MayueCifMayue
and
Mayue
authored
feat:add isldap (#170)
Co-authored-by: Mayue <mayue@lonsid.cn>
1 parent f8e96eb commit 457f7d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/BasicAbility/Masa.Contrib.BasicAbility.Auth/Service/UserService.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ public async Task<long> GetTotalByTeamAsync(Guid teamId)
6262
return await _callerProvider.GetAsync<object, long>(requestUri, new { id = teamId });
6363
}
6464

65-
public async Task<bool> ValidateCredentialsByAccountAsync(string account, string password)
65+
public async Task<bool> ValidateCredentialsByAccountAsync(string account, string password, bool isLdap = false)
6666
{
6767
var requestUri = $"api/user/validateByAccount";
68-
return await _callerProvider.PostAsync<object, bool>(requestUri, new { account, password });
68+
return await _callerProvider.PostAsync<object, bool>(requestUri, new { account, password, isLdap });
6969
}
7070

7171
public async Task<UserModel> FindByAccountAsync(string account)

0 commit comments

Comments
 (0)