# HG changeset patch # User Trần H. Trung # Date 1685042145 -25200 # Node ID 680fb3344357989e559b55cae99cbbe6f3ddf87d # Parent d5a31a13c357b4413d0084884e5fe03e91efb456 mod_invites_register_web: Don't register user when refresh `register_error.html`. diff -r d5a31a13c357 -r 680fb3344357 mod_invites_register_web/mod_invites_register_web.lua --- a/mod_invites_register_web/mod_invites_register_web.lua Fri May 26 02:08:29 2023 +0700 +++ b/mod_invites_register_web/mod_invites_register_web.lua Fri May 26 02:15:45 2023 +0700 @@ -171,6 +171,8 @@ module:fire_event("user-registering", registering); if not registering.allowed then + prepped_username = nil; + password = nil; return render_html_template(error_template, { site_name = site_name; msg_class = "alert-danger";