new appraoch
This commit is contained in:
15
pancake/system/vendor/league/oauth2-google/src/Exception/HostedDomainException.php
vendored
Executable file
15
pancake/system/vendor/league/oauth2-google/src/Exception/HostedDomainException.php
vendored
Executable file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace League\OAuth2\Client\Exception;
|
||||
|
||||
/**
|
||||
* Exception thrown if the Google Provider is configured with a hosted domain that the user doesn't belong to
|
||||
*/
|
||||
class HostedDomainException extends \Exception
|
||||
{
|
||||
|
||||
public static function notMatchingDomain($configuredDomain)
|
||||
{
|
||||
return new static("User is not part of domain '$configuredDomain''");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user