Commit graph

140 commits

Author SHA1 Message Date
Jan Böhmer
069293a843 Added 2FA with U2F keys. 2019-12-29 13:35:30 +01:00
Jan Böhmer
604ebe420d Added possibility to show backup codes in user settings. 2019-12-27 18:21:12 +01:00
Jan Böhmer
fba5f9794f Added an service for generating Backup codes and added some tests. 2019-12-27 15:20:06 +01:00
Jan Böhmer
25105ba7d4 Set default value of enforce_2fa to fix travis. 2019-12-24 15:20:26 +01:00
Jan Böhmer
2fa0963374 Prepared DB and models for Two Factor authentication 2019-12-14 16:35:19 +01:00
Jan Böhmer
6a0d027675 Added an mechanism to reset passwords via mail. 2019-11-24 22:49:22 +01:00
Jan Böhmer
b0fd346369 Use the right permission for minamount part field. 2019-11-15 19:02:11 +01:00
Jan Böhmer
6ddc937ec5 Fixed some inspection issues. 2019-11-10 14:00:56 +01:00
Jan Böhmer
e557bdedd5 Added an PHP CS fixer config file and applied it to files.
We now use the same the same style as the symfony project, and it allows us to simply fix the style by executing php_cs_fixer fix in the project root.
2019-11-09 00:47:20 +01:00
Jan Böhmer
89258bc102 Added some tests for important entity methods. 2019-11-09 00:31:42 +01:00
Jan Böhmer
a0c3410db6 Centralized setElement logic for *Attachment entities. 2019-11-08 22:05:12 +01:00
Jan Böhmer
787e498586 Updated copyright headers. 2019-11-01 13:40:30 +01:00
Jan Böhmer
fdfb099cb5 Allow to restrict the file extensions for a attachment type. 2019-10-31 22:37:54 +01:00
Jan Böhmer
2187f5eac2 Allow to disable a user in admin settings.
When a user is disabled, he can not login.
2019-10-26 23:22:27 +02:00
Jan Böhmer
dd1dc54d97 Test the admin pages, if read/list/delete is working. 2019-10-26 22:27:04 +02:00
Jan Böhmer
27a001b1d2 Added an option to download a attachment via URL. Implemented secure attachments, which can not be accessed by URL and requires authentication. 2019-10-19 18:42:06 +02:00
Jan Böhmer
d382021fee Moved attachment form submit logic to a seperate service. 2019-10-19 17:13:13 +02:00
Jan Böhmer
0b69de332d Implemented different themes for Part-DB.
We use Bootswatch to provide different themed bootstrap CSS.
2019-10-13 17:48:18 +02:00
Jan Böhmer
4fe10b6169 Uploaded (non secure) attachments live now in public/
That way the attachment files can now be loaded much quicker (without invoking a controller). Also added thumbnailing for pictures in tables.
2019-10-05 20:30:27 +02:00
Jan Böhmer
6645ab0b61 Allow to specify the 3d model for a footprint. 2019-10-03 14:04:09 +02:00
Jan Böhmer
d9fe77d0e8 Allow to specify a preview attachment in the AdminPages. 2019-10-03 13:42:06 +02:00
Jan Böhmer
2001680542 Allow to specifiy a path to a builtin ressource via the url field. 2019-09-25 16:03:22 +02:00
Jan Böhmer
67fe47bbb9 Generate internal filenames based on attachment name.
The filename of the uploaded file is now safed in the database.
2019-09-24 18:39:11 +02:00
Jan Böhmer
eb1d8fd4e4 Added possibility to add/edit attachments on Admin pages. 2019-09-24 18:28:35 +02:00
Jan Böhmer
97cb91a3b2 Implement new attachment property in its getters/setters. 2019-09-24 16:36:41 +02:00
Jan Böhmer
9d73cc0869 Fixed exception on login. 2019-09-24 16:09:54 +02:00
Jan Böhmer
ccc345cd1b Changed DB structure the way, many more elements can have attachments
Also every Element has now a preview attachment field. For the user this will be used as profile picture.
2019-09-24 13:39:49 +02:00
Jan Böhmer
a97d016740 Added some more tests.
Also changed the behavior of some code to meet the expectation.
2019-09-22 23:47:40 +02:00
Jan Böhmer
00b19732cc Fixed error in tests. 2019-09-22 21:35:22 +02:00
Jan Böhmer
e78033d774 Treat all image formats that browsers can show correctly as image attachments.
Especially we can now use WebP for attachments.
2019-09-22 21:25:06 +02:00
Jan Böhmer
006cd9c7e5 Allow admins to set passwords in users admin page. 2019-09-19 12:35:28 +02:00
Jan Böhmer
2d34649ae6 Allow user to set a currency in which every price is shown for him. 2019-09-18 18:17:17 +02:00
Jan Böhmer
842ee145bc Check also inheritance in type checking of isChild to prevent exceptions 2019-09-18 12:48:27 +02:00
Jan Böhmer
3d790db559 Fixed orphanRemoval problem with parts collection.
Also ElementPermissionListener was improved, and multiple special cases were unified.
2019-09-17 13:57:40 +02:00
Jan Böhmer
21a81486df Fixed some inspection issues. 2019-09-16 22:04:59 +02:00
Jan Böhmer
f7c2f1032f Split Part entity class into multiple traits.
The part class has become very big and clumsy, that way it should be easier to maintain this entity...
2019-09-16 21:40:47 +02:00
Jan Böhmer
3ecbe19fd6 Check read property on part entity objects. 2019-09-16 13:27:53 +02:00
Jan Böhmer
da14ee942d Added permissions for the new functions. 2019-09-13 17:13:58 +02:00
Jan Böhmer
0bfcec77fb Use language setting of users when logging in. 2019-09-12 17:50:33 +02:00
Jan Böhmer
0dd20394cb Fixed an error that prevented to create a new user.
Also added some validation constraints.
2019-09-11 19:04:09 +02:00
Jan Böhmer
90d449ea22 Prevent a user from lock itself out from the user system. 2019-09-11 18:50:23 +02:00
Jan Böhmer
ac302ab16a Allow to specify operations that also need to be set.
When the edit operation is set, the read permission is now set too.
2019-09-11 13:37:51 +02:00
Jan Böhmer
7390f2eccd Allow to change the permissions for users. 2019-09-10 17:12:56 +02:00
Jan Böhmer
429a4ebd17 Added links to part_lists on part info page. 2019-09-08 16:20:53 +02:00
Jan Böhmer
b62b0918d7 Added validator for the isFull/onlyExisting/singlePart options of locations. 2019-09-04 23:20:10 +02:00
Jan Böhmer
cd2534335a Add inversedby attribute to part->measurement unit relation association 2019-09-04 23:04:35 +02:00
Jan Böhmer
e19cd67b88 Show parts count on AdminPages of PartsContainingDBElements 2019-09-04 19:37:35 +02:00
Jan Böhmer
b7b7bf3a8b Show a useful message, when a master attachment is not valid because it is not a picture. 2019-09-02 23:13:50 +02:00
Jan Böhmer
e2b643c52b Allow to select the master picture attachment. 2019-09-02 23:09:58 +02:00
Jan Böhmer
59c981ad0d Show MPN and manufacturer link on part info page. 2019-09-02 18:53:31 +02:00