diff options
author | Martin Fischer <martin@push-f.com> | 2022-10-13 10:13:30 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2022-10-13 10:15:18 +0200 |
commit | 640f5d2faa3ce1319d9faed0993597b1deaf8b3c (patch) | |
tree | 05daeb57e94a23b9e747e3a3c58719c1a0327f38 | |
parent | 4a612d49e20543cdb1094134a0ddb7f804135594 (diff) |
fill out username field when prompting to pick another
Otherwise browsers are likely to autocomplete the field
with an unrelated username, which is very confusing.
-rw-r--r-- | RedirectAuth.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/RedirectAuth.php b/RedirectAuth.php index 3b15337..cd73e19 100644 --- a/RedirectAuth.php +++ b/RedirectAuth.php @@ -378,7 +378,8 @@ class OtherUsernameAuthRequest extends AuthenticationRequest { public function getFieldInfo() { return [ 'username' => [ - 'type' => 'string' + 'type' => 'string', + 'value' => $this->userInfo->userName, ] ]; } |