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 {
2727 string ? twitchUsername = null , string ? twitchId = null ) {
2828 string bearerToken = AuthUtils . GenerateBearerToken ( ) ;
2929 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 ) ;
3131 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 ) ;
3333 }
3434
3535 if ( null == existing ) {
You can’t perform that action at this time.
0 commit comments