-
-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the permission level
use_two_factor_auth
.
Roles with this permission level are required to use two factor authentication to sign in. Users below this permission level can sign in directly. The default user role with this permission is "student". But if there is strong opposition to this default, then I suppose it could be switched to "login_proctor". Note that even if this is set to "guest", guest users will still be able to sign in without two factor authentication since it never really makes sense to have guests (i.e. practice users) use two factor authentication.
- Loading branch information
Showing
3 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -220,7 +220,7 @@ $mail{feedbackRecipients} = [ | |
# $permissionLevels{login} = "guest"; | ||
|
||
# The above code would give the permission to login to any user with permission | ||
# level guest or higher. | ||
# level guest or higher (which is the default). | ||
|
||
# By default answers for all users are logged to the past_answers table in the database | ||
# and the myCourse/logs/answer_log file. If you only want answers logged for users below | ||
|
@@ -625,6 +625,14 @@ $mail{feedbackRecipients} = [ | |
# better to find a valid email address to use for this. | ||
#$twoFA{email_sender} = '[email protected]'; | ||
|
||
# By default all users with the role of "student" or higher are required to use | ||
# two factor authentication when signing in with a username and password. If | ||
# you want to disable two factor authentication for students, but require it for | ||
# instructors then set the permission level below to "login_proctor" (or | ||
# higher). | ||
|
||
#$permissionLevels{use_two_factor_auth} = "login_proctor"; | ||
|
||
################################################################################ | ||
# Searching for set.def files to import | ||
################################################################################ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters