Changeset

3725:19e43b7a969d

mod_register_web: Enforce strict username validation (on trunk, ignored otherwise)
author Kim Alvefur <zash@zash.se>
date Fri, 01 Nov 2019 23:21:50 +0100
parents 3724:1c3c7d73c5a6
children 3726:362c45f67704
files mod_register_web/mod_register_web.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_register_web/mod_register_web.lua	Fri Nov 01 17:15:29 2019 +0100
+++ b/mod_register_web/mod_register_web.lua	Fri Nov 01 23:21:50 2019 +0100
@@ -129,7 +129,7 @@
 	local jid = nil;
 	form.username, form.password, form.confirm_password = nil, nil, nil;
 
-	local prepped_username = nodeprep(username);
+	local prepped_username = nodeprep(username, true);
 	if not prepped_username then
 		return nil, "Username contains forbidden characters";
 	end