1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

Fixed git service not getting LastActive correctly

This commit is contained in:
Uncled1023 2019-01-28 00:26:09 -08:00
parent 430a77f5ac
commit 829b773e71
2 changed files with 4 additions and 1 deletions

View File

@ -136,7 +136,7 @@ namespace Teknik.GitService
WHERE gogs.user.login_name = {0}"; WHERE gogs.user.login_name = {0}";
var results = mySQL.Query(sql, new object[] { email }); 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()) if (results != null && results.Any())
{ {
var result = results.First(); var result = results.First();

View File

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