aboutsummaryrefslogtreecommitdiff
path: root/src/web/models
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2018-04-04 23:24:54 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2018-04-04 23:24:54 +0200
commitef09843b60ee565d270cf9575a9cfb420dcf2a0f (patch)
tree22fc76776fa0e8ccf407e289a176268123ba294d /src/web/models
parentTypo. (diff)
downloadnewspipe-ef09843b60ee565d270cf9575a9cfb420dcf2a0f.tar.gz
newspipe-ef09843b60ee565d270cf9575a9cfb420dcf2a0f.tar.bz2
newspipe-ef09843b60ee565d270cf9575a9cfb420dcf2a0f.zip
Removed email field.
Diffstat (limited to 'src/web/models')
-rw-r--r--src/web/models/user.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/web/models/user.py b/src/web/models/user.py
index 460958e0..e0f86328 100644
--- a/src/web/models/user.py
+++ b/src/web/models/user.py
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# newspipe - A Web based news aggregator.
-# Copyright (C) 2010-2016 Cédric Bonhomme - https://www.cedricbonhomme.org
+# Copyright (C) 2010-2018 Cédric Bonhomme - https://www.cedricbonhomme.org
#
-# For more information : https://github.com/Newspipe/Newspipe
+# For more information : https://github.com/newspipe/newspipe
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@@ -46,7 +46,6 @@ class User(db.Model, UserMixin, RightMixin):
"""
id = db.Column(db.Integer, primary_key=True)
nickname = db.Column(db.String(), unique=True)
- email = db.Column(db.String(254), index=True, unique=True)
pwdhash = db.Column(db.String())
automatic_crawling = db.Column(db.Boolean(), default=True)
@@ -74,7 +73,7 @@ class User(db.Model, UserMixin, RightMixin):
@staticmethod
def _fields_base_write():
- return {'login', 'password', 'email'}
+ return {'login', 'password'}
@staticmethod
def _fields_base_read():
bgstack15