Phuks-co / throat

Open Source link aggregator and discussion platform powering Phuks
https://phuks.co
MIT License
73 stars 32 forks source link

Admin portal's "Invite Codes" form shouldn't need values in the forms to disable invite codes for the site #200

Closed dappercrow closed 4 years ago

dappercrow commented 4 years ago

As an admin, when I visit admin/invitecodes, I can enable/disable invite codes for registration. However, when I uncheck Enable invite code to register, clicking Save results in an error unless I enter values in the Minimum level and Max amount fields. If I enter values, this appears to successfully set invite code config values, even if disabling invite codes:

recording

It would make more sense to allow this option to be disabled without requiring values in the fields or allowing updates to min level/number of codes when disabling the invite option.