Commit Graph

367 Commits

Author SHA1 Message Date
Rubén D
5aa66b7045 refactor: [WIP] Migrate config ldap controller.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-11 12:15:59 +02:00
Rubén D
488cb59e82 refactor: [WIP] Migrate config import controller.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-11 11:58:31 +02:00
Rubén D
6052b9820a refactor: [WIP] Migrate config general controller.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-11 11:55:49 +02:00
Rubén D
9e3e3496bf refactor: [WIP] Migrate config encryption controller.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-11 11:18:16 +02:00
Rubén D
a6310e9702 refactor: remove DokuWiki controller.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-11 11:04:02 +02:00
Rubén D
167926f704 refactor: [WIP] Migrate config backup controller.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-11 11:03:10 +02:00
Rubén D
aea8aaac1f refactor: [WIP] Migrate config account controller.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-11 10:50:26 +02:00
Rubén D
40518121b8 refactor: [WIP] Migrate client controller.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-11 10:37:23 +02:00
Rubén D
81996b02d7 refactor: [WIP] Create base class for resource file.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-11 10:16:36 +02:00
Rubén D
3de717d40f refactor: [WIP] Migrate items controller.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-11 10:13:48 +02:00
Rubén D
4c292fd120 refactor: [WIP] Create base class for account file.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-11 09:52:19 +02:00
Rubén D
904b44e29e refactor: [WIP] Create base class for account favorite.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-11 09:47:55 +02:00
Rubén D
b9b3754fbe refactor: [WIP] Create base classes for account view and save.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-11 09:43:09 +02:00
Rubén D
52c6fa2e3f refactor: [WIP] Migrate category controller.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-11 09:16:27 +02:00
Rubén D
54bedda0b2 refactor: [WIP] Improve form building.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-11 08:53:50 +02:00
Rubén D
1bc977dfc8 refactor: [WIP] Migrate auth token controller.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-11 08:44:23 +02:00
Rubén D
6aa2e29caf refactor: [WIP] Migrate account history manager controller.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-11 07:34:58 +02:00
Rubén D
24d2677ce1 refactor: [WIP] Migrate account file controller.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-06 18:58:54 +02:00
Rubén D
92e92ea605 refactor: [WIP] Migrate config manager controller.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-06 18:33:20 +02:00
Rubén D
4a7c4c317b refactor: [WIP] Migrate access and item manager controllers.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-06 18:11:05 +02:00
Rubén D
bc8e128138 refactor: [WIP] Remove circular dependency.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-06 08:24:13 +02:00
Rubén D
1c8fb0ea1a refactor: [WIP] Use hexagonal architecture and implement interfaces for services and repositories.
Controllers are being splited into commands to better dependency management.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-06 08:17:34 +02:00
Rubén D
bf456ffd4b chore: Minor code tweaks.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-28 08:53:13 +02:00
Rubén D
de0bc2a15b fix: wrong property declaration.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-24 08:05:41 +02:00
Rubén D
3b5c62f697 fix: Prevent XSS on all output variables.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-24 07:46:35 +02:00
Rubén D
57470583e7 fix: Prevent XSS on all output variables.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-23 21:51:54 +02:00
Rubén D
2796ef578b chore: Refactor Installer's constructor signature.
This will provide connection data when running instead of building time (object wiring).

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-20 07:11:24 +02:00
Rubén D
f0e5be2c52 chore: Build mock test for FileBackupService class.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-19 08:25:34 +02:00
Rubén D
f22145b389 chore: Use Application helper class and externalize UpgradeConfigChecker.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-16 22:04:08 +02:00
Rubén D
98ffc311cf chore: Refactoring of Bootstrap class into an abstract class.
This allows to implement bootstrap classes for each module and simplifies the bootstrap code.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-16 19:01:28 +02:00
Rubén D
fe349cb6f9 chore: Inject dependencies into modules.
Avoid to inject de IoC container and inject required dependencies. A few helper modules have been created to provide common dependencies.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-16 18:02:35 +02:00
Rubén D
d6963e041e chore: (WIP) Do not rely on dependencies' container for controllers.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-16 11:31:02 +02:00
Rubén D
c76e262daa * [MOD] Exceptions in docblock.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-02-27 19:20:14 +01:00
Rubén D
6f2f1ec5e2 * [FIX] Prevent login process when user/password are not provided.
* [FIX] Use null when clientId or categoryId are not set when searching account.
* [FIX] Minor fixes.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-10-17 22:56:21 +02:00
Rubén D
ebe58282f6 * [ADD] Test API module without using a real sysPass instance.
* [MOD] Improve module loading.
* [MOD] Improve backup file regex.
* [MOD] Minor code tweaks.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-10-17 16:26:39 +02:00
Rubén D
58249da565 * [MOD] Use static types.
* [MOD] CORS headers.
* [MOD] Improve Forwarded header lookup.
* [ADD] Create interface for configuration data.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-10-12 20:49:18 +02:00
Rubén D
19f9ae1ab3 * [ADD] Warning messages before changing the master password.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-10-03 11:26:18 +02:00
Rubén D
dd96643e6a * [ADD] Check whether the master password is correct and not the same as the new one.
* [MOD] Unset environment variables before every test.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-10-02 08:34:55 +02:00
Rubén D
e64897855a * [ADD] Master password update CLI command and tests.
* [MOD] Code refactoring.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-09-27 00:20:24 +02:00
Rubén D
f8e9e19731 * [ADD] Backup CLI command and tests.
* [MOD] Code refactoring.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-09-26 18:42:34 +02:00
Rubén D
0b02c8fdbf Merge branch 'v3.2' into feature/cli_module
# Conflicts:
#	composer.json
#	composer.lock
#	lib/SP/Providers/Auth/Ldap/LdapMsAds.php
#	lib/SP/Services/Install/Installer.php
#	lib/SP/Util/Checks.php
#	lib/SP/Util/Link.php
#	public/js/app-actions.min.js
#	public/js/app-util.min.js
#	tests/res/scripts/reset_db.sh
2021-09-19 21:40:27 +02:00
Rubén D
600c398bb8 * [ADD] Install CLI command tests.
* [MOD] Install CLI command refactoring.
* [MOD] Minor code tweaks.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-09-19 21:32:34 +02:00
Rubén D
33c381a1e1 * [MOD] Use logger on CLI commands
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-03-13 10:01:53 +01:00
Rubén D
ff4e8df2e6 * [ADD] CHeck whether sysPass is installed
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-01-19 08:39:22 +01:00
Rubén D
b1f76654cd * [ADD] CLI module with install command
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-01-19 08:23:53 +01:00
Rubén D
8e96ec4285 * [MOD] Code refactoring by enforcing type checks (WIP)
* [MOD] Update dependencies

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-01-17 14:56:56 +01:00
Rubén D
a55548f4c4 * [MOD] Update dependencies
* [FIX] Fix displaying install page when the app is already installed. Thanks to @kmmndr for the notice. Closes #1629
* [FIX] Fix issue when dropping DB user after an errored installation.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-12-20 15:25:20 +01:00
Rubén D
41703b50f9 * [MOD] Strict type checking (WIP)
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-12-20 14:24:42 +01:00
Rubén D
e4e6e04c57 * [MOD] Updated copyright
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-12-07 19:42:41 +01:00
Rubén D
896d9fd3ad * [MOD] Deprecate PHP versions below 7.2 since they are no longer supported by PHP and Travis CI tests are not performed for them. https://www.php.net/supported-versions.php
* [MOD] Improve internal config handling. No more properties visibility tweaks.
* [MOD] Updated dependencies.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-12-07 19:37:00 +01:00