Skip to content

Blocking mail providers #9762

Answered by Tealk
Tealk asked this question in Q&A
Discussion options

You must be logged in to vote

Here is my solution:

if not regex_match(request.context["prompt_data"]["email"], '.*@(gmail|googlemail)\.com'):
    return True
ak_message("GMail ist not allowed")
return False

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Tealk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant