Skip to content

Commit

Permalink
chore: general revert
Browse files Browse the repository at this point in the history
  • Loading branch information
puni9869 committed Feb 6, 2024
1 parent 5dadbdb commit 58b5004
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion config/local.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"database": {
"type": "postgres",
"host": "127.0.0.1",
"username": "punitinani",
"username": "puni9869",
"password": "",
"port": "5432",
"databaseName": "pinmyblogs",
Expand Down
1 change: 0 additions & 1 deletion server/auth/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 58b5004

Please sign in to comment.