add redirect to prevent blank page

This commit is contained in:
team-devstage 2020-08-03 11:26:27 +02:00
parent 1d91df0ab0
commit 507222ab1d

View File

@ -193,6 +193,7 @@ class ProfileController extends AppController
$session->write('StateUser.first_name', $stateUser['first_name']);
$session->write('StateUser.last_name', $stateUser['last_name']);
$session->write('CommunityProfile', $communityProfile);
return $this->redirect(['action' => 'index']);
} else {
$this->Flash->error(__('Something was invalid, please try again!'));
}