MCPcopy Create free account
hub / github.com/bytebase/bytebase / redactLoginResponse

Function redactLoginResponse

backend/api/v1/audit.go:795–807  ·  view source on GitHub ↗
(r *v1pb.LoginResponse)

Source from the content-addressed store, hash-verified

793}
794
795func redactLoginResponse(r *v1pb.LoginResponse) *v1pb.LoginResponse {
796 if r == nil {
797 return nil
798 }
799
800 n := &v1pb.LoginResponse{
801 RequireResetPassword: r.RequireResetPassword,
802 }
803 if r.User != nil {
804 n.User = redactUser(r.User)
805 }
806 return n
807}
808
809func needAudit(ctx context.Context) bool {
810 authCtx, ok := common.GetAuthContextFromContext(ctx)

Callers 1

getResponseStringFunction · 0.85

Calls 1

redactUserFunction · 0.85

Tested by

no test coverage detected