Open kiza054 opened 5 years ago
What is the structure of your user model?
do you have a constructor? like:
# New instance
def __init__(self, username, email, password, active):
self.user = username
self.email = email
self.password = password
self.active = active
hi dan, i'm using a class which defines a table inside my database
class User(db.Model, UserMixin):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(50), nullable=False, unique=True)
password = db.Column(db.String(255), nullable=False, server_default='')
active = db.Column(db.Boolean(), nullable=False, server_default='0')
email = db.Column(db.String(255), nullable=False, unique=True)
confirmed_at = db.Column(db.DateTime())
i also have the adapters used within it.
db_adapter = SQLAlchemyAdapter(db, User)
user_manager = UserManager(db_adapter, app)
What is the structure of your user model?
do you have a constructor? like:
# New instance def __init__(self, username, email, password, active): self.user = username self.email = email self.password = password self.active = active
It all works up until i confirm the email then i get this error
I have received the following traceback:
Any help will be kindly appreciated