MCPcopy Index your code
hub / github.com/tinode/chat / InfoValidateCredentialsExplicitTs

Function InfoValidateCredentialsExplicitTs

server/datamodel.go:1054–1065  ·  view source on GitHub ↗

InfoValidateCredentialsExplicitTs requires user to confirm credentials before going forward with explicit server and incoming request timestamps (300).

(id string, serverTs, incomingReqTs time.Time)

Source from the content-addressed store, hash-verified

1052// InfoValidateCredentialsExplicitTs requires user to confirm credentials before going forward
1053// with explicit server and incoming request timestamps (300).
1054func InfoValidateCredentialsExplicitTs(id string, serverTs, incomingReqTs time.Time) *ServerComMessage {
1055 return &ServerComMessage{
1056 Ctrl: &MsgServerCtrl{
1057 Id: id,
1058 Code: http.StatusMultipleChoices, // 300
1059 Text: "validate credentials",
1060 Timestamp: serverTs,
1061 },
1062 Id: id,
1063 Timestamp: incomingReqTs,
1064 }
1065}
1066
1067// InfoChallenge requires user to respond to presented challenge before login can be completed (300).
1068func InfoChallenge(id string, ts time.Time, challenge []byte) *ServerComMessage {

Callers 2

InfoValidateCredentialsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…