Fix issue with email change.

This commit is contained in:
James Cole
2026-02-06 18:12:52 +01:00
parent 88d3e01065
commit df8a406c58
3 changed files with 13 additions and 1 deletions

View File

@@ -152,7 +152,7 @@ class ProfileController extends Controller
}
$repository->unblockUser($user);
// also remove the "remote_guard_alt_email" preference.
Preferences::delete('remote_guard_alt_email');
Preferences::deleteForUser($user, 'remote_guard_alt_email');
// return to log in.
session()->flash('success', (string) trans('firefly.login_with_new_email'));