Commit Graph

71 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
f48a5df9bb chore: Inject adapters.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-26 13:06:03 +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
55d54a6518 chore: Migrate API config controllers.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-26 12:07:48 +02:00
Rubén D
905a869ff8 chore: Migrate API user group controllers.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-26 11:53:51 +02:00
Rubén D
29f1c1c46f chore: Migrate API tag controllers.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-26 11:44:40 +02:00
Rubén D
bf78af2d90 chore: Migrate API client controllers.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-26 11:31:39 +02:00
Rubén D
972646b215 chore: Migrate API category controllers.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-26 11:25:16 +02:00
Rubén D
5ae7fb5a34 chore: Set action name and code style.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-26 11:16:24 +02:00
Rubén D
8af6bcbaf6 chore: Migrate API account controllers.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-25 12:11:13 +02:00
Rubén D
fd0de58a23 chore: Move adapters to Domain.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-25 11:13:41 +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
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
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
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
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
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
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
978eca80d2 * [MOD] Include custom fields in API response using adapters
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-03-07 12:01:44 +01:00
Rubén D
3bcf2e0b4d * [ADD] Include custom field in API response. Thanks to @sf32738 for the feedback. Closes #1388.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-01-11 20:50:09 +01:00
Rubén D
b5559b52eb * [FIX] Skip over initialization when upgrade is needed. Thanks to @Envikia and @alexseys for the notice. Closes #1355
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-07-20 20:51:28 +02: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
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
e90efd3759 * [FIX] Upgrade not needed when updating between v3 releases. Thanks to @vmarion89 for the feedback. Closes #1210 2019-01-24 14:13:34 +01:00
Rubén D
0a34ec61f4 * [FIX] Wrong behavior when upgrading custom fields, public links and API tokens from v2 2019-01-24 11:04:58 +01:00
nuxsmin
afdfa80d8f * [FIX] Wrong behavior when accessing through API. Maintenance mode was wrongly checked. Thanks to @pierrehenrymuller for the feedback. Closes #1108
* [MOD] Updated displayed strings for custom fields type.

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-11-19 00:16:32 +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
24efad7409 * [FIX] Fixed wrong config version checking
Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-11-10 21:56:34 +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
741c07327a * [MOD] Minor UI tweak
* [MOD] Added parameter help for API export action

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-10-28 23:29:02 +01: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
nuxsmin
95d3878a3c * [ADD] Added userGroupId parameter in accounts API
* [MOD] Code refactoring

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-10-11 01:53:18 +02:00
nuxsmin
33ae422b2f * [FIX] Pager was not displayed on auth tokens list
* [ADD] Added special filters for account searching on management tab
* [MOD] Code refactoring

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-10-11 01:04:35 +02:00
nuxsmin
513ab01cff * [ADD] User groups can now be managed thorugh API. Related #1054. Thanks to @pierrehenrymuller for the feedback
* [ADD] Added missing API help for some actions
* [MOD] Updated translations
* [MOD] UI tweaks

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-10-07 20:49:30 +02:00
nuxsmin
bf82807353 * [MOD] Code refactoring
* [ADD] Added PHP 7.2 to Travis CI

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-10-02 00:31:46 +02:00
nuxsmin
5a06ca3b26 * [ADD] Added password preset for accounts password validation
* [MOD] Code refactoring

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-09-02 21:05:03 +02:00
nuxsmin
af8b21fd10 * [ADD] New preset option for session timeout based on client IP address and network. Related #912
* [MOD] Improved IP addresses handling
* [MOD] Code refactoring
* [FIX] Minor bugfixes
2018-09-01 21:38:42 +02:00
nuxsmin
7fcb8aa733 * [FIX] Wrong type casting on API parameter 2018-08-28 02:49:43 +02:00
nuxsmin
02815f9d3c * [ADD] Added API method for updating account's password. Related #1004
* [ADD] Added API method for updating account. Related #1004
* [MOD] Improved API return messages
* [MOD] Code refactoring
2018-08-28 00:37:40 +02:00
nuxsmin
330e85fc07 * [ADD] Unit testing. Work in progress
* [ADD] Integration tests for API module. Work in progress
* [MOD] Code refactoring
2018-08-27 11:06:07 +02:00
nuxsmin
3c78910569 * [ADD] Unit testing. Work in progress
* [MOD] Code refactoring
2018-08-11 09:46:36 +02:00
nuxsmin
e28ec274e0 * [FIX] Wrong behavior when searching for items through the API. Thanks to @GGOUSSEAUD for the feedback and testing. Related #1000
* [MOD] Improved API help. Related #1004
* [MOD] Code refactoring
2018-08-09 13:43:02 +02:00
nuxsmin
218a481732 * [FIX] Minor bugfixes 2018-08-02 01:26:37 +02:00
nuxsmin
056aed8cef * [FIX] Fixed wrong behaviour when searching through API. Search text was unused. Thanks to @GGOUSSEAUD for the feedback and testing. Related #994 2018-07-31 01:56:47 +02:00
nuxsmin
f6aa24d5c1 * [FIX] Fixed wrong behaviour when updating custom fields data module
* [FIX] Delete non-existant users in notifications table
* [MOD] Improved error logging
2018-07-30 12:06:53 +02:00
nuxsmin
1039e5e3a3 * [ADD] Unit testing
* [MOD] Improved ACL management
* [MOD] Improved actions management. Actions Ids need to be updated
* [MOD] Do not return false when a database transaction is trying to start during another transaction.
* [MOD] Code refactoring and cleanup
2018-07-29 19:20:27 +02:00