mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
more small tweaks around the username/alias
This commit is contained in:
parent
9f7523d7c5
commit
3d2209d163
6 changed files with 23 additions and 7 deletions
|
@ -149,9 +149,10 @@ namespace Ombi.UI.Modules
|
|||
|
||||
protected bool LoggedIn => Context?.CurrentUser != null;
|
||||
|
||||
protected string Culture { get; set; }
|
||||
private string Culture { get; set; }
|
||||
protected const string CultureCookieName = "_culture";
|
||||
protected Response SetCookie()
|
||||
|
||||
private Response SetCookie()
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
|
@ -564,7 +564,7 @@ namespace Ombi.UI.Modules
|
|||
UserLogins.Insert(new UserLogins { UserId = userId, Type = UserType.PlexUser, LastLoggedIn = DateTime.UtcNow });
|
||||
Log.Debug("We are authenticated! Setting session.");
|
||||
// Add to the session (Used in the BaseModules)
|
||||
Session[SessionKeys.UsernameKey] = (string)username;
|
||||
Session[SessionKeys.UsernameKey] = username;
|
||||
Session[SessionKeys.ClientDateTimeOffsetKey] = dateTimeOffset;
|
||||
|
||||
var plexLocal = plexLocalUsers.FirstOrDefault(x => x.Username == username);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue