Merge branch 'joey-testing' into 'master'
Joey testing See merge request !119
This commit was merged in pull request #123.
This commit is contained in:
@@ -10,9 +10,6 @@ function bannedAlert(){
|
|||||||
alert("Your account is banned");
|
alert("Your account is banned");
|
||||||
}
|
}
|
||||||
|
|
||||||
function emailNotConfirmed(userID){
|
function emailNotConfirmed(){
|
||||||
if (confirm("Your email is not confirmed.\nPress ok to send another confirmation.") == true) {
|
alert("Your account has not been verified yet!\nAnother email has been sent to you")
|
||||||
sendConfirmEmail(userID);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -35,8 +35,9 @@ function validateLogin($username, $password){
|
|||||||
window.onload=bannedAlert();
|
window.onload=bannedAlert();
|
||||||
</script>";
|
</script>";
|
||||||
} else if ($role == "unconfirmed"){
|
} else if ($role == "unconfirmed"){
|
||||||
|
sendConfirmEmail(getUser()["userID"]);
|
||||||
echo "<script>
|
echo "<script>
|
||||||
window.onload=emailNotConfirmed('userID');
|
window.onload=emailNotConfirmed();
|
||||||
</script>";
|
</script>";
|
||||||
} else {
|
} else {
|
||||||
$_SESSION["userID"] = $userID;
|
$_SESSION["userID"] = $userID;
|
||||||
@@ -56,4 +57,5 @@ class loginException extends Exception
|
|||||||
parent::__construct($message, $code, $previous);
|
parent::__construct($message, $code, $previous);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user