diff options
| author | David Ullmer <daullmer@gmail.com> | 2021-02-11 13:48:58 +0100 |
|---|---|---|
| committer | David Ullmer <daullmer@gmail.com> | 2021-02-11 13:48:58 +0100 |
| commit | ab5fb1b1f201795041a960c74b540c768fe8d08b (patch) | |
| tree | 579964cea4db7e04299084d555e493b9dc74ca54 /Emby.Server.Implementations/Session/SessionManager.cs | |
| parent | ae57ed4ac70eda1046c86e40e41b9683b2115f59 (diff) | |
| parent | d490c1c2bcb2852c9159e8578bc7a60e086e4202 (diff) | |
Merge branch 'master' of github.com:jellyfin/jellyfin into nfo-watched
Diffstat (limited to 'Emby.Server.Implementations/Session/SessionManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Session/SessionManager.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Session/SessionManager.cs b/Emby.Server.Implementations/Session/SessionManager.cs index 4e026a0e6..10e28c33a 100644 --- a/Emby.Server.Implementations/Session/SessionManager.cs +++ b/Emby.Server.Implementations/Session/SessionManager.cs @@ -1456,7 +1456,12 @@ namespace Emby.Server.Implementations.Session throw new SecurityException("Unknown quick connect token"); } - request.UserId = result.Items[0].UserId; + var info = result.Items[0]; + request.UserId = info.UserId; + + // There's no need to keep the quick connect token in the database, as AuthenticateNewSessionInternal() issues a long lived token. + _authRepo.Delete(info); + return AuthenticateNewSessionInternal(request, false); } |
