Skip to content

Commit

Permalink
Small fix: Update LRS configuration and fix LRS_CREATE_USER_ENABLE logic
Browse files Browse the repository at this point in the history
* README typo fix

* LRS_CREATE_USER_ENABLE bug fix
  • Loading branch information
mujtabachang authored May 6, 2024
1 parent d902431 commit 2a2c7a4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ LRS_ENABLE={{0 or 1}}
LRS_URL=http://{{your-lrs-host}}:{{lrs-port}}/{{lrs-path}}
LRS_SHARED_SECRET_KEY={{your-lrs-shared-key}}
LRS_CREATE_USER_ENABLE={{0 or 11}}
LRS_CREATE_USER_ENABLE={{0 or 1}}
LRS_PUBLIC_URL=http://{{your-lrs-host}}:{{lrs-port}}/{{public-path}}
```

Expand Down
Binary file removed h5p/libraries.rar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/lti/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ exports.launch = async (req, res) => {

// Env variable to enable disable LRS Temp User creation
req.session.lrs_create_user_enable =
process.env.LRS_CREATE_USER_ENABLE ?? false;
process.env.LRS_CREATE_USER_ENABLE == 1 ? true : false;

// store provider in an object, we'll need it later for sending outcomes back to the consumer
providers[req.session.id] = provider;
Expand Down

0 comments on commit 2a2c7a4

Please sign in to comment.