File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Nullinside.Api.Model/Shared Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ public static class UserHelpers {
27
27
string ? twitchUsername = null , string ? twitchId = null ) {
28
28
string bearerToken = AuthUtils . GenerateBearerToken ( ) ;
29
29
try {
30
- User ? existing = await dbContext . Users . FirstOrDefaultAsync ( u => u . Email == email , token ) ;
30
+ User ? existing = await dbContext . Users . FirstOrDefaultAsync ( u => u . Email == email && ! u . IsBanned , token ) ;
31
31
if ( null == existing && ! string . IsNullOrWhiteSpace ( twitchUsername ) ) {
32
- existing = await dbContext . Users . FirstOrDefaultAsync ( u => u . TwitchUsername == twitchUsername , token ) ;
32
+ existing = await dbContext . Users . FirstOrDefaultAsync ( u => u . TwitchUsername == twitchUsername && ! u . IsBanned , token ) ;
33
33
}
34
34
35
35
if ( null == existing ) {
You can’t perform that action at this time.
0 commit comments