justinvh / gitpaste

DEPRECATED - GitPaste is a clone of GitHub's Gist.
Other
184 stars 49 forks source link

Validate name and description fields before posting #47

Open apenneb opened 10 years ago

apenneb commented 10 years ago

When a user tries to post a snippet, forgetting to specify either a description or a name, gitpaste shows a nasty error page. gitpaste could be a little more polite towards its users.

We could make these fields completely optional rather than mandatory, or at the very least, validating the fields before allowing the user to submit the snippet.