From d285764592393dbc88b4c9cc349c4ca2afb4de26 Mon Sep 17 00:00:00 2001 From: Matt Wright Date: Tue, 1 May 2012 12:05:28 -0400 Subject: [PATCH] Make active be true by default --- flask_security/datastore.py | 1 + 1 file changed, 1 insertion(+) diff --git a/flask_security/datastore.py b/flask_security/datastore.py index 5275d97..4b1a17b 100644 --- a/flask_security/datastore.py +++ b/flask_security/datastore.py @@ -92,6 +92,7 @@ class UserDatastore(object): username = kwargs.get('username', None) email = kwargs.get('email', None) password = kwargs.get('password', None) + kwargs.setdefault('active', True) if username is None and email is None: raise security.UserCreationError(