From 7b62937942d4506c2d2a23c4a7211adbeccd83d1 Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 25 Aug 2008 14:45:49 +0000 Subject: Closes #254: If mb_string is installed then internationalised usernames are supported in file system. Because of this I have raised mbstring from recommended to a (non-fatal) core requirement. Because of the lack of a unicode ctype_alnum function the validation occurs at username input. Because of this I have improved the user registration code: This code now validates for special chars etc in the username. I have also introduced the following new plugin hooks (which are run after primary validation) which provide plugins with the ability to add other requirements (extra security etc). 'registeruser:validate:password' 'registeruser:validate:username' 'registeruser:validate:email' Marcus Povey 25/8/08 git-svn-id: https://code.elgg.org/elgg/trunk@2040 36083f99-b078-4883-b0ff-0f9b5a30f544 --- languages/en.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'languages') diff --git a/languages/en.php b/languages/en.php index 6e72793c0..cdfb22c29 100644 --- a/languages/en.php +++ b/languages/en.php @@ -386,7 +386,11 @@ To remove a widget drag it back to the Widget gallery.", 'registration:userexists' => 'That username already exists', 'registration:usernametooshort' => 'Your username must be a minimum of 4 characters long.', 'registration:passwordtooshort' => 'The password must be a minimum of 6 characters long.', - 'registration:dupeemail' => 'This email address has already been registered.', + 'registration:dupeemail' => 'This email address has already been registered.', + 'registration:invalidchars' => 'Sorry, your email address contains invalid characters.', + 'registration:emailnotvalid' => 'Sorry, the email address you entered is invalid on this system', + 'registration:passwordnotvalid' => 'Sorry, the password you entered is invalid on this system', + 'registration:usernamenotvalid' => 'Sorry, the username you entered is invalid on this system', 'adduser' => "Add User", 'adduser:ok' => "You have successfully added a new user.", -- cgit v1.2.3