mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 04:03:26 +00:00
Properly check hashes, issue #456
This commit is contained in:
@@ -84,6 +84,7 @@ class UserEventHandler
|
||||
*/
|
||||
public function saveEmailAddress(DeletedUser $event): bool
|
||||
{
|
||||
Preferences::mark();
|
||||
$email = hash('sha256', $event->email);
|
||||
Log::debug(sprintf('Hash of email is %s', $email));
|
||||
/** @var Configuration $configuration */
|
||||
@@ -94,7 +95,10 @@ class UserEventHandler
|
||||
}
|
||||
$content[] = $email;
|
||||
$configuration->data = $content;
|
||||
$configuration->save();
|
||||
Log::debug('New content of deleted_users is ', $content);
|
||||
FireflyConfig::set('deleted_users', $content);
|
||||
|
||||
Preferences::mark();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user