aboutsummaryrefslogtreecommitdiffstats
path: root/php/misc.php
blob: 3ab0277487892be8a75414ee77fadd0695674886 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
require_once "user.php";

function validate_credentials(string $username,string $email,string $password,string $password2) : bool
{
	return true;
}

function generate_email_verification_link()
{
	/*TODO*/
	$url="{$domain_name}/register/"+random_bytes(20);
	mail($email,"Registration at ${domain_name}","Click here to register {$url}.");
}



?>