mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 14:12:15 +00:00
Updated models for encryption.
This commit is contained in:
@@ -145,9 +145,7 @@ class Account extends Model
|
||||
return Crypt::decrypt($value);
|
||||
}
|
||||
|
||||
// @codeCoverageIgnoreStart
|
||||
return $value;
|
||||
// @codeCoverageIgnoreEnd
|
||||
}
|
||||
|
||||
|
||||
@@ -228,7 +226,7 @@ class Account extends Model
|
||||
// save in cents:
|
||||
$value = intval($value * 100);
|
||||
$this->attributes['virtual_balance_encrypted'] = Crypt::encrypt($value);
|
||||
$this->attributes['virtual_balance'] = 0;
|
||||
$this->attributes['virtual_balance'] = ($value / 100);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user