add cancel login action to login dialog, add translations

This commit is contained in:
2018-10-20 23:20:23 +02:00
parent 57de2aabce
commit 644ceaeca3
7 changed files with 52 additions and 5 deletions

View File

@ -18,6 +18,7 @@ namespace D3\Totp\Modules\Application\Controller\Admin;
use D3\Totp\Application\Model\d3totp;
use D3\Totp\Application\Model\Exceptions\d3totp_wrongOtpException;
use Doctrine\DBAL\DBALException;
use OxidEsales\Eshop\Application\Model\User;
use OxidEsales\Eshop\Core\Exception\DatabaseConnectionException;
use OxidEsales\Eshop\Core\Registry;
@ -106,4 +107,10 @@ class d3_totp_LoginController extends d3_totp_LoginController_parent
$sTotp && $totp->verify($sTotp)
);
}
public function d3CancelLogin()
{
$oUser = oxNew(User::class);
$oUser->logout();
}
}