1
0
forked from Thunix/www

Check if username already taken

This commit is contained in:
Naglfar
2020-05-07 12:03:45 +02:00
parent 495d05679d
commit bc6c6d735b
2 changed files with 9 additions and 0 deletions

View File

@@ -28,6 +28,12 @@ if ( $tv == "tildeverse" )
{
// Success!
$success = 'success2';
// Check if username already taken
$lowercase = strtolower($username);
exec("id $lowercase 2>&1", $null, $retval);
if($retval == 0)
$success = 'success3';
if ( $success == "success2" )
mail($destination_addr, $subject, $mailbody, $from);