From 640f5d2faa3ce1319d9faed0993597b1deaf8b3c Mon Sep 17 00:00:00 2001
From: Martin Fischer <martin@push-f.com>
Date: Thu, 13 Oct 2022 10:13:30 +0200
Subject: 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.
---
 RedirectAuth.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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,
             ]
         ];
     }
-- 
cgit v1.2.3