From 01267497ce6089e027e16711958f6301c3c36d02 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 28 Jul 2024 01:16:09 +0300 Subject: [PATCH] Add remote name for logins --- pkg/connector/login.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/connector/login.go b/pkg/connector/login.go index 3a73288..b35d128 100644 --- a/pkg/connector/login.go +++ b/pkg/connector/login.go @@ -141,7 +141,8 @@ func (dl *DummyLogin) Wait(ctx context.Context) (*bridgev2.LoginStep, error) { func (dl *DummyLogin) SubmitUserInput(ctx context.Context, input map[string]string) (*bridgev2.LoginStep, error) { ul, err := dl.User.NewLogin(ctx, &database.UserLogin{ - ID: networkid.UserLoginID(input["username"]), + ID: networkid.UserLoginID(input["username"]), + RemoteName: input["username"], }, &bridgev2.NewLoginParams{}) if err != nil { return nil, err