summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js
index 84899f0..600463d 100644
--- a/index.js
+++ b/index.js
@@ -345,7 +345,7 @@ function renderEvent({type, userId: eventUserId, args}, {userId: currentUserId,
 }
 
 function getUserId(pass) {
-  return createHash('md5').update(pass).digest('hex').slice(0,7)
+  return createHash('sha256').update(pass).digest('hex').slice(0,7)
 }
 
 async function readBody(req) {