switch group to role

This commit is contained in:
deflax 2024-04-05 15:53:57 +03:00
parent 4bc158c28b
commit 8ee8025046
2 changed files with 1 additions and 3 deletions

View file

@ -80,8 +80,6 @@ class User(db.Model, UserMixin):
country = db.Column(db.String, default='BG')
phone = db.Column(db.String)
group = db.Column(db.String, default='User')
inv_items = db.relationship('Item', backref='owner', lazy='dynamic')
def __init__(self, **kwargs):

View file

@ -3,7 +3,7 @@
<div class="panel-body">
<p>
<b>Member Since:</b> {{ moment(current_user.member_since).fromNow() }}<br />
<b>Group:</b> {{ current_user.group }}<br />
<b>Role:</b> {{ current_user.role }}<br />
<b>2-Factor:</b> {{ current_user.twofactor }}<br />
<a href="/auth/change-password">Change Password</a>
</p>