Skip to content

Commit

Permalink
Fixed: FindByEmailAsync should search for current tenant.
Browse files Browse the repository at this point in the history
  • Loading branch information
hikalkan committed Feb 19, 2015
1 parent bc329ec commit 5e98bbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Abp.Zero/Authorization/Users/AbpUserStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ public async Task SetEmailConfirmedAsync(TUser user, bool confirmed)

public async Task<TUser> FindByEmailAsync(string email)
{
return await _userRepository.FirstOrDefaultAsync(user => user.EmailAddress == email);
return await _userRepository.FirstOrDefaultAsync(
user => user.EmailAddress == email && user.TenantId == _session.TenantId
);
}

public async Task AddLoginAsync(TUser user, UserLoginInfo login)
Expand Down
2 changes: 1 addition & 1 deletion src/Abp.Zero/Zero/AbpZeroCoreModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class AbpZeroCoreModule : AbpModule
/// <summary>
/// Current version of the zero module.
/// </summary>
public const string CurrentVersion = "0.5.2.0";
public const string CurrentVersion = "0.5.2.1";

public override void PreInitialize()
{
Expand Down

0 comments on commit 5e98bbf

Please sign in to comment.