mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
added trumail validator after update and implement simple email validator interaction
This commit is contained in:
parent
00bb2ffb45
commit
41feb7c601
2 changed files with 27 additions and 0 deletions
9
app/interactions/actions/simple_mail_validator.rb
Normal file
9
app/interactions/actions/simple_mail_validator.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
module Actions
|
||||
module SimpleMailValidator
|
||||
extend self
|
||||
|
||||
def run(email:, level:)
|
||||
Truemail.validate(email, with: level).result
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue