Browse Source

Update EmailService, make case insensitive

Daniel Supernault 4 years ago
parent
commit
1b41d66446
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Services/EmailService.php

+ 1 - 1
app/Services/EmailService.php

@@ -12,7 +12,7 @@ class EmailService {
 
 		$parts = explode('@', $email);
 
-		return in_array(last($parts), self::bannedDomains());
+		return in_array(strtolower(last($parts)), array_map('strtolower', self::bannedDomains()));
 	}
 
 	public static function bannedDomains()