mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Add a default legacy cipher of rijndael-256
This commit is contained in:
parent
f95502ae35
commit
da9bb07041
|
@ -48,7 +48,7 @@ class RecryptFromMcrypt extends Command
|
||||||
// If not, we can try to use the current APP_KEY if looks like it's old
|
// If not, we can try to use the current APP_KEY if looks like it's old
|
||||||
$legacy_key = env('LEGACY_APP_KEY');
|
$legacy_key = env('LEGACY_APP_KEY');
|
||||||
$key_parts = explode(':', $legacy_key);
|
$key_parts = explode(':', $legacy_key);
|
||||||
$legacy_cipher = env('LEGACY_CIPHER');
|
$legacy_cipher = env('LEGACY_CIPHER', 'rijndael-256');
|
||||||
$errors = array();
|
$errors = array();
|
||||||
|
|
||||||
if (!$legacy_key) {
|
if (!$legacy_key) {
|
||||||
|
|
Loading…
Reference in a new issue