改名
This commit is contained in:
@@ -46,9 +46,7 @@ class Jwt extends Component
|
||||
$jwt = Config::get('jwt', []);
|
||||
if ($jwt) {
|
||||
$this->setScene($jwt['scene'] ?? 'application');
|
||||
$this->setEncrypt($jwt['encrypt'] ?? JWTConstant::AES_128_ECB);
|
||||
$this->setKey($jwt['key'] ?? get_called_class());
|
||||
|
||||
$length = openssl_cipher_iv_length($this->encrypt);
|
||||
if ($length > 0) {
|
||||
$defaultIv = openssl_random_pseudo_bytes($length);
|
||||
|
||||
Reference in New Issue
Block a user