fix: fix ability to delete a user with a u2f key activated (#2263)

This commit is contained in:
Alexis Saettler
2019-01-06 20:11:49 +01:00
committed by GitHub
parent 596213a484
commit cada421f43
3 changed files with 25 additions and 1 deletions
+1 -1
View File
@@ -171,7 +171,7 @@ class SettingsController
DB::table('accounts')->where('id', $account->id)->delete();
auth()->logout();
$user->forceDelete();
$user->delete();
return redirect()->route('login');
}