Skip to content

Commit

Permalink
validate email
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Nov 14, 2024
1 parent 06e9503 commit 05a52db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/models/CmsSiteEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ public function rules()
[['cms_site_id'], 'exist', 'skipOnError' => true, 'targetClass' => CmsSite::class, 'targetAttribute' => ['cms_site_id' => 'id']],

[['value'], 'string', 'max' => 64],
[['value'], 'email'],


[['value'], "email", 'enableIDN' => true],
]);
}

Expand Down
2 changes: 1 addition & 1 deletion src/models/CmsUserEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function rules()
return StringHelper::strtolower($value);
},
],
[['value'], "email"],
[['value'], "email", 'enableIDN' => true],
]);
}

Expand Down

0 comments on commit 05a52db

Please sign in to comment.