Skip to content

Request: Add start_time and end_time in page.meta #72

@joapuiib

Description

@joapuiib

Hello,
I'm developing a mkdocs site for my teaching materials and I want to post an exam in the site, using this plugin to password protect it.

It works great so far, and I have been able to customize it nicely but, I would love to be able to set a start_time and end_time in page.meta so the decryption only works in that time range for a specific page.

I am trying things in my fork, but I would like to know what would be your approach to this.

For now, I've thought of storing those values somewhere in the page HTML and then, check if the current time is between both values in javascript. I know this is not a secure way to prevent decryption outside this time range, since it could be easily hacked on the console, but I can't think of anything else.

If Issues is not a good place to place this request, maybe Dicussions could be enabled on the repository.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions