We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdc3e98 commit 2a7f09cCopy full SHA for 2a7f09c
2 files changed
xapi_stmt_gen/Dockerfile
@@ -1,6 +1,6 @@
1
FROM node:12.22.0
2
3
-LABEL version="2.9.0"
+LABEL version="2.9.1"
4
5
WORKDIR /usr/local/src
6
RUN mkdir xapi_stmt_gen
xapi_stmt_gen/xapi_stmt_gen/generator.js
@@ -3734,7 +3734,7 @@ module.exports = async function main() { // eslint-disable-line max-statements
3734
if (eppn) {
3735
userAttrs[user.id] = eppn;
3736
} else {
3737
- const hash = crypto.createHash('sha256').update(username).digest('hex');
+ const hash = username ? crypto.createHash('sha256').update(username).digest('hex') : '';
3738
const scope = getScopeFromEppn(username);
3739
userAttrs[user.id] = {
3740
username: username, // may not be ePPN format
0 commit comments