Files
piratepoet/lib/Util/Security.php
Jonathan Labreuille 1ff7e3f4be Form Subscription
- improved MailPoet ajax to fix token issue
- added js validation and ajax submit in public.js
- add util security to generate tokens
- updated router to use new util security
- added jquery-validation module
- update public config in webpack config
- added error messages in form
2015-08-20 21:02:04 +02:00

8 lines
136 B
PHP

<?php
namespace MailPoet\Util;
class Security {
static function generateToken() {
return wp_create_nonce('mailpoet_token');
}
}