Browse Source

Fixed git service not getting LastActive correctly

master
Teknikode 9 months ago
parent
commit
829b773e71
2 changed files with 4 additions and 1 deletions
  1. 1
    1
      GitService/GiteaService.cs
  2. 3
    0
      Utilities/CookieHelper.cs

+ 1
- 1
GitService/GiteaService.cs View File

@@ -136,7 +136,7 @@ namespace Teknik.GitService
WHERE gogs.user.login_name = {0}";
var results = mySQL.Query(sql, new object[] { email });

DateTime lastActive = new DateTime(1, 0, 0);
DateTime lastActive = new DateTime(1900, 1, 1);
if (results != null && results.Any())
{
var result = results.First();

+ 3
- 0
Utilities/CookieHelper.cs View File

@@ -8,6 +8,9 @@ namespace Teknik.Utilities
{
public static string GenerateCookieDomain(string domain, bool local, bool dev)
{
#if DEBUG
return null;
#endif
if (local) // localhost
{
return null;

Loading…
Cancel
Save