This commit is contained in:
Marijn Jansen
2017-02-03 11:31:18 +01:00
parent ac2ce3d07b
commit 6d5de98c1d
5 changed files with 61 additions and 5 deletions

View File

@@ -1,5 +1,8 @@
<?php
/**
* Sends a confirm email if you know the username.
* @param string $username
*/
function sendConfirmEmailUsername(string $username) {
$stmt = prepareQuery("
SELECT
@@ -15,6 +18,10 @@ function sendConfirmEmailUsername(string $username) {
sendConfirmEmail($userID);
}
/**
* Sends a confirm email if you know the userID.
* @param int $userID
*/
function sendConfirmEmail(int $userID) {
$stmt = prepareQuery("
SELECT