35359bd3c6
Adding more tests to cover different scenario
2019-04-24 15:28:15 +02:00
f45496336f
Add ability to match many domains for credentials
...
Instead of fetching one domain, we use the same method as in site config (to retrieve the matching file) and handle api.example.org, example.org, .org (yes the last one isn’t useful).
If one of these match, we got it and use it.
2019-04-23 22:39:31 +02:00
5cc0646e66
Fix index on MySQL
2019-04-01 15:45:17 +02:00
c579ce2306
Some cleanup
...
Also, do not run the hashed_url migration into a Doctrine migration
2019-04-01 14:34:20 +02:00
8a64566298
Use a better index for hashed_url
...
It'll most often be used in addition to the `user_id`.
Also, automatically generate the hash when saving the url.
Switch from `md5` to `sha1`.
2019-04-01 13:51:57 +02:00
9c2b2aae70
Keep url in exists endpoint
...
- Add migration
- Use md5 instead of sha512 (we don't need security here, just a hash)
- Update tests
2019-04-01 13:24:40 +02:00
bfe02a0b48
Hash the urls to check if they exist
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr >
2019-04-01 13:24:40 +02:00
3620dae1e6
Merge remote-tracking branch 'origin/master' into 2.4
2019-04-01 13:16:15 +02:00
bfd69c74e5
Merge pull request #3909 from wallabag/fix/html-not-defined
...
Fix PHP warning
2019-03-18 09:26:33 +01:00
8ca858ee73
Fix PHP warning
...
Looks like sometimes (usually from import) the `html` key isn’t available.
2019-03-18 06:23:41 +01:00
41d476d7e7
epub: fix exception when articles have the same title
...
This commit fixes an exception occuring when exporting as epub several
articles with the same title. The chapter filename is now derived from
title and url.
Fixes #3642
Signed-off-by: Kevin Decherf <kevin@kdecherf.com >
2019-03-17 23:36:10 +01:00
f1f1efb5de
material: wrap card actions, remove class hiding of creation date
...
Signed-off-by: Kevin Decherf <kevin@kdecherf.com >
2019-03-03 19:22:32 +01:00
8c0ba95307
Adding more tests
2019-02-27 15:01:03 +01:00
ea925bb112
CS
2019-02-27 14:33:26 +01:00
3784688a88
Replace continue; with break; to avoid PHP 7.3 warnings
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr >
2019-02-27 14:29:14 +01:00
9a7a0e1e6b
epub export: fix missing cover image, only for exports of one article
...
Fixes #3602
Signed-off-by: Kevin Decherf <kevin@kdecherf.com >
2019-02-18 00:16:05 +01:00
0182cdaec4
CS
2019-02-11 11:57:52 +01:00
baa5ee2d42
Force default_protocol to generate an url input
2019-02-08 15:03:52 +01:00
18460b2d79
Merge remote-tracking branch 'origin/master' into 2.4
2019-02-07 18:01:15 +01:00
4654a83b64
Hash backup codes in the database using password_hash
2019-01-23 14:43:39 +01:00
c416ed485f
CS
2019-01-23 13:28:24 +01:00
a0c5eb003f
Change the way to enable 2FA
...
And add a step to validate a generated code from the OTP app
2019-01-23 13:28:24 +01:00
e073090b8d
Update translation
2019-01-23 13:28:24 +01:00
dfd0a7bc5f
Add backup codes
2019-01-23 13:28:03 +01:00
6e4fc956ab
Better translations
...
Replace “Google Authenticator” by “Google Authenticator, Authy or FreeOTP” in all text.
Translate how to use the code / qr code.
2019-01-23 13:28:02 +01:00
2dfbe9e5fa
Fix tests
2019-01-23 13:28:02 +01:00
a6b242a1fd
Enable OTP 2FA
...
- Update SchebTwoFactorBundle to version 3
- Enable Google 2fa on the bundle
- Disallow ability to use both email and google as 2fa
- Update Ocramius Proxy Manager to handle typed function & attributes (from PHP 7)
- use `$this->addFlash` shortcut instead of `$this->get('session')->getFlashBag()->add`
- update admin to be able to create/reset the 2fa
2019-01-23 13:28:02 +01:00
acd4412080
Create a dedicated tab to reset data
2019-01-23 13:28:01 +01:00
fe5850d6e2
Update icon to casino
2019-01-22 17:05:21 +01:00
091bafeb4c
Handle no random result found
2019-01-19 22:30:50 +01:00
50f35f0db2
Move icon into the top menu bar
...
Change the way to select a random entry:
- select all ids from the given user (with filters)
- choose randomly one in php
- find that entry
2019-01-19 22:24:10 +01:00
9a57653aec
Redirect to the current view instead of homepage
2019-01-19 21:10:16 +01:00
90a0d086a8
Better icon
2019-01-19 21:10:16 +01:00
062fad434a
Better random function
2019-01-19 21:09:33 +01:00
0447a75b06
Use only one method to randomize
...
Instead of one per type, one for all is ok.
2019-01-19 21:09:33 +01:00
f85d220c19
Fix tests
2019-01-19 21:09:33 +01:00
09ef25c3c3
Added random feature
2019-01-19 21:09:32 +01:00
1e0d8ad7b7
Enable PHPStan
...
- Fix error for level 0 & 1 (level 7 has 699 errors...)
- Add `updated_at` to site_credential (so the `timestamps()` method applies correctly)
2019-01-18 15:25:50 +01:00
293730656d
Add dedicated email for site config issue
...
Instead of sending an email to the devs, it now creates an issue on GitHub using a zap from zapier.
2019-01-18 11:15:23 +01:00
3afc87426d
CS
2019-01-15 09:49:22 +01:00
5419a8368e
Merge remote-tracking branch 'origin/master' into 2.4
2019-01-15 09:41:18 +01:00
78e3fafa3f
Avoid error when a bad order parameter is given
...
Only allowed parameter are asc & desc
2019-01-14 17:01:21 +01:00
3625833b2c
Merge pull request #3826 from wallabag/epub-toc
...
Rework of EPUB/PDF exports
2019-01-11 13:34:38 +01:00
bb8ad42b27
Update entries.html.twig
...
Should fix https://github.com/wallabag/wallabag/issues/3832
2019-01-10 04:25:51 +01:00
d4466a37fe
Update entries.html.twig
...
Should fix https://github.com/wallabag/wallabag/issues/3832
2019-01-10 04:23:08 +01:00
5e1f27767b
EntriesExport: avoid else on $authors
...
Signed-off-by: Kevin Decherf <kevin@kdecherf.com >
2019-01-09 16:26:19 +01:00
dac93644e8
EntriesExport: sanitize filename and fix tests
...
Filename will now only use a-zA-Z0-9-' and space.
Fixes remaining filename issue on #3811
Signed-off-by: Kevin Decherf <kevin@kdecherf.com >
2019-01-08 15:13:35 +01:00
ad5ef8bca0
EntriesExport/pdf: move notice to the end, add metadata cover
...
Signed-off-by: Kevin Decherf <kevin@kdecherf.com >
2019-01-07 23:36:41 +01:00
af83d05ce2
Add translations
...
Signed-off-by: Kevin Decherf <kevin@kdecherf.com >
2019-01-07 23:06:02 +01:00
4944703edc
EntriesExport/epub: add metadata to each entry's cover
...
Add metadata to the cover of each entry:
- Publishers
- Estimated reading time
- Date of creation ("Added on")
- Address (URL)
Related to #2821
Signed-off-by: Kevin Decherf <kevin@kdecherf.com >
2019-01-07 21:44:14 +01:00