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 + ''' - ''' + str(i.username) + '''  +  ''' + str(i.first_name) + ' ' + str(i.last_name) + '''   ''' + str(i.active) + '''   ''' + str(i.dmr_ids) + '''  @@ -1154,7 +1154,7 @@ def hbnet_web_service(): if i.initial_admin_approved == False: wait_list = wait_list+ ''' - ''' + str(i.username) + '''  +    ''' + str(i.first_name) + ' ' + str(i.last_name) + '''   ''' + str(i.active) + '''   ''' + str(i.dmr_ids) + '''  @@ -1300,34 +1300,39 @@ def hbnet_web_service(): u_role = UserRoles.query.filter_by(user_id=u.id).first() if u_role.role_id == 2: # Link to promote to Admin - role_link = '''

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 IDPassphrase
+ + + + + + + + + +''' for i in id_dict.items(): ## print(i[1]) if isinstance(i[1], int) == True: passphrase_list = passphrase_list + ''' - + \n''' if i[1] == '': passphrase_list = passphrase_list + ''' - + \n''' if not isinstance(i[1], int) == True and i[1] != '': passphrase_list = passphrase_list + ''' - + \n''' @@ -1361,21 +1366,21 @@ def hbnet_web_service(): - @@ -6314,7 +6319,7 @@ Name: ''' + p.name + '''  -  Port: ''' + str( dev_lst.append(i.callsign) content = content + ''' - + 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 %} -

{{ e }}

+   + +

{{ e }}

{% endfor %} {% endif %} diff --git a/web/templates/flask_user_layout.html b/web/templates/flask_user_layout.html index 0190f8d..9b06028 100644 --- a/web/templates/flask_user_layout.html +++ b/web/templates/flask_user_layout.html @@ -160,7 +160,7 @@

{% endblock %}
DMR IDPassphrase
''' + str(i[0]) + ''' ''' + str(gen_passphrase(int(i[0]))) + '''
''' + str(i[0]) + ''' ''' + legacy_passphrase + '''
''' + str(i[0]) + ''' ''' + str(i[1]) + '''
  -

Update from RadioID.net

+

 
 ''' + confirm_link + ''' 

Email confirmed: ''' + str(u.email_confirmed_at.strftime(time_format)) + '''

  -

Send user an email

+

 
 ''' + role_link + ''' 
 

View user auth log

+
 

 
  -

Deleted user

+

 
 ''' + i.lat + '''   ''' + i.lon + '''   ''' + str(i.time.strftime(time_format)) + '''