Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Fix minor auth related logging
天舟09b8179037a5
diff --git a/frontend/src/store/modules/auth.ts b/frontend/src/store/modules/auth.tsindex cacf997a80..647d394645 100644--- a/frontend/src/store/modules/auth.ts+++ b/frontend/src/store/modules/auth.ts@@ -117,7 +117,6 @@ const actions = {async logout({ commit }: any) {removeCookie("user");- console.log("logout:", getIntCookie("user"));commit("setCurrentUser", unknown("PRINCIPAL") as Principal);return unknown("PRINCIPAL") as Principal;},diff --git a/server/jwt.go b/server/jwt.goindex b82a4d4600..12ad2ecd62 100644--- a/server/jwt.go+++ b/server/jwt.go@@ -196,9 +196,9 @@ func JWTMiddleware(l *zap.Logger, p api.PrincipalService, next echo.HandlerFunc,user, err := p.FindPrincipal(context.Background(), principalFind)if err != nil {if bytebase.ErrorCode(err) == bytebase.ENOTFOUND {- return echo.NewHTTPError(http.StatusUnauthorized, fmt.Sprintf("Failed to find to refresh expired token. User ID %d", principalId))+ return echo.NewHTTPError(http.StatusUnauthorized, fmt.Sprintf("Failed to find user ID: %d", principalId))}- return echo.NewHTTPError(http.StatusInternalServerError, fmt.Sprintf("Server error to find user to refresh expired token. User ID %d", principalId)).SetInternal(err)+ return echo.NewHTTPError(http.StatusInternalServerError, fmt.Sprintf("Server error to find user ID: %d", principalId)).SetInternal(err)}if generateToken {