From 58b5004a84a5715de3e9827bd1b4ce37afc8d749 Mon Sep 17 00:00:00 2001 From: puni9869 Date: Tue, 6 Feb 2024 10:20:13 +0530 Subject: [PATCH] chore: general revert --- config/local.json | 2 +- server/auth/login.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/config/local.json b/config/local.json index b5e4c1d..f13e839 100644 --- a/config/local.json +++ b/config/local.json @@ -11,7 +11,7 @@ "database": { "type": "postgres", "host": "127.0.0.1", - "username": "punitinani", + "username": "puni9869", "password": "", "port": "5432", "databaseName": "pinmyblogs", diff --git a/server/auth/login.go b/server/auth/login.go index 5522d92..d01b3e2 100644 --- a/server/auth/login.go +++ b/server/auth/login.go @@ -19,7 +19,6 @@ func LoginPost(c *gin.Context) { c.JSON(http.StatusUnauthorized, gin.H{"error": "Authentication failed"}) return } - // Save the username in the session session.Set(userkey, username) if err := session.Save(); err != nil {