Browse Source

Add token auth

master
Gregory Rudolph 3 years ago
parent
commit
d6cc3e691f
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 2
      commands.go

2
commands.go

@ -37,7 +37,7 @@ func authenticate(m chat1.MsgSummary) { @@ -37,7 +37,7 @@ func authenticate(m chat1.MsgSummary) {
k.SendMessageByConvID(m.ConvID, "Please remember to delete your message after we have authenticated!")
}
parts := strings.Split(m.Content.Text.Body, " ")
if len(parts) != 3 || len(parts) != 2 {
if len(parts) != 3 && len(parts) != 2 {
k.SendMessageByConvID(m.ConvID, "Invalid input for command authenticate. Requires username and password. This information is not stored in keybase, or logged. %+v", len(parts))
return
}

Loading…
Cancel
Save