Commit 62a80cee authored by Mohamed, Fawzi Roberto (fawzi)'s avatar Mohamed, Fawzi Roberto (fawzi)
Browse files

fix sessionSha

parent 08ef9d22
......@@ -164,11 +164,12 @@ function namespaceTemplate(name, next) {
/// returns a short session ID from a long session id
function shortSession(sessionID) {
const hash = crypto.createHash('sha512');
hash.update(req.sessionID)
hash.update(sessionID)
// lowercase base32 would be better...
return hash.digest('hex').slice(0,20).toLowerCase()
}
/// returns the name of the pod for the given replacements
function podNameForRepl(repl) {
const imageType = cconfig.image.imageType
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment