mirror of
https://github.com/wassname/flask-security.git
synced 2026-10-02 12:10:40 +08:00
login_without_confirmation should allow you to log in without confirmation
This commit is contained in:
1 parent
292f89c204
commit
1596ef75d4
1 file changed
+1
-1
@@ -58,7 +58,7 @@ def generate_confirmation_token(user):
|
||||
|
||||
def requires_confirmation(user):
|
||||
"""Returns `True` if the user requires confirmation."""
|
||||
return _security.confirmable and user.confirmed_at == None
|
||||
return _security.confirmable and not _security.login_without_confirmation and user.confirmed_at == None
|
||||
|
||||
|
||||
def confirm_email_token_status(token):
|
||||
|
||||
Reference in new issue
Block a user