Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1019 Bytes

documentation.md

File metadata and controls

31 lines (21 loc) · 1019 Bytes

Config notes

Member 0 is dummy member for maintenance bookings

Booking System Notes

Site layout and formatting

Menu order is adjusted by adjusting 'sort menu order' in the edit menu of the homepage.

User system

Authentication

django-two-factor-auth is used. A post save/edit signal reinitialises a default email otp device whenever an account is created or the email updated.

The name being set to 'default' means it is required for login.

Management of OTP devices is done through django-admin, not wagtail. If that ever needs to happen.

Booking system uses is_verified to ensure users logged in via 2fa to make a booking. Accessing the booking pages checks when someone last logged in, and if it's more than 1 day ago takes them to the login page. The messages framework is used for explaining why.

django auth is used for handling logout and password resets. Using the views under /account/, other than login which is handled by two_factor. Templates are under registration/ and two_factor/.