You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,9 +41,24 @@ Parameters **must be** base64 encoded and passed either as the entire query stri
41
41
42
42
This belongs in `/auth/anonymous` in your moodle folder. Use the plugin istaller if you can. You should also enable the authentication method through `Site Administration > Plugins > (Authentication) > Manage Authentication` and push its priority to the top.
43
43
44
+
## Limiting Login
45
+
46
+
I used this plugin in conjunction with a [course theme](https://github.com/frumbert/theme_arid). When the user browsed outside the course the theme was loaded in, you would be automatically logged off as the site fell back on Boost. There's a routine in the lib.php file for automatic log off that you can call.
47
+
48
+
For instance in boost's `config.php` you can drop this at the bottom to automatically log the user out if Boost is loaded.
49
+
50
+
```php
51
+
// execute this when the theme loads
52
+
// don't allow anonymous logon in this theme
53
+
if (file_exists($CFG->dirroot . '/auth/anonymous/lib.php')) {
0 commit comments