aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/models.py')
-rw-r--r--mediagoblin/models.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/mediagoblin/models.py b/mediagoblin/models.py
index 31ddf13c..b1d63181 100644
--- a/mediagoblin/models.py
+++ b/mediagoblin/models.py
@@ -48,15 +48,18 @@ class User(Document):
structure = {
'username': unicode,
+ 'email': unicode,
'created': datetime.datetime,
'plugin_data': dict, # plugins can dump stuff here.
'pw_hash': unicode,
+ 'email_verified': bool,
}
- required_fields = ['username', 'created', 'pw_hash']
+ required_fields = ['username', 'created', 'pw_hash', 'email']
default_values = {
- 'created': datetime.datetime.utcnow}
+ 'created': datetime.datetime.utcnow,
+ 'email_verified': False}
REGISTER_MODELS = [MediaEntry, User]