Do not blindly change usernames, track paths will break
This commit is contained in:
parent
49101489fe
commit
a321cff6ea
|
@ -121,9 +121,9 @@ async def login_redirect(req):
|
||||||
log.debug("Updating user (id: %s) email from auth system.", user.id)
|
log.debug("Updating user (id: %s) email from auth system.", user.id)
|
||||||
user.email = email
|
user.email = email
|
||||||
|
|
||||||
if preferred_username != user.username:
|
# if preferred_username != user.username:
|
||||||
log.debug("Updating user (id: %s) username from auth system.", user.id)
|
# log.debug("Updating user (id: %s) username from auth system.", user.id)
|
||||||
user.username = preferred_username
|
# user.username = preferred_username
|
||||||
|
|
||||||
await req.ctx.db.commit()
|
await req.ctx.db.commit()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue