Reintroduce New Member rank

Fixes #183
This commit is contained in:
rubenwardy
2022-08-23 02:24:12 +01:00
parent 1d36f7d12b
commit b4208f2dda
8 changed files with 54 additions and 20 deletions

View File

@@ -59,7 +59,7 @@ def post_login(user: User, next_url):
def login_user_set_active(user: User, next_url: str = None, *args, **kwargs):
if user.rank == UserRank.NOT_JOINED and user.email is None:
user.rank = UserRank.MEMBER
user.rank = UserRank.NEW_MEMBER
user.notification_preferences = UserNotificationPreferences(user)
user.is_active = True
db.session.commit()