mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-10-14 10:14:55 +02:00
-- Fix Create Account (Compatibility OTHire) (#350)
This commit is contained in:

committed by
Stefan A. Brannfjell

parent
ca989223bc
commit
a3f2cce4aa
@@ -36,8 +36,13 @@ if (empty($_POST) === false) {
|
|||||||
if ($isNoob) {
|
if ($isNoob) {
|
||||||
$errors[] = 'This account name is blocked for registration.';
|
$errors[] = 'This account name is blocked for registration.';
|
||||||
}
|
}
|
||||||
if (preg_match("/^[a-zA-Z0-9]+$/", $_POST['username']) == false) {
|
if ($config['ServerEngine'] !== 'OTHIRE') {
|
||||||
$errors[] = 'Your account name can only contain characters a-z, A-Z and 0-9.';
|
if (preg_match("/^[a-zA-Z0-9]+$/", $_POST['username']) == false) {
|
||||||
|
$errors[] = 'Your account name can only contain characters a-z, A-Z and 0-9.';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (preg_match("/^[0-9]+$/", $_POST['username']) == false) {
|
||||||
|
$errors[] = 'Your account can only contain numbers 0-9.';
|
||||||
}
|
}
|
||||||
// name restriction
|
// name restriction
|
||||||
$resname = explode(" ", $_POST['username']);
|
$resname = explode(" ", $_POST['username']);
|
||||||
|
Reference in New Issue
Block a user