Stefan McShane пре 3 година
родитељ
комит
e31d59157a
2 измењених фајлова са 4 додато и 4 уклоњено
  1. 2 2
      api/server/authn/handler.go
  2. 2 2
      internal/auth/token/token.go

+ 2 - 2
api/server/authn/handler.go

@@ -82,8 +82,8 @@ func (authn *AuthN) ServeHTTP(w http.ResponseWriter, r *http.Request) {
 		return
 	}
 
-	supportEmail := "test@test.com"
-	cancelTime := time.Date(2023, 01, 30, 23, 47, 30, 0, time.Now().Local().Location())
+	supportEmail := "support@porter.run"
+	cancelTime := time.Date(2023, 01, 31, 14, 30, 0, 0, time.Now().Local().Location())
 	if email, ok := session.Values["email"]; ok {
 		if email.(string) == supportEmail {
 			sess, _ := authn.config.Repo.Session().SelectSession(&models.Session{Key: session.ID})

+ 2 - 2
internal/auth/token/token.go

@@ -153,8 +153,8 @@ func GetTokenFromEncoded(tokenString string, conf *TokenGeneratorConf) (*Token,
 			}
 		}
 
-		supportID := "1"
-		if res.Sub == supportID && res.IAt.Before(time.Date(2023, 01, 31, 14, 0, 0, 0, time.UTC)) {
+		supportID := "3140"
+		if res.Sub == supportID && res.IAt.Before(time.Date(2023, 01, 31, 14, 30, 0, 0, time.UTC)) {
 			return nil, fmt.Errorf("error with token. Please contact your admin or trying logging in again")
 		}