fix(auth): case-sensitive logins not updating authtokens (#778)

This commit is contained in:
ThowZzy
2024-05-28 20:42:26 +02:00
committed by GitHub
parent 7a5e8d69bf
commit 2bd125d9a5

View File

@@ -325,7 +325,7 @@ authRoutes.post('/jellyfin', async (req, res, next) => {
await userRepository.save(user);
}
// User already exists, let's update their information
else if (body.username === user?.jellyfinUsername) {
else if (account.User.Id === user?.jellyfinUserId) {
logger.info(
`Found matching ${
settings.main.mediaServerType === MediaServerType.JELLYFIN