- 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
8 lines
136 B
PHP
8 lines
136 B
PHP
<?php
|
|
namespace MailPoet\Util;
|
|
|
|
class Security {
|
|
static function generateToken() {
|
|
return wp_create_nonce('mailpoet_token');
|
|
}
|
|
} |