use valid PSR-4 namespace
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Родитель
f032b26f19
Коммит
c07f693a08
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
use OCA\TwoFactor_Totp\AppInfo\Application;
|
||||
use OCA\TwoFactorTOTP\AppInfo\Application;
|
||||
|
||||
include_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
<licence>AGPL</licence>
|
||||
<author>Christoph Wurst</author>
|
||||
<version>0.4.3</version>
|
||||
<namespace>TwoFactor_Totp</namespace>
|
||||
<namespace>TwoFactorTOTP</namespace>
|
||||
<category>other</category>
|
||||
|
||||
<two-factor-providers>
|
||||
<provider>OCA\TwoFactor_Totp\Provider\TotpProvider</provider>
|
||||
<provider>OCA\TwoFactorTOTP\Provider\TotpProvider</provider>
|
||||
</two-factor-providers>
|
||||
|
||||
<dependencies>
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
namespace OCA\TwoFactor_Totp\AppInfo;
|
||||
namespace OCA\TwoFactorTOTP\AppInfo;
|
||||
|
||||
use OCP\AppFramework\App;
|
||||
|
||||
|
@ -29,7 +29,7 @@ class Application extends App {
|
|||
parent::__construct('twofactor_totp', $urlParams);
|
||||
|
||||
$container = $this->getContainer();
|
||||
$container->registerAlias('\OCA\TwoFactor_Totp\Service\ITotp', '\OCA\TwoFactor_Totp\Service\Totp');
|
||||
$container->registerAlias('\OCA\TwoFactorTOTP\Service\ITotp', '\OCA\TwoFactorTOTP\Service\Totp');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -19,10 +19,10 @@
|
|||
*
|
||||
*/
|
||||
|
||||
namespace OCA\TwoFactor_Totp\Controller;
|
||||
namespace OCA\TwoFactorTOTP\Controller;
|
||||
|
||||
use Endroid\QrCode\QrCode;
|
||||
use OCA\TwoFactor_Totp\Service\ITotp;
|
||||
use OCA\TwoFactorTOTP\Service\ITotp;
|
||||
use OCP\AppFramework\Controller;
|
||||
use OCP\AppFramework\Http\JSONResponse;
|
||||
use OCP\Defaults;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
namespace OCA\TwoFactor_Totp\Db;
|
||||
namespace OCA\TwoFactorTOTP\Db;
|
||||
|
||||
use OCP\AppFramework\Db\Entity;
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
namespace OCA\TwoFactor_Totp\Db;
|
||||
namespace OCA\TwoFactorTOTP\Db;
|
||||
|
||||
use OCP\AppFramework\Db\DoesNotExistException;
|
||||
use OCP\AppFramework\Db\Mapper;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
namespace OCA\TwoFactor_Totp\Exception;
|
||||
namespace OCA\TwoFactorTOTP\Exception;
|
||||
|
||||
use Exception;
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
namespace OCA\TwoFactor_Totp\Exception;
|
||||
namespace OCA\TwoFactorTOTP\Exception;
|
||||
|
||||
use Exception;
|
||||
|
||||
|
|
|
@ -19,9 +19,9 @@
|
|||
*
|
||||
*/
|
||||
|
||||
namespace OCA\TwoFactor_Totp\Provider;
|
||||
namespace OCA\TwoFactorTOTP\Provider;
|
||||
|
||||
use OCA\TwoFactor_Totp\Service\ITotp;
|
||||
use OCA\TwoFactorTOTP\Service\ITotp;
|
||||
use OCP\Authentication\TwoFactorAuth\IProvider;
|
||||
use OCP\IL10N;
|
||||
use OCP\IUser;
|
||||
|
|
|
@ -19,9 +19,9 @@
|
|||
*
|
||||
*/
|
||||
|
||||
namespace OCA\TwoFactor_Totp\Service;
|
||||
namespace OCA\TwoFactorTOTP\Service;
|
||||
|
||||
use OCA\TwoFactor_Totp\Exception\TotpSecretAlreadySet;
|
||||
use OCA\TwoFactorTOTP\Exception\TotpSecretAlreadySet;
|
||||
use OCP\IUser;
|
||||
|
||||
interface ITotp {
|
||||
|
|
|
@ -19,12 +19,12 @@
|
|||
*
|
||||
*/
|
||||
|
||||
namespace OCA\TwoFactor_Totp\Service;
|
||||
namespace OCA\TwoFactorTOTP\Service;
|
||||
|
||||
use Base32\Base32;
|
||||
use OCA\TwoFactor_Totp\Db\TotpSecret;
|
||||
use OCA\TwoFactor_Totp\Db\TotpSecretMapper;
|
||||
use OCA\TwoFactor_Totp\Exception\NoTotpSecretFoundException;
|
||||
use OCA\TwoFactorTOTP\Db\TotpSecret;
|
||||
use OCA\TwoFactorTOTP\Db\TotpSecretMapper;
|
||||
use OCA\TwoFactorTOTP\Exception\NoTotpSecretFoundException;
|
||||
use OCP\AppFramework\Db\DoesNotExistException;
|
||||
use OCP\IUser;
|
||||
use OCP\Security\ICrypto;
|
||||
|
|
|
@ -19,10 +19,10 @@
|
|||
*
|
||||
*/
|
||||
|
||||
namespace OCA\TwoFactor_Totp\Unit\Controller;
|
||||
namespace OCA\TwoFactorTOTP\Unit\Controller;
|
||||
|
||||
use Endroid\QrCode\QrCode;
|
||||
use OCA\TwoFactor_Totp\Controller\SettingsController;
|
||||
use OCA\TwoFactorTOTP\Controller\SettingsController;
|
||||
use OCP\Defaults;
|
||||
use Test\TestCase;
|
||||
|
||||
|
@ -41,7 +41,7 @@ class SettingsControllerTest extends TestCase {
|
|||
|
||||
$this->request = $this->getMock('\OCP\IRequest');
|
||||
$this->userSession = $this->getMock('\OCP\IUserSession');
|
||||
$this->totp = $this->getMock('\OCA\TwoFactor_Totp\Service\ITotp');
|
||||
$this->totp = $this->getMock('\OCA\TwoFactorTOTP\Service\ITotp');
|
||||
$this->defaults = new Defaults();
|
||||
|
||||
$this->controller = new SettingsController('twofactor_totp', $this->request, $this->userSession, $this->totp, $this->defaults);
|
||||
|
|
Загрузка…
Ссылка в новой задаче