Flask-User icon indicating copy to clipboard operation
Flask-User copied to clipboard

invite_app.py example not working

Open johschmitz opened this issue 5 years ago • 2 comments

I was trying to run the invite_app.py example but it throws an error:

$ python3 invite_app.py
Traceback (most recent call last):
  File "invite_app.py", line 5, in <module>
    from flask_user import confirmed_email_required, utils, login_required, \
ImportError: cannot import name 'confirmed_email_required'

It seems the @confirmed_email_required decorator in Flask-User/flask_user/decorators.py is completely missing even if there is a comment that says

This module defines Flask-User decorators
such as [...] and @confirmed_email_required.

johschmitz avatar Oct 12 '19 21:10 johschmitz

This decorator is indeed missing in the file. Maybe considering changing the routes hat are allowed for unconfirmed emails with flask_user.decorators.allow_unconfirmed_email?

Chaostheorie avatar Feb 09 '20 10:02 Chaostheorie

It seems that a lot have changed in the API since the initial release of this file. The mechanism to send invitations is extremely useful and it would be very nice to have an updated version :)

harisbal avatar Jul 29 '21 11:07 harisbal