aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Register.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-10-20 10:08:57 +0200
committerMario Vavti <mario@mariovavti.com>2017-10-20 10:08:57 +0200
commitc80f4feb6234ff195171a92704d7ebe24aff4336 (patch)
treed9149141f52e3758afe1dfa8387bbd8229de1cc9 /Zotlabs/Module/Register.php
parent2d06e86b5b99af3a5e6c65f4c510bdeaddd5126a (diff)
parent400441d56b21e69663ea7213ccf63fe0ee6a6bab (diff)
downloadvolse-hubzilla-c80f4feb6234ff195171a92704d7ebe24aff4336.tar.gz
volse-hubzilla-c80f4feb6234ff195171a92704d7ebe24aff4336.tar.bz2
volse-hubzilla-c80f4feb6234ff195171a92704d7ebe24aff4336.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'Zotlabs/Module/Register.php')
-rw-r--r--Zotlabs/Module/Register.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/Zotlabs/Module/Register.php b/Zotlabs/Module/Register.php
index b026dc4c6..95e3ca96f 100644
--- a/Zotlabs/Module/Register.php
+++ b/Zotlabs/Module/Register.php
@@ -123,6 +123,9 @@ 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']);
@@ -171,7 +174,8 @@ class Register extends \Zotlabs\Web\Controller {
$next_page = $x;
$_SESSION['workflow'] = true;
}
-
+
+ unset($_SESSION['login_return_url']);
goaway(z_root() . '/' . $next_page);
}