Skip to content

Commit 2a7f09c

Browse files
committed
Set actor.name to empty string if alternatename is null
1 parent bdc3e98 commit 2a7f09c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

xapi_stmt_gen/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM node:12.22.0
22

3-
LABEL version="2.9.0"
3+
LABEL version="2.9.1"
44

55
WORKDIR /usr/local/src
66
RUN mkdir xapi_stmt_gen

xapi_stmt_gen/xapi_stmt_gen/generator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3734,7 +3734,7 @@ module.exports = async function main() { // eslint-disable-line max-statements
37343734
if (eppn) {
37353735
userAttrs[user.id] = eppn;
37363736
} else {
3737-
const hash = crypto.createHash('sha256').update(username).digest('hex');
3737+
const hash = username ? crypto.createHash('sha256').update(username).digest('hex') : '';
37383738
const scope = getScopeFromEppn(username);
37393739
userAttrs[user.id] = {
37403740
username: username, // may not be ePPN format

0 commit comments

Comments
 (0)