Skip to content

Commit a0e71a0

Browse files
author
Rubén D
committed
Merge branch 'v2.2'
# Conflicts: # README.md
2 parents f69efc6 + b7f1255 commit a0e71a0

16 files changed

+407
-203
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,4 @@ crashlytics-build.properties
4545
fabric.properties
4646

4747
tools
48+
vendor

README.md

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,17 @@ Plugin to use two factor based authentication with applications that generate TO
66

77
Please, select the correct branch in order to download a sysPass compatible version:
88

9-
* sysPass v3.1 --> Master or v2.1 branch
10-
* sysPass v3.0 --> 2.0 branch
11-
* sysPass v2 --> 1.0 branch
9+
|sysPass version|Plugin's version|Branch|
10+
|:-------------:|:--------------:|:----:|
11+
|v3.2 |v2.2 |master || v2.2|
12+
|v3.0 <= v3.1 |v2.1 |v2.1|
13+
|v2.0 < v3.0 |v1.0 |v1.0|
1214

1315
---
1416

15-
### v2.1 Installation
17+
### v2 Installation
1618

17-
This version is only compatible with **sysPass v3.1** and it needs to be installed through **composer**.
18-
19-
Please select the installation method depending on the instance type:
20-
21-
* If you are running a **non-Docker** based instance:
22-
23-
```composer require syspass/plugin-authenticator:^v2.1```
24-
25-
* If you are running a **Docker** based instance, set `syspass/plugin-authenticator:^v2.1` value within an environment variable called `COMPOSER_EXTENSIONS`.
26-
27-
---
28-
29-
### v2.0 Installation
30-
31-
This version is only compatible with **sysPass v3** and it needs to be installed through **composer**.
19+
As told above, this version is only compatible with **sysPass v3** and it needs to be installed through **composer**.
3220

3321
Please select the installation method depending on the instance type:
3422

@@ -40,7 +28,7 @@ Please select the installation method depending on the instance type:
4028

4129
---
4230

43-
### v1.0 Installation
31+
### v1 Installation
4432

4533
Please download the v1 branch files and unpack them into `.../inc/Plugins` directory.
4634

base.php

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
/**
33
* sysPass
44
*
5-
* @author nuxsmin
6-
* @link https://syspass.org
5+
* @author nuxsmin
6+
* @link https://syspass.org
77
* @copyright 2012-2019, Rubén Domínguez nuxsmin@$syspass.org
88
*
99
* This file is part of sysPass.
@@ -22,20 +22,25 @@
2222
* along with sysPass. If not, see <http://www.gnu.org/licenses/>.
2323
*/
2424

25+
use Composer\Autoload\ClassLoader;
26+
use SP\Modules\Web\Controllers\AuthenticatorController;
27+
use SP\Modules\Web\Controllers\AuthenticatorLoginController;
28+
use SP\Modules\Web\Plugins\Authenticator\Plugin;
29+
2530
$lib = __DIR__ . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'lib';
2631

2732
$base = [
2833
'namespace' => 'SP\Modules\\Web\\Plugins\\Authenticator\\',
2934
'dir' => $lib
3035
];
3136

32-
if (!class_exists(\SP\Modules\Web\Plugins\Authenticator\Plugin::class)) {
33-
/** @var \Composer\Autoload\ClassLoader $loader */
37+
if (!class_exists(Plugin::class)) {
38+
/** @var ClassLoader $loader */
3439
$loader = require APP_ROOT . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
3540
$loader->addPsr4($base['namespace'], $base['dir']);
3641
$loader->addClassMap([
37-
\SP\Modules\Web\Controllers\AuthenticatorController::class => $lib . DIRECTORY_SEPARATOR . 'Controllers' . DIRECTORY_SEPARATOR . 'AuthenticatorController.php',
38-
\SP\Modules\Web\Controllers\AuthenticatorLoginController::class => $lib . DIRECTORY_SEPARATOR . 'Controllers' . DIRECTORY_SEPARATOR . 'AuthenticatorLoginController.php'
42+
AuthenticatorController::class => $lib . DIRECTORY_SEPARATOR . 'Controllers' . DIRECTORY_SEPARATOR . 'AuthenticatorController.php',
43+
AuthenticatorLoginController::class => $lib . DIRECTORY_SEPARATOR . 'Controllers' . DIRECTORY_SEPARATOR . 'AuthenticatorLoginController.php'
3944
]);
4045
}
4146

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
"docs": "https://doc.syspass.org"
2020
},
2121
"require": {
22-
"syspass/extension-installer-plugin": "*",
23-
"php": "~7.0 || ~7.1 || ~7.2",
24-
"bacon/bacon-qr-code": "^1.0",
22+
"syspass/extension-installer-plugin": "^2.0",
23+
"php": "~7.3 || ~7.4",
24+
"bacon/bacon-qr-code": "^2.0",
2525
"ext-gettext": "*"
2626
},
2727
"extra": {

composer.lock

Lines changed: 161 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)