Skip to content

Commit faa1544

Browse files
committed
httpLogin.go + httpServer.go: added comment hints as to where we could encrypt/decrypt the pw
1 parent e972805 commit faa1544

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

httpLogin.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,7 @@ func createCookie(w http.ResponseWriter, urlID string, pw string, pwIdCombo *PwI
610610
fmt.Printf("/login cookie created (%v)\n", cookieValue)
611611
}
612612

613+
// here we could encrypt the pw
613614
pwIdCombo.Pw = pw
614615
pwIdCombo.CalleeId = urlID
615616
pwIdCombo.Created = time.Now().Unix()

httpServer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ func httpApiHandler(w http.ResponseWriter, r *http.Request) {
576576
pwIdCombo, calleeID)
577577
cookie = nil
578578
} else {
579+
// here we could decrypt the pw
579580
//fmt.Printf("httpApi cookie available for id=(%s) (%s)(%s) reqPath=%s ref=%s rip=%s\n",
580581
// pwIdCombo.CalleeId, calleeID, urlID, r.URL.Path, referer, remoteAddrWithPort)
581582
pw = pwIdCombo.Pw

0 commit comments

Comments
 (0)