mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-04 00:20:45 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user