From 400441d56b21e69663ea7213ccf63fe0ee6a6bab Mon Sep 17 00:00:00 2001 From: zotlabs Date: Thu, 19 Oct 2017 18:48:11 -0700 Subject: register workflow was getting over-ridden in include/security --- Zotlabs/Module/Register.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Zotlabs/Module/Register.php') diff --git a/Zotlabs/Module/Register.php b/Zotlabs/Module/Register.php index 9a364e154..9cf0960c0 100644 --- a/Zotlabs/Module/Register.php +++ b/Zotlabs/Module/Register.php @@ -123,13 +123,13 @@ class Register extends \Zotlabs\Web\Controller { if($policy == REGISTER_OPEN ) { if($email_verify) { $res = verify_email_address($result); + if($res) { + info( t('Registration successful. Please check your email for validation instructions.') . EOL ) ; + } } else { $res = send_register_success_email($result['email'],$result['password']); } - if($res) { - info( t('Registration successful. Please check your email for validation instructions.') . EOL ) ; - } } elseif($policy == REGISTER_APPROVE) { $res = send_reg_approval_email($result); @@ -167,7 +167,8 @@ class Register extends \Zotlabs\Web\Controller { $next_page = $x; $_SESSION['workflow'] = true; } - + + unset($_SESSION['login_return_url']); goaway(z_root() . '/' . $next_page); } -- cgit v1.2.3