Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Save old data; bread crumbs
James Cole09d63b584dfe
diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.phpindex b5ebd9e3ee..1febd0a0ab 100644--- a/app/Http/Controllers/ProfileController.php+++ b/app/Http/Controllers/ProfileController.php@@ -17,6 +17,7 @@ use FireflyIII\Http\Requests\DeleteAccountFormRequest;use FireflyIII\Http\Requests\ProfileFormRequest;use FireflyIII\User;use Hash;+use Preferences;use Session;/**@@ -111,7 +112,8 @@ class ProfileController extends Controllerevent(new UserIsDeleted(Auth::user(), $request->ip()));// store some stuff for the future:-+ $registration = Preferences::get('registration_ip_address')->data;+ $confirmation = Preferences::get('confirmation_ip_address')->data;// DELETE!$email = Auth::user()->email;@@ -121,7 +123,7 @@ class ProfileController extends ControllerSession::flash('gaEventAction', 'delete-account');// create a new user with the same email address so re-registration is blocked.- User::create(+ $newUser = User::create(['email' => $email,'password' => 'deleted',@@ -129,6 +131,13 @@ class ProfileController extends Controller'blocked_code' => 'deleted',]);+ if (strlen($registration) > 0) {+ Preferences::setForUser($newUser, 'registration_ip_address', $registration);++ }+ if (strlen($confirmation) > 0) {+ Preferences::setForUser($newUser, 'confirmation_ip_address', $confirmation);+ }return redirect(route('index'));}diff --git a/app/Http/breadcrumbs.php b/app/Http/breadcrumbs.phpindex c1dcda94cd..e977635219 100644--- a/app/Http/breadcrumbs.php+++ b/app/Http/breadcrumbs.php@@ -113,6 +113,13 @@ Breadcrumbs::register(});+Breadcrumbs::register(+ 'admin.users.domains', function (BreadCrumbGenerator $breadcrumbs) {+ $breadcrumbs->parent('admin.index');+ $breadcrumbs->push(trans('firefly.blocked_domains'), route('admin.users.domains'));+}+);+/*** ATTACHMENTS*/