Commit Graph

154 Commits

Author SHA1 Message Date
Rubén D
8a2bbc8283 chore: Use Aura.SqlQuery for building queries.
Refactor AccountRepository and AccountSearchRepository to use Aura.SqlQuery. This will allow to mock queries when testing.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-11-05 09:58:57 +01:00
Rubén D
de06ff5b0f chore: Move account data models and unit test for account repository.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-07-02 18:01:56 +02:00
Rubén D
11a2509bbb chore: Setup definitions for adapters.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-26 13:10:32 +02:00
Rubén D
f56bfc22f4 chore: Bootstrap refactoring.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-26 12:30:22 +02:00
Rubén D
9e92093f0e chore: Skip login controller from session closing.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-20 00:24:36 +02:00
Rubén D
8bfff2170f chore: Avoid handlers and database initialization when not yet installed
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-19 22:33:27 +02:00
Rubén D
b0a0170860 chore: Move definitions to core package.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-19 11:55:00 +02:00
Rubén D
408a44880d chore: Remove mcrypt dependency.
Any sysPass exported file prior to v2.1.0 won't be able to be imported.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-18 19:39:18 +02:00
Rubén D
66dcab2cd0 refactor: Fix initialization errors.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-16 07:54:44 +02:00
Rubén D
ef73720d2b refactor: Fix initialization errors.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-13 08:02:42 +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
41fcc98da7 chore: Minor code tweaks.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-28 09:05:53 +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
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
6a6c5d966d * [FIX] Minor fixes.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-02-27 13:52:40 +01: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
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
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
magcho
a802a74cbf [init] translation for Japanese 2020-09-06 12:33:00 +09:00
Rubén D
bec1d21d8c * [MOD] Improved CSRF handling by using HTTP header to set the token
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-01-08 13:18:03 +01:00
Rubén D
6197c52af1 * [MOD] Update copyright date
* [MOD] Code cleanup

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-04-27 02:48:18 +02:00
Rubén D
63e7e88a23 * [MOD] Improved logging messages
* [MOD] Unlocked PHP 7.3
* [FIX] No debug messages when debug mode is activated

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-04-24 00:50:04 +02:00
Rubén D
752d05c1c6 * [MOD] Improved logging messages
* [MOD] Unlocked PHP 7.3
* [FIX] No debug messages when debug mode is activated

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-04-23 20:50:15 +02:00
Rubén D
2318796c00 * [FIX] Fixed wrong behavior when searching for accounts on accounts manager. Thanks to @Weptun for the feedback. Closes #1271
* [ADD] Added missing tests
* [MOD] Code cleanup

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-04-21 23:12:45 +02:00
Rubén D
b3906afa13 * [FIX] Fixed Polski language option. Thanks to @pitrov24 for the notice. Closes 1288
* [MOD] Minor CSS tweaks

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-04-21 18:45:01 +02:00
Rubén D
263cdae0e6 * [MOD] Update translations
* [FIX] Added missing Italian language option. Thanks to @Matwolf08 for the notice. Closes #1302

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-04-21 16:18:00 +02:00
Rubén D
5e8861e42f * [ADD] Allow to enable email notifications only for account access requests. Thanks to @jorgemfm for the feedback. Closes #1157
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-02-23 20:00:38 +01:00
Rubén D
3ea87a4ecc * [MOD] Improved plugins data handling by encrypting the plugin's data
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-01-30 00:04:05 +01:00
Rubén D
a65d261ba8 * [FIX] Fixed wrong behavior when session is timed out
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-01-26 11:25:25 +01:00
nuxsmin
3cecdd8809 * [FIX] Wrong behaviour on Travis CI
Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-12-16 19:33:00 +01:00
nuxsmin
9154f8d3c9 * [MOD] Updated translations. Thanks to all contributors!
* [MOD] Bump build and version number
* [ADD] Added Faroese translation.

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-12-16 13:23:20 +01:00
nuxsmin
90ba034522 * [FIX] Wrong behaviour when displaying task progress on master password change. Thanks to @deajan for the feedback. Closes #1128
* [FIX] Improved browser notifications format. Thanks to @vmario89 for the feedback. Closes #1142
* [FIX] Temporary master password change notifications are sent to all users. Thanks to @jorgemfm for the feedback. Closes #1156
* [MOD] Improved background tasks management
* [MOD] Improved email notifications format

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-12-10 07:01:25 +01:00
nuxsmin
13e12baaf0 * [FIX] Fixed wrong behavior when setting mail parameters
* [MOD] Improved email message templates

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-11-19 18:44:18 +01:00
nuxsmin
57260871d6 * [FIX] Notifications assigned to a user can be deleted
* [MOD] Improved in-app notifications displaying. Database update is needed
* [ADD] Added ACL event handler in order to recreate users' ACL when items like user, profile or group are updated/deleted

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-11-18 19:51:42 +01:00
nuxsmin
5a549532f6 * [MOD] Use config cache file instead of storing it in PHP's session
* [MOD] Unit testing tweaks in order to renew config cache

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-11-12 00:12:01 +01:00
nuxsmin
0da5c282d6 * [MOD] Improved logging when performing upgrades
* [MOD] Log to file is turned on when debug mode is active

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-11-11 12:58:31 +01:00
nuxsmin
a1639fdf47 * [ADD] Added more unit tests
* [MOD] Improved file cache handling

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-11-11 12:09:58 +01:00
nuxsmin
ed956eec54 * [ADD] Added mime type file checking instead of extension. Thanks to @vmario89 for the feedback. Related #825
* [MOD] Improved exception handling in controllers

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-11-10 21:41:07 +01:00
nuxsmin
305d4de16f * [MOD] Switched base language over to English
Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-11-05 00:03:37 +01:00
nuxsmin
59de1c4d00 * [MOD] Improved database checking
* [ADD] Added plugin removal when it isn't available
* [FIX] Minor bugfixes

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-11-01 19:13:41 +01:00
nuxsmin
ec97b603b0 * [MOD] Improved theme handling
* [MOD] Code refactoring

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-11-01 10:24:25 +01:00
nuxsmin
e322563a66 * [ADD] Added In-App notifications polling. It will show up a browser notification when there are pending notifications
* [MOD] Improved Javascript error handling
* [MOD] Code refactoring

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-10-16 01:13:38 +02:00
nuxsmin
7f2dd35059 * [MOD] Improved plugins management
* [MOD] Code refactoring

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-10-15 02:56:00 +02:00
nuxsmin
5b86397f5b * [FIX] Fixed issue when compiling ACL. Closes #1063. Thanks to @dcotruta and @odavis1 for the feedback and testing.
* [FIX] Fixed issue when setting master password from old user's password on login
* [FIX] Minor bugfixes
* [ADD] Added accounts bulk edit on Accounts Manager
* [MOD] Code refactoring

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-10-12 01:17:06 +02:00