Changeset

5591:680fb3344357

mod_invites_register_web: Don't register user when refresh `register_error.html`.
author Trần H. Trung <work@trung.fun>
date Fri, 26 May 2023 02:15:45 +0700
parents 5590:d5a31a13c357
children 5593:04f36a470dca
files mod_invites_register_web/mod_invites_register_web.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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";