diff --git a/conf/webwork2.mojolicious.dist.yml b/conf/webwork2.mojolicious.dist.yml index 67fa3c1260..e09da0848e 100644 --- a/conf/webwork2.mojolicious.dist.yml +++ b/conf/webwork2.mojolicious.dist.yml @@ -240,6 +240,13 @@ hardcopy: # If 1, don't delete temporary files created when a hardcopy is generated. preserve_temp_files: 0 +# Set this to 1 to allow the html2xml and render_rpc endpoints to disable +# cookies and thus skip two factor authentication. This should never be enabled +# for a typical webwork server. This should only be enabled if you want to +# allow serving content via these endpoints to links in external websites with +# usernames and passwords embedded in them such as for PreTeXt textbooks. +allow_unsecured_rpc: 0 + # External Programs # These applications are often found in /bin, but sometimes in /usr/bin or even in /opt/local/bin. @@ -328,9 +335,4 @@ database: # Reference: https://dev.mysql.com/doc/refman/8.0/en/identifier-length.html maxCourseIdLength: 40 -# Set this to 1 to allow the html2xml and render_rpc endpoints to disable -# cookies and thus skip two factor authentication. This should never be enabled -# for a typical webwork server. This should only be enabled if you want to -# allow serving content via these endpoints to links in external websites with -# usernames and passwords embedded in them such as for PreTeXt textbooks. -allow_unsecured_rpc: 0 + diff --git a/lib/WeBWorK/CourseEnvironment.pm b/lib/WeBWorK/CourseEnvironment.pm index da03ffdc44..822345cece 100644 --- a/lib/WeBWorK/CourseEnvironment.pm +++ b/lib/WeBWorK/CourseEnvironment.pm @@ -421,7 +421,6 @@ sub set_server_settings { return; } -=back =head2 two_factor_authentication_enabled Usage: C<< $ce->two_factor_authentication_enabled >>