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

add error message template #80

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gssdromen
Copy link

No description provided.

@@ -28,7 +28,10 @@ func AuthSignUpPageHandler(ctx *golf.Context) {
if userNum == 0 {
ctx.Loader("admin").Render("signup.html", make(map[string]interface{}))
} else {
ctx.Abort(404)
ctx.Loader("default").Render("error_msg.html", map[string]interface{}{
"Reason": "No more Users",
Copy link
Collaborator

Choose a reason for hiding this comment

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

It might be better to have a slightly clearer error message, like "New user accounts cannot be created for this blog at this time".

@bentranter
Copy link
Collaborator

Looks good to me! Just a few small grammatical changes and I think this could be merged after being synced with the latest master, we'll see what @dinever thinks though.

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.

2 participants