for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Multi-factor authentication for Yii2 projects
*
* @link https://github.com/hiqdev/yii2-mfa
* @package yii2-mfa
* @license BSD-3-Clause
* @copyright Copyright (c) 2016-2018, HiQDev (http://hiqdev.com/)
*/
namespace hiqdev\yii2\mfa\exceptions;
use Yii;
class NotAuthenticatedException extends AuthenticationException
{
public function getName()
return 'You are not authenticated';
}
public function redirect()
Yii::$app->response->redirect('/site/login');
Yii::$app->end();