Skip to content

Commit

Permalink
chore(api): use proper jwt package and change returned status from ch…
Browse files Browse the repository at this point in the history
…ange password
  • Loading branch information
unkn0wn-root committed Jan 2, 2025
1 parent ce514a9 commit 8e326c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/auth/handlers/auth_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http"
"time"

"github.com/golang-jwt/jwt"
"github.com/golang-jwt/jwt/v4"
apierr "github.com/unkn0wn-root/terraster/internal/auth"
"github.com/unkn0wn-root/terraster/internal/auth/models"
"github.com/unkn0wn-root/terraster/internal/auth/service"
Expand Down Expand Up @@ -249,5 +249,5 @@ func (h *AuthHandler) ChangePassword(w http.ResponseWriter, r *http.Request) {
return
}

w.WriteHeader(http.StatusNoContent)
w.WriteHeader(http.StatusCreated)
}

0 comments on commit 8e326c5

Please sign in to comment.