Skip to content
Snippets Groups Projects
Commit 62a80cee authored by Mohamed, Fawzi Roberto (fawzi)'s avatar Mohamed, Fawzi Roberto (fawzi)
Browse files

fix sessionSha

parent 08ef9d22
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment