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

Confusing terms “Validity” vs “Expires” with captive portal vouchers #562

Open
2 tasks done
itkfm opened this issue Apr 24, 2024 · 1 comment
Open
2 tasks done

Comments

@itkfm
Copy link

itkfm commented Apr 24, 2024

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

Is your feature request related to a problem? Please describe.

The English terms “Validity” and “Expires in” basically mean the same things.
This makes generating captive portal vouchers a confusing task because you have to figure out which is which first.

Describe the solution you like

Regarding the Captive Portal: Vouchers page (/ui/captiveportal/voucher):

I would like to have the labels in the “Generate vouchers” dialog (which is opened by the “Create vouchers” button) to have distinct names that make it clear which one is the validity of the voucher code itself and which one designates the validity of the session.

Furthermore, I’d prefer if the overview page didn’t mix terminology all the time.
At the moment, a voucher with no “Expires at” can still have its “State” saying “expired”.

Describe alternatives you considered

It would already be helpful if this could be looked up in the docs.
As-is, https://docs.opnsense.org/manual/captiveportal.html doesn’t even mention the patterns “expir…” or “valid…”.

Additional context

image
Which Witch Is Which

@AdSchellevis AdSchellevis transferred this issue from opnsense/core May 15, 2024
@AdSchellevis
Copy link
Member

moved to docs tracker, the function seems to be doing what it should do, but documentation is limited.

Validity marks the total amount of time the token accounts for (e.g. you're allowed to use internet for four hours), where expires sets a hard limit to that right (..but you're not allowed to use the internet after 7 days from now).

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

No branches or pull requests

2 participants