Skip to content

Commit

Permalink
this option actually expects Unicode, not a compiled pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdaTotoro committed Oct 29, 2021
1 parent 5a09d34 commit 0861461
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ For example, to allow any users who have an `example.com` email address to self-

.. code-block:: python
import re
c.Authenticator.allow_self_approval_for = re.compile('[^@]+@example\.com$')
c.Authenticator.allow_self_approval_for = '[^@]+@example\.com$'
Please note that activating this setting automatically also enables `ask_email_on_signup`.

Expand Down

0 comments on commit 0861461

Please sign in to comment.