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

small cleanup to error messages in general while focusing on #1601. #1602

Merged
merged 4 commits into from
Nov 1, 2021

Conversation

scottjehl
Copy link
Contributor

Fixes #1601. This is set up to ideally allow populating $error with strings or HTML in cases where the error is going only to the web and not api/json.

…ixes #1601). This is set up to allow populating  with strings or HTML in cases where the error is going only to the web and not api/json.
@scottjehl scottjehl requested review from pmeenan, jefflembeck and tkadlec and removed request for pmeenan October 28, 2021 16:15
www/runtest.php Outdated
$passesMonthly = $cmrl->check();

if(!$passesMonthly) {
$error = '<p><strong>You\'ve hit the max on anonymous tests this month, but don\'t worry! You can keep testing...</strong> You\'ll just need to <a href="/saml/login.php">log in</a>, which gives you access to other nice features like saved test history and no hourly rate limits as well.</p>' . loggedOutLoginForm();
Copy link
Contributor

Choose a reason for hiding this comment

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

I love this messaging

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes! ❤️ the friendly and helpful tone here.

Copy link
Contributor

@tkadlec tkadlec left a comment

Choose a reason for hiding this comment

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

This is looking in great shape! :shipit:

(one day I will find out why that is the ship it icon)

@tkadlec tkadlec merged commit 3cddc32 into master Nov 1, 2021
@scottjehl scottjehl deleted the 1601 branch December 2, 2022 15:13
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.

Clean up max anon tests error messaging.
3 participants