From a321cff6eab08bdae872b4c6db5bbdf233bbb63c Mon Sep 17 00:00:00 2001 From: Paul Bienkowski Date: Thu, 25 Nov 2021 12:21:50 +0100 Subject: [PATCH] Do not blindly change usernames, track paths will break --- api/obs/api/routes/login.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/obs/api/routes/login.py b/api/obs/api/routes/login.py index 73994f7..07d6682 100644 --- a/api/obs/api/routes/login.py +++ b/api/obs/api/routes/login.py @@ -121,9 +121,9 @@ async def login_redirect(req): log.debug("Updating user (id: %s) email from auth system.", user.id) user.email = email - if preferred_username != user.username: - log.debug("Updating user (id: %s) username from auth system.", user.id) - user.username = preferred_username + # if preferred_username != user.username: + # log.debug("Updating user (id: %s) username from auth system.", user.id) + # user.username = preferred_username await req.ctx.db.commit()