(r *v1pb.LoginResponse)
| 793 | } |
| 794 | |
| 795 | func 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 | |
| 809 | func needAudit(ctx context.Context) bool { |
| 810 | authCtx, ok := common.GetAuthContextFromContext(ctx) |
no test coverage detected