Rubén D
bd8e599014
chore: Create tests for AccountFileService
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-27 19:51:18 +01:00
Rubén D
78ad705aee
fix: Wrong arguments for DTO
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-27 18:27:04 +01:00
Rubén D
930b1f7139
chore: Create AccountCryptService tests
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-27 16:01:51 +01:00
Rubén D
41b171e89d
chore: Create AccountSearchTokenizer tests
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-27 00:46:43 +01:00
Rubén D
c939ef634a
chore: Adapt to hexagonal architecture pattern.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-26 20:12:23 +01:00
Rubén D
5952a3f48a
chore: Adapt to hexagonal architecture pattern.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-26 19:45:53 +01:00
Rubén D
ae16c0ad76
fix: Set properties type
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-26 15:13:02 +01:00
Rubén D
07437ffda0
chore: Create AccountAdapter tests
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-26 13:04:38 +01:00
Rubén D
f9d16dd76f
chore: Move repository interface
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-26 08:39:44 +01:00
Rubén D
796ecbc5fb
chore: Implement AccountAclService tests.
...
Use scoped namespace for simple functions.
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-25 23:40:27 +01:00
Rubén D
a4c654f44c
chore: Implement PublicLinkRepository tests.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-20 19:58:16 +01:00
Rubén D
caa5571b20
chore: Implement AccountToUserRepository tests.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-20 17:43:49 +01:00
Rubén D
930c519ef1
chore: Implement AccountToUserGroupRepository tests.
...
A new Query class is needed to perform custom queries.
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-20 17:31:13 +01:00
Rubén D
e849c9d521
chore: Reformat code
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-20 12:56:00 +01:00
Rubén D
4a22b12be8
chore: Reformat code and extend from RepositoryInterface
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-20 12:02:46 +01:00
Rubén D
de9d500d85
chore: Create AccountToTagRepository tests
...
A RepositoryInterface is added to expose transactionAware method to the service.
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-20 11:46:11 +01:00
Rubén D
120adb09ee
chore: Create AccountToFavoriteRepository tests
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-19 17:26:30 +01:00
Rubén D
fb0126f9cf
chore: Adapt AccountFileService.php
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-19 17:09:52 +01:00
Rubén D
8379a8cbd6
chore: AccountFile repository test
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-19 17:05:34 +01:00
Rubén D
a383d712a1
chore: Fix PHPStan warnings
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-19 15:38:34 +01:00
Rubén D
666bd06566
chore: Fix tests and PHPStan warnings
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-19 15:37:01 +01:00
Rubén D
cebb3bb72d
chore: Move repository interface to domain
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-19 15:07:00 +01:00
Rubén D
295d6c6ca9
chore: Apply inspection fixes
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-19 11:24:35 +01:00
Rubén D
055a1bd4b5
chore: Fix interface implementation
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-19 11:15:25 +01:00
Rubén D
cd4369e74e
Merge branch 'master' into feat/code_refactoring
...
# Conflicts:
# app/modules/web/themes/material-blue/views/account/account.inc
# app/modules/web/themes/material-blue/views/account/search-rows.inc
# app/modules/web/themes/material-blue/views/config/ldap.inc
# composer.json
# composer.lock
# lib/SP/Bootstrap.php
# lib/SP/Core/Language.php
# lib/SP/Html/Html.php
# lib/SP/Infrastructure/Database/DatabaseUtil.php
# lib/SP/Providers/Auth/Ldap/LdapActions.php
# lib/SP/Services/Account/AccountSearchItem.php
# lib/SP/Services/Install/Installer.php
2022-11-13 09:18:55 +01:00
Rubén D
2ccce01acb
chore: Fix unitary tests
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-06 17:34:32 +01:00
Rubén D
6a71fe3372
chore: Remove unused methods
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-06 16:38:05 +01:00
Rubén D
8ef229f8ed
chore: AccountHistoryRepository tests
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-06 16:29:33 +01:00
Rubén D
752d7863c1
chore: Fix interfaces implementation
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-06 12:10:19 +01:00
Rubén D
4db6bcfcf6
chore: Complete AccountRepository tests
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-06 11:56:41 +01:00
Rubén D
0e4e92d7db
chore: Fix properties visibility
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-06 10:06:20 +01:00
Rubén D
fde6e60bd1
chore: Fix tests
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-05 19:34:56 +01:00
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
08ce35a837
chore: Use constants for queries.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-10-31 10:03:59 +01:00
Rubén D
8fe49d064e
chore: Update PHPDoc blocks
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-10-31 09:25:59 +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énD
9d0e169d21
Merge pull request #1856
...
* fix: Encode XSS related characters and strip tags.
2022-07-02 07:48:11 +02:00
RubénD
c39b60c2a7
Merge pull request #1853
...
* fix: Encode special characters using regex.
* chore: Bump version number.
2022-07-01 08:14:33 +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
fd0de58a23
chore: Move adapters to Domain.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-25 11:13:41 +02:00
RubénD
244fa4429c
Merge pull request #1588 ( #1848 )
...
* [FIX] Fixes issue with LDAP pagination
Co-authored-by: Felix Haase <felix.haase@feki.de >
2022-06-25 10:16:34 +02:00
RubénD
1be83de9b2
Merge pull request #1846
...
* chore: Set X-Frame options and CSP. Thanks to @lengochoa7112000 !!
* chore: Update dependencies.
* chore: Bump version number.
2022-06-25 09:43:52 +02:00
Rubén D
ffae1d9426
chore: Allow 0 items on XML export file.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-20 08:31:26 +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
433ff46d3b
fix: Use existing config instead of new one during install
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-19 23:29:57 +02:00
Rubén D
3c0b3b726a
chore: Use constants for config properties.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-19 23:00:53 +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
ff745a0cd5
feat: Installer refactoring to inject all dependencies at build time.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-19 11:39:59 +02:00