aboutsummaryrefslogtreecommitdiffstats
path: root/include/auth.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-01-29 16:58:55 -0800
committerzotlabs <mike@macgirvin.com>2018-01-29 16:58:55 -0800
commit8d479aa1c74169e5b39d6409582c87e59a82d692 (patch)
tree01f446acd8b60817f2cc00a10c3deeab408b0778 /include/auth.php
parente4eff6a32bd6b9907c5c1a4454e5861f3712d380 (diff)
downloadvolse-hubzilla-8d479aa1c74169e5b39d6409582c87e59a82d692.tar.gz
volse-hubzilla-8d479aa1c74169e5b39d6409582c87e59a82d692.tar.bz2
volse-hubzilla-8d479aa1c74169e5b39d6409582c87e59a82d692.zip
redirect to the email_validation page if login was attempted after account creation but prior to successful verification. This presents the link to resend the verification email and/or allows you to enter it.
Diffstat (limited to 'include/auth.php')
-rw-r--r--include/auth.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/auth.php b/include/auth.php
index 78be32bf4..6f5e58361 100644
--- a/include/auth.php
+++ b/include/auth.php
@@ -261,6 +261,7 @@ else {
$verify = account_verify_password($_POST['username'], $_POST['password']);
if($verify && array_key_exists('reason',$verify) && $verify['reason'] === 'unvalidated') {
notice( t('Email validation is incomplete. Please check your email.'));
+ goaway(z_root() . '/email_validation/' . bin2hex(trim(escape_tags($_POST['username']))));
}
elseif($verify) {
$atoken = $verify['xchan'];