Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Example of user / password login? #41

Copy link
Copy link

Description

@poblish
Issue body actions

Is there a Golang example of using user and password? Git history suggests there used to be, but it was removed at some point.

We've been using this happily with v.0.6.0, but in v0.7.0 it has no effect and login never occurs (no error). Our previously working code:

func (e *client) ToAdmin(message *quickfix.Message, sessionID quickfix.SessionID) {
	if msgType, err := message.Header.GetString(tag.MsgType); err == nil && msgType == "A" {
		message.Body.SetBool(tag.ResetSeqNumFlag, true)
		message.Body.SetField(tag.Username, quickfix.FIXString(e.username))
		message.Body.SetField(tag.Password, quickfix.FIXString(e.password))
	}
}

Other examples I can find on the 'net (old StackOverflow questions, QF Java docs etc.) suggest this ought to still work, but it would nice to be sure.

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

FeatureMajor improvement requestMajor improvement request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

Morty Proxy This is a proxified and sanitized view of the page, visit original site.