Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support expiration date for access code #2155

Open
damianhxy opened this issue May 1, 2024 · 0 comments
Open

Support expiration date for access code #2155

damianhxy opened this issue May 1, 2024 · 0 comments

Comments

@damianhxy
Copy link
Member

damianhxy commented May 1, 2024

It would be good to support automatically disabling access codes after a certain date. That is, add a new date field to course config along the lines of access_code_until.

Some thoughts

  • Could set it to ~2 weeks after start date, to roughly match with add deadline.
  • When access code is enabled but expired, display a different message on the course page. Something like "access code automatically disabled"

Also, consider preserving the access code when exporting a course, i.e. add access_code to GENERAL_SERIALIZABLE in course.rb. However, it might make more sense to regenerate the access code (if one was set). In which case custom logic would be needed to persist the fact that an access code existed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant