diff options
author | zotlabs <mike@macgirvin.com> | 2018-01-29 02:41:45 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-01-29 02:41:45 -0800 |
commit | e4eff6a32bd6b9907c5c1a4454e5861f3712d380 (patch) | |
tree | 461cec3a1f8a0064a12fa7ac47f3d33e1e210e01 /Zotlabs/Module | |
parent | c1e44c0f54e2dc9a340f0d619fa8082ec12947c1 (diff) | |
download | volse-hubzilla-e4eff6a32bd6b9907c5c1a4454e5861f3712d380.tar.gz volse-hubzilla-e4eff6a32bd6b9907c5c1a4454e5861f3712d380.tar.bz2 volse-hubzilla-e4eff6a32bd6b9907c5c1a4454e5861f3712d380.zip |
fix workflow for form based email validation when auto_channel_create is in effect. Eventually we will need to rework the workflow logic because it is getting a bit tangled.
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Email_validation.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Zotlabs/Module/Email_validation.php b/Zotlabs/Module/Email_validation.php index 162501140..b8bb720cd 100644 --- a/Zotlabs/Module/Email_validation.php +++ b/Zotlabs/Module/Email_validation.php @@ -8,9 +8,18 @@ class Email_validation extends \Zotlabs\Web\Controller { function post() { if($_POST['token']) { + // This will redirect internally on success unless the channel is auto_created if(! account_approve(trim(basename($_POST['token'])))) { notice('Token verification failed.'); } + else { + if(get_config('system','auto_channel_create')) { + $next_page = get_config('system', 'workflow_channel_next', 'profiles'); + } + if($next_page) { + goaway(z_root() . '/' . $next_page); + } + } } } |