-
Notifications
You must be signed in to change notification settings - Fork 703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADDED] UserInfoHandler for dynamically setting user/password #1713
Conversation
Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok, but I don't think it's a good name.
@@ -2563,6 +2577,13 @@ func (nc *Conn) connectProto() (string, error) { | |||
pass = o.Password | |||
token = o.Token | |||
nkey = o.Nkey | |||
|
|||
if nc.Opts.UserInfo != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...this tiny change will have huge opportunities for our organization (from #1694)!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Is there a setter for this like some of the other CBs? |
Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
Resolves #1694
Signed-off-by: Piotr Piotrowski piotr@synadia.com