<?php
/**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
*/
class Delegation extends BaseModule
{
- protected function post(array $request = [], array $post = [])
+ protected function post(array $request = [])
{
if (!local_user()) {
return;
$ret = [];
Hook::callAll('home_init', $ret);
- DI::baseUrl()->redirect('profile/' . DI::app()->getLoggedInUserNickname());
- // NOTREACHED
+ notice($this->t('You are now logged in as %s', $user['username']));
+
+ DI::baseUrl()->redirect('network');
}
protected function content(array $request = []): string