Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Mühl committed Jan 4, 2018
1 parent 61f88bb commit 20af45c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
9 changes: 1 addition & 8 deletions src/Resources/contao/classes/TwoFactorAuthentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@

class TwoFactorAuthentication extends \Backend
{
public function __construct()
{
$this->import('BackendUser', 'user');

parent::__construct();
}

public static function generateAuthenticator()
{
$title = $GLOBALS['TL_CONFIG']['websiteTitle'];
Expand All @@ -24,4 +17,4 @@ public static function verifyCode($secret, $code)
$auth = self::generateAuthenticator();
return $auth->verifyCode($secret, $code);
}
}
}
4 changes: 1 addition & 3 deletions src/Resources/contao/classes/TwoFactorWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Contao;

use RobThree\Auth\TwoFactorAuth;

class TwoFactorWidget extends \Widget
{
/**
Expand Down Expand Up @@ -48,4 +46,4 @@ public function generate()
{
return $this->parse();
}
}
}

0 comments on commit 20af45c

Please sign in to comment.