1
0
Fork 0

Add warn that Steam info are stored un-encrypted

This commit is contained in:
Chteufleur 2016-04-16 22:16:00 +02:00
parent 6d1fcc1333
commit 5109d91e35
1 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,7 @@ func execCommandAdHoc(iq *xmpp.Iq) {
// Command Auth Code
cmdXForm := &xmpp.AdHocXForm{Type: xmpp.TypeAdHocForm, Title: "Steam Account Info", Instructions: "Please provide your Steam login and password."}
// TODO Warn that the given info is stored in database in clear
note := &xmpp.AdHocNote{Type: xmpp.TypeAdHocNoteInfo, Value: "Please, be aware that the given Steam account information will be saved into an un-encrypted SQLite database."}
field := &xmpp.AdHocField{Var: "login", Label: "Steam Login", Type: xmpp.TypeAdHocFieldTextSingle}
cmdXForm.Fields = append(cmdXForm.Fields, *field)
@ -61,6 +62,7 @@ func execCommandAdHoc(iq *xmpp.Iq) {
cmdXForm.Fields = append(cmdXForm.Fields, *field)
cmd.XForm = *cmdXForm
cmd.Note = *note
}
reply.PayloadEncode(cmd)
comp.Out <- reply