diff --git a/web/app.py b/web/app.py index 4eca4f3..7aae46f 100644 --- a/web/app.py +++ b/web/app.py @@ -158,7 +158,7 @@ def hbnet_web_service(): username = db.Column(db.String(100,), nullable=False, unique=True) password = db.Column(db.String(255), nullable=False, server_default='') email_confirmed_at = db.Column(db.DateTime()) - email = db.Column(db.String(255), nullable=True, unique=True, server_default='') + email = db.Column(db.String(255), nullable=True, unique=False, server_default='') # User information first_name = db.Column(db.String(100), nullable=False, server_default='') @@ -1117,7 +1117,7 @@ def hbnet_web_service(): for i in u: u_list = u_list + '''
Give Admin role: ''' + str(u.username) + '''
\n''' + role_link = '''\n''' if u_role.role_id == 1: # Link to promote to User - role_link = '''Revert to User role: ''' + str(u.username) + '''
\n''' + role_link = '''\n''' id_dict = ast.literal_eval(u.dmr_ids) passphrase_list = ''' -DMR ID | -Passphrase | -
DMR ID | +Passphrase | +|||
---|---|---|---|---|
''' + str(i[0]) + ''' | +''' + str(gen_passphrase(int(i[0]))) + ''' | |||
''' + str(i[0]) + ''' | +''' + legacy_passphrase + ''' | |||
''' + str(i[0]) + ''' | +''' + str(i[1]) + ''' | |||
- + | ''' + confirm_link + ''' Email confirmed: ''' + str(u.email_confirmed_at.strftime(time_format)) + ''' |
|||
- + | ''' + role_link + ''' | |||
+ | - + | |||
+ | ''' + i.lat + ''' | ''' + i.lon + ''' | ''' + str(i.time.strftime(time_format)) + ''' | diff --git a/web/templates/flask_user/register.html b/web/templates/flask_user/register.html index caf5cbf..23392e1 100644 --- a/web/templates/flask_user/register.html +++ b/web/templates/flask_user/register.html @@ -38,7 +38,9 @@ By registering, you acknowledge that you agree to the Terms of Use. {{ field(class_='form-control', tabindex=210) }} {% if field.errors %} {% for e in field.errors %} -