summaryrefslogtreecommitdiff
path: root/src/helsinki.at/rhimport/session_store.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2015-12-25 21:13:49 (GMT)
committerChristian Pointner <equinox@helsinki.at>2015-12-25 21:13:55 (GMT)
commit9ad2ba0bbeca95224742aaa6860a2615ffb68a27 (patch)
tree3b0f6d41d1512a981ad3ccd2b215d8bc9ee19fa3 /src/helsinki.at/rhimport/session_store.go
parentde51aad67a1a63f1e6e00cc60d2b4e86bf2bbcbe (diff)
telnet control interface now uses spreadspace/telgo
Diffstat (limited to 'src/helsinki.at/rhimport/session_store.go')
-rw-r--r--src/helsinki.at/rhimport/session_store.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/helsinki.at/rhimport/session_store.go b/src/helsinki.at/rhimport/session_store.go
index 505bd75..2aabc44 100644
--- a/src/helsinki.at/rhimport/session_store.go
+++ b/src/helsinki.at/rhimport/session_store.go
@@ -79,6 +79,7 @@ type SessionStore struct {
}
func (self *SessionStore) new(ctx *ImportContext) (resp newSessionResponse) {
+ // TODO: for untrusted interfaces we need to check Username and PassWord!!!!
b := uuid.NewV4().Bytes()
resp.id = strings.ToLower(strings.TrimRight(base32.StdEncoding.EncodeToString(b), "="))
if _, exists := self.store[ctx.UserName]; !exists {