Adding email verification

This commit has some model changes. It could be difficult to upgrade to
this commit.
This commit is contained in:
CodeKevin
2016-02-18 02:30:05 -05:00
parent 770d7f5809
commit 4ae11cf7fe
18 changed files with 380 additions and 121 deletions

View File

@@ -246,7 +246,9 @@ if __name__ == '__main__':
name = gen_name()
if name not in used:
used.append(name)
db.session.add(Teams(name, name.lower() + gen_email(), 'password'))
team = Teams(name, name.lower() + gen_email(), 'password')
team.verified = True
db.session.add(team)
count += 1
db.session.commit()