Skip to content

Commit 304d989

Browse files
committed
oauth,创建用户时,只根据type和identity进行判断是否存在
1 parent 91460d8 commit 304d989

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Meowv.Blog.Application/Users/Impl/UserService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public async Task<BlogResponse<UserDto>> GetCurrentUserAsync()
220220
[RemoteService(false)]
221221
public async Task<User> CreateUserAsync(string username, string type, string identity, string name, string avatar, string email)
222222
{
223-
var user = await _users.FindAsync(x => x.Username == username && x.Type == type && x.Identity == identity);
223+
var user = await _users.FindAsync(x => x.Type == type && x.Identity == identity);
224224
if (user is null)
225225
{
226226
await _users.InsertAsync(new User

0 commit comments

Comments
 (0)