Commit Graph

145 Commits

Author SHA1 Message Date
Rubén D
489684f08c chore: Added MySQL setup class tests.
These tests implement a mocked PDO class that behaves like the original one.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-22 22:17:30 +02:00
Rubén D
23672a52b2 chore: Check database connection and use interface for mocking.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-20 07:36:48 +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
5d3a40961f chore: Simplify expression.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-20 06:48:56 +02:00
Rubén D
9b3fea6983 chore: Rework tests for Installer, no more infra dependencies.
This allows to test without any infrastructure dependency. Final classes are sorted out by using the `BypassFinals` library.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-16 11:27:32 +02:00
Rubén D
ec47a5ab83 * [FIX] Avoid long database hostname.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-03-13 20:08:42 +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
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
861ce46e8a * [MOD] Bump version number
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-03-13 11:45:25 +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
b0050813b0 * [FIX] Fix ADS search behavior by unsseting ACCOUNTDISABLE flag for UserAccountControl property, since it prevents to throw the proper status code when authenticating against LDAP. Thanks to @t0l0 for testing. Closes #1574
* [MOD] Update dependencies
* [MOD] Bump version number

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-01-16 11:46:58 +01:00
Rubén D
f428a8c1d6 * [MOD] Bump version number
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-12-20 20:46:21 +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
e4e6e04c57 * [MOD] Updated copyright
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-12-07 19:42:41 +01:00
Rubén D
ad90b707bf * [FIX] Skip direct link on new account
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-06-29 00:52:09 +02:00
Rubén D
9d6509e386 * [ADD] Allow to disable database fallback when using LDAP auth. Closes #1518. Thank to @itpro-tips for the feedback.
* [MOD] Improved authentication workflow.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-06-29 00:25:13 +02:00
Rubén D
d310a10ba0 * [MOD] Merge v3.1 changes
* [ADD] Use custom ldap attributes for users or groups
* [ADD] Use custom ldap filter for users or groups lookup
* [MOD] Improved internal config handling by using an array instead of class properties

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-06-28 19:38:06 +02:00
Rubén D
c03d779894 * [MOD] Bump version patch and build number
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-03-07 17:52:39 +01:00
Rubén D
a299760683 * [FIX] Wrong behavior when viewing PDF files. Thanks to @m-shirokov for the notice. Closes #1501
* [MOD] Minor code tweaks

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-12-16 00:40:02 +01:00
Rubén D
945ee6d307 * [FIX] Wrong behavior when upgrading from v3.0. Thanks to @Envikia for the feedback. Related #1401
* [MOD] Improved error code when an unknown API token is used. Thanks to @matejzero for the feedback. Closes #1429
* [FIX] Wrong behavior when changing master password and there aren't any accounts for processing. Thanks to @matejzero for the feedback. Closes #1430

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-08-21 23:51:32 +02:00
Rubén D
ceab42987e * [FIX] Wrong CSV MIME type
* [MOD] Added CSV MIME type
* [MOD] Updated composer lock file
* [MOD] Bump to v3.1

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-08-18 22:02:58 +02:00
Rubén D
29b56c5e35 * [MOD] Update version & build number
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-07-20 23:41:15 +02:00
Rubén D
1adb103f29 * [FIX] Wrong URL handling when downloading files. Thanks to @fprina for the feedback ans testing. Closes #1354
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-05-25 20:28:35 +02:00
Rubén D
58dbc3509e * [MOD] Improved stacktrace by anonymizing function's arguments data. Thanks to @cRaZy-bisCuiT for the feedback. Closes #1339
+ [MOD] Bump version & build

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-05-25 02:08:21 +02:00
Rubén D
4f3bb74296 * [MOD] Improved stacktrace by anonymizing function's arguments data. Thanks to @cRaZy-bisCuiT for the feedback. Closes #1339
+ [MOD] Bump version & build

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-05-25 01:41:22 +02:00
Rubén D
ea9b6ee1fd * [FIX] Wrong field definition on PluginData table. Thanks to @drewlsvern for the feedback. Closes 1326
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-04-30 20:50:01 +02:00
Rubén D
4f9431e7bc * [FIX] Wrong PHP version comparison
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-04-28 15:35:54 +02:00
Rubén D
72c51b037d * [MOD] Jump to RC1
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-04-27 12:01:35 +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
b8022166ba * [FIX] Wrong behavior when disabling remote syslog
* [MOD] Increase account's name length up to 100 characters long. Related #1071

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-04-27 00:34:13 +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
0fbaccf8a1 * [MOD] Improved plugins handling by moving items' data to new database table.
* [MOD] Added plugins upgrade process

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-01-22 01:18:03 +01:00
Rubén D
5dcc450326 * [MOD] Bump version&build numbers
* [FIX] Wrong behavior when setting security token on log/audit module. Thanks to @schleyk  for the feedback. Closes #1182

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-01-20 12:06:39 +01:00
Rubén D
6ca3b4b6df * [MOD] Bump version&build numbers
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-01-20 11:49:59 +01:00
Rubén D
8b74791ed3 * [MOD] Bump version&build numbers
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-01-20 11:24:58 +01:00
nuxsmin
f8ce21c822 * [MOD] Bump version number
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-01-01 23:55:51 +01:00
Rubén D
36a57c82b8 * [FIX] Wrong behavior when no events are set
* [FIX] Wrong behavior when wiki filters are active
* [FIX] Wrong behavior importing XML files from previous version

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2018-12-26 07:20:33 +01:00
Rubén D
08e8bd8102 * [MOD] Improved master password change by enforcing maintenance mode before running the process
* [MOD] Added import events to fixed ones
* [MOD] Minor code tweaks

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2018-12-22 13:00:05 +01:00
nuxsmin
8acca8250e * [FIX] Disable database events from logging into the database. Thanks to @deajan for the notice. Related #1165
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2018-12-17 18:58:18 +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
4c12bc56f6 * [FIX] Wrong behaviour when loading config for first time.
Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-12-15 11:37:44 +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
8cdceed192 * [MOD] Bump build number and version
Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-11-26 20:27:51 +01:00
nuxsmin
034c4c0143 * [MOD] Bump build number and version
* [MOD] Updated translations

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-11-25 20:47:59 +01:00
nuxsmin
b247bd4f2f * [MOD] Bump build number and version
* [MOD] Updated translations

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-11-25 20:42:43 +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
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