Commit Graph

131 Commits

Author SHA1 Message Date
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
a8972ca281 Add space between switch and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
ebbdec5ebd Add space between foreach and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
ce7ad292b8 Refactor MailPoet\Subscribers, Subscription to use new settings
[MAILPOET-1757]
2019-01-31 15:57:58 +01:00
8b602bd947 Move WPHooks methods to WPFunctions 2019-01-31 13:25:00 +01:00
b663d9761e Encapsulate is_user_logged_in function 2019-01-30 13:59:49 +01:00
wxa
a4ff9822ad Add WooCommerce customers list [MAILPOET-1721] 2019-01-17 21:42:57 +03:00
da27680224 Merge pull request #1695 from mailpoet/di-hacking-refactor
Hacking day - DI Refactor [MAILPOET-1689]
2018-12-20 11:13:05 -05:00
ece5e9a9d1 Refactor subscription form processing
[MAILPOET-1689]
2018-12-17 15:02:42 +01:00
4260960b59 Fix typos - subsciber => subscriber 2018-12-15 13:08:47 +01:00
d49b2a72a9 Refactor JSON API to use container for creating endpoints
[MAILPOET-1637]
2018-11-15 09:04:15 +01:00
1e7542848a Merge pull request #1556 from mailpoet/arrays-to-objects
Replace entity arrays with objects [MAILPOET-1495]
2018-10-22 14:59:12 -04:00
654dd1e8d0 Rename Send classes
[MAILPOET-1522]
2018-10-15 13:06:19 +02:00
c3481dd4b7 Refactor subscription links to work with subscriber entity
[MAILPOET-1495]
2018-10-12 11:33:15 +02:00
4249c7a2cb Send an email notification on new subscriber
[MAILPOET-1522]
2018-10-11 10:23:06 +02:00
ae0e03d2f3 Update code for PHP 5.5
[MAILPOET-1496]
2018-08-23 12:10:21 +02:00
2ee77e0034 Deleted TODOs after noting them as JIRA issues 2018-06-13 16:46:18 +02:00
e731b261ab Conditionally initializes shortcodes/filters 2017-12-05 10:34:03 -05:00
7864e08900 Enables [mailpoet_manage] shortcode
Updates code
2017-12-04 19:58:30 -05:00
63ed835d64 Allows using manage_subscription shortcode outside of newsletters 2017-11-28 22:02:29 -05:00