diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-02-22 20:43:42 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-02-22 20:43:42 +0900 |
commit | 18385995445fa15ddca75af42b859da958402af8 (patch) | |
tree | 6c1997f8f1170bb437a006672d743d94d25cd713 /xhtml.cr | |
parent | 4fcf1161320b28509ed7c517d38c93f26157b6af (diff) | |
download | hybring-18385995445fa15ddca75af42b859da958402af8.tar.gz |
Add more user error handling
Diffstat (limited to 'xhtml.cr')
-rw-r--r-- | xhtml.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xhtml.cr b/xhtml.cr index 2dc8aea..4fd58eb 100644 --- a/xhtml.cr +++ b/xhtml.cr @@ -58,7 +58,7 @@ def form(xml, errors = {} of String => String, params = {} of String => String) # FIXME: get URL from configuration xml.element "form", action: "http://127.0.0.1:8080", method: "POST" do - input xml, "nick", "Nickname", "digits and ASCII lowercase letters", + input xml, "nick", "Nickname", "digits and lowercase letters", errors.fetch("nick", nil), params.fetch("nick", nil) input xml, "opennic", "OpenNIC URL", "e.g. http://example.null", errors.fetch("opennic", nil), params.fetch("opennic", nil) |