mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 05:54:19 +01:00
Adding email verification
This commit has some model changes. It could be difficult to upgrade to this commit.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user