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.
This commit is contained in:
parent
c1e44c0f54
commit
e4eff6a32b
@ -8,9 +8,18 @@ class Email_validation extends \Zotlabs\Web\Controller {
|
|||||||
function post() {
|
function post() {
|
||||||
|
|
||||||
if($_POST['token']) {
|
if($_POST['token']) {
|
||||||
|
// This will redirect internally on success unless the channel is auto_created
|
||||||
if(! account_approve(trim(basename($_POST['token'])))) {
|
if(! account_approve(trim(basename($_POST['token'])))) {
|
||||||
notice('Token verification failed.');
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user