Commit Graph

150 Commits

Author SHA1 Message Date
7dba4d900c Rename Subscription\Url to Subscription\SubscriptionUrlFactory
[MAILPOET-2381]
2019-09-25 10:29:20 +01:00
9b8da1f172 Refactor private Url::getPost to instance method
[MAILPOET-2381]
2019-09-25 10:29:20 +01:00
ae83364297 Refactor getSubscriptionUrl to instance method
[MAILPOET-2381]
2019-09-25 10:29:20 +01:00
d90d5c6385 Refactor getUnsubscribeUrl to instance method
[MAILPOET-2381]
2019-09-25 10:29:20 +01:00
4e75f8883e Refactor getManageUrl to instance method
[MAILPOET-2381]
2019-09-25 10:29:20 +01:00
21fba11893 Add static factory method for Subscription Url
This method is temporary needed in for usage in fully static classes
[MAILPOET-2381]
2019-09-25 10:29:20 +01:00
3c4b60ede9 Refactor getConfirmationUrl to instance method
[MAILPOET-2381]
2019-09-25 10:29:20 +01:00
14cf67d556 Refactor getCaptchaImageUrl to instance method
[MAILPOET-2381]
2019-09-25 10:29:20 +01:00
54632b20c2 Refactor getCaptchaUrl to instance method
[MAILPOET-2381]
2019-09-25 10:29:20 +01:00
e588ebcee9 Use verifyToken()
[MAILPOET-2340]
2019-09-24 14:40:22 +01:00
bc31ca6c6d Remove Subscriber::generateToken()
[MAILPOET-2340]
2019-09-24 14:40:22 +01:00
692ff1ed22 Use getToken()
[MAILPOET-2340]
2019-09-24 14:40:22 +01:00
3ea9c99090 Use link_token when tracking and rendering links 2019-09-12 17:32:05 +02:00
7f66b1bcd5 Subscribe new user to WP list only
[MAILPOET-2210]
2019-09-11 10:36:56 +01:00
f5cf4ab0bf Improve CAPTCHA strings
[MAILPOET-2323]
2019-09-04 12:13:06 -04:00
wxa
643f3af185 Display captcha success/error messages without JS [MAILPOET-2323] 2019-09-04 12:13:06 -04:00
c90a2e41a1 Use separate scheduler for welcome emails
[MAILPOET-2321]
2019-08-29 13:55:49 -04:00
wxa
15c36e851e Fix captcha transient lifetime, remove a duplicate string [MAILPOET-2246] 2019-08-05 21:10:23 +01:00
579ce5fc64 Add integration test for captcha session
[MAILPOET-2248]
2019-08-05 21:10:23 +01:00
13724898d1 Use Cookies service within Session and add unit test
[MAILPOET-2248]
2019-08-05 21:10:23 +01:00
8e1c3b8c03 Use CaptchaSession service instead of PHP Session
[MAILPOET-2248]
2019-08-05 21:10:23 +01:00
6a494a2fae Introduce captcha session service
[MAILPOET-2248]
2019-08-05 21:10:23 +01:00
wxa
d4cd9849d3 Resort to a default MailPoet page if no page is set in settings [MAILPOET-2015] 2019-07-23 08:37:46 -04:00
wxa
cfb108d240 Convert throttling timeout from seconds to a human-readable string [MAILPOET-2015] 2019-07-23 08:37:46 -04:00
wxa
3fbaf8cf3e Allow only certain user roles to be exempt from captcha [MAILPOET-2015] 2019-07-23 08:37:46 -04:00
wxa
4a309e7317 Fix more PR remarks [MAILPOET-2015]
Use fast termination to remove some nesting
Use DI for CaptchaRenderer
Remove unused vars in router subscription endpoint
2019-07-23 08:37:46 -04:00
wxa
d1aceb9d75 Move captcha page rendering to a separate class [MAILPOET-2015] 2019-07-23 08:37:46 -04:00
wxa
7788aebe83 Fix minor PR remarks [MAILPOET-2015]
Reuse updateCaptcha() function
Inject Captcha class using DI
Add no-cache headers to captcha image
Fix an error when accessing the captcha page directly
Edit the line in settings regarding missing dependencies
2019-07-23 08:37:46 -04:00
wxa
b174a55d07 Handle captcha during subscription [MAILPOET-2015] 2019-07-23 08:37:46 -04:00
wxa
08af443c1f Add captcha page [MAILPOET-2015] 2019-07-23 08:37:46 -04:00
wxa
f8ea514887 Update the captcha setting [MAILPOET-2015] 2019-07-23 08:37:46 -04:00
wxa
7f40e5b512 Clean up unused imports [MAILPOET-2208] 2019-07-19 08:54:50 -04:00
wxa
a2df2cc7bd Refactor subscription pages and config shortcodes to DI [MAILPOET-2208] 2019-07-19 08:54:50 -04:00
wxa
26d7fb5468 Fix PR remarks [MAILPOET-2176] 2019-07-11 06:53:10 -04:00
wxa
57b13c8896 Add blacklist to Mailer [MAILPOET-2176] 2019-07-11 06:53:10 -04:00
111adbe90e Fix registration of rejected users
There are multiple hooks for user registration.
https://usersinsights.com/wp/wp-content/uploads/2018/07/user-registration-hooks-2.png
The `register_post` hook is executed first and
after that there is `registration_errors`.
The captcha verification is done in `registration_errors` hook.
But because we were using `register_post` we were saving
the subscriber before the post request was verified.

[MAILPOET-2114]
2019-06-06 10:41:13 -04:00
5d64ec168d Add rule for concatenation operator spacing
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
5da7110eb6 Use short array syntax
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
wxa
f2e0dc7d2f Refactor URL helper to DI and move its test to unit [MAILPOET-2009] 2019-05-03 08:41:05 -04:00
75cf0139cd [MAILPOET-1951] 2019-04-17 18:57:09 +03:00
07af1df3a5 Show 'inactive' option in 'Manage subscription'
[MAILPOET-1973]
2019-04-17 08:16:45 +02:00
5c536b3779 [MAILPOET-1921] 2019-04-10 07:00:59 -04:00
19b1a6234f Prevent removing mandatory custom fields
[MAILPOET-1828]
2019-04-08 10:35:20 -04:00
839dea63be Translate a string 2019-04-08 06:20:04 -04:00
cd1bfe6d88 Prevent unsubscribing when previewing
[MAILPOET-1935]
2019-04-03 12:01:23 -04:00
0a436087e1 Replace all WP function calls 2019-03-07 08:30:14 -05:00
wxa
fb77167a1f Remove unused imports [MAILPOET-1825] 2019-02-21 09:51:53 -05:00
wxa
2f487fd300 Inject subscribe() action instead of calling it statically [MAILPOET-1825] 2019-02-21 09:51:53 -05:00
3ee58aea10 Add space between if and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
a935b091d3 Add space between elseif/else if and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00