From 5109d91e354f4039ea103eb35db7708ae7af7242 Mon Sep 17 00:00:00 2001 From: Chteufleur Date: Sat, 16 Apr 2016 22:16:00 +0200 Subject: [PATCH] Add warn that Steam info are stored un-encrypted --- xmpp/commands.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xmpp/commands.go b/xmpp/commands.go index f946b25..cbd80bb 100644 --- a/xmpp/commands.go +++ b/xmpp/commands.go @@ -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