mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-15 16:22:09 +05:30
Throw root exception
This commit is contained in:
parent
9a265f7956
commit
d5ae471d94
@ -13,7 +13,7 @@ class SecureKey
|
||||
|
||||
// We want to stop execution if the key fails because, well, that is bad.
|
||||
if ($bytes === false || $strong === false) {
|
||||
throw new Exception('Error Generating Key');
|
||||
throw new \Exception('Error Generating Key');
|
||||
}
|
||||
|
||||
return substr(str_replace(array('/', '+', '='), '', base64_encode($bytes)), 0, $len);
|
||||
|
Loading…
x
Reference in New Issue
Block a user