devex(core): avoid email verification on dev (#2634)

Add guard to check if `env` in the backend configuration is set to
`'dev'`. When it is set to `'dev'`, do not invoke email verification
extensions.
This commit is contained in:
Eric Dubé
2026-03-10 15:56:00 -04:00
committed by GitHub
parent cc70e49472
commit c9787c1d4b
@@ -152,6 +152,8 @@ class CleanEmailService extends BaseService {
* set event.allow=false to reject the email.
*/
async validate (email) {
if ( this?.global_config?.env === 'dev' ) return true;
email = this.clean(email);
const config = this.global_config;