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

Change input validation length for longer licence key #828

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

lance-matomo
Copy link
Contributor

Description:

The new Maxmind Licence keys are longer, the test one I generated was 40 chars. I made the limit 50 just in case there is any slight variation.

Review

@michalkleiner
Copy link

Replaces #811 and fixes #822.

@@ -52,7 +52,7 @@
<label for="<?php echo esc_attr( GeolocationSettings::FORM_NAME ); ?>"><?php esc_html_e( 'MaxMind License Key', 'matomo' ); ?></label>:
</th>
<td>
<input size="20" type="text" maxlength="20"
<input size="40" type="text" maxlength="50"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lance-matomo Here setting the size to 50 looks more clean
With size 50
Screenshot from 2023-08-10 07-40-01

With size 40
Screenshot from 2023-08-10 07-40-21

Copy link

@AltamashShaikh AltamashShaikh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lance-matomo The changes looks good, left just 1 comment not important to implement

@lance-matomo lance-matomo merged commit 86f2d67 into develop Aug 10, 2023
10 checks passed
@lance-matomo lance-matomo deleted the WBS-1630 branch August 10, 2023 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants