We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c15fd1b commit 48b3d5eCopy full SHA for 48b3d5e
1 file changed
xapi_stmt_gen/xapi_stmt_gen/generator.js
@@ -3719,8 +3719,13 @@ module.exports = async function main() { // eslint-disable-line max-statements
3719
let userAttrs = [];
3720
let newEppns = [];
3721
for (const user of users) {
3722
- // Use alternatename as username if authenticated using GakuNinLMS's LTI plugin
3723
- const username = (user.auth === 'lti' && config.LRS.ePPNScoped) ? user.alternatename : user.username;
+ // Use alternatename as username
+ // if authenticated using GakuNinLMS's LTI plugin
3724
+ const username = (
3725
+ (user.auth === 'lti' && config.LRS.ePPNScoped)
3726
+ ? user.alternatename
3727
+ : user.username
3728
+ );
3729
const eppn = eppns.find((eppn) => {
3730
if (eppn['username'] === username) {
3731
return eppn;
0 commit comments