Skip to content

Conversation

@taniwallach
Copy link
Member

Add handling for a new LTI setting: $block_lti_create_user intended for use in an LTI course where automatic LTI account creation is not desired, ex. after the end of a semester if new accounts may potentially be added to the LMS. The following setting can be added to the course.conf file:

	$block_lti_create_user = 1;

By default, accounts will be created, such as when this variable is not defined.

The return 0; is used to trigger a general authentication error rather than a page full of strange warning that a student would not understand.

Some formatting cleanup was done, but only to the inner blocks, so that the indentation of the outer blocks remain in sync with the existing code.

intended for use in an LTI course where automatic LTI account
creation is not desired, ex. after the end of a semester if new
accounts may potentially be added to the LMS. The setting
	$block_lti_create_user = 1;
can be added to the course.conf file.
@taniwallach
Copy link
Member Author

Since the new code is only triggered is someone adds a new setting to their control files, I think that it is reasonable to make this a last minute addition to the WW 2.15 code.

I have tested it on a production server using LTI, and the code does prevent new account creation when the special setting is added to course.conf and things work as before if that setting is not included.

@mgage mgage merged commit bcb5fbd into openwebwork:WeBWorK-2.15 Oct 1, 2019
@taniwallach taniwallach deleted the LTI_add_block_lti_create_user_setting branch October 4, 2019 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants