aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/tfa.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2025-09-05 14:47:46 +0200
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2025-09-05 14:47:46 +0200
commit4db193c7f7188fe7f5ec64cf758cf2f26f38f96d (patch)
tree942ad947842147586512622fc090f7e561d24122 /app/controllers/tfa.php
parent31c795a98b14037fcfb1b6f176ebd5f813b292fc (diff)
use Request::has()tic-4587
Diffstat (limited to 'app/controllers/tfa.php')
-rw-r--r--app/controllers/tfa.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/tfa.php b/app/controllers/tfa.php
index 370d883..86ece64 100644
--- a/app/controllers/tfa.php
+++ b/app/controllers/tfa.php
@@ -13,7 +13,7 @@ class TfaController extends AuthenticatedController
$this->own_profile = true;
- if ($this->is_root && Request::submitted('username')) {
+ if ($this->is_root && Request::has('username')) {
$username = Request::username('username');
$this->user = User::findOneByUsername($username);