Skip to content

Instantly share code, notes, and snippets.

@terdelyi
terdelyi / craft_validate_public_user_registration.php
Last active Sep 11, 2021
CraftCMS 3 - Extending the validation on the public user registration form
View craft_validate_public_user_registration.php
<?php
use Craft;
use craft\base\Element;
use craft\elements\User;
use craft\events\ModelEvent;
use yii\base\Event;