[management] fix lastLogin on dashboard (#3725)

This commit is contained in:
Pascal Fischer
2025-04-23 15:54:49 +02:00
committed by GitHub
parent 197761ba4d
commit 986eb8c1e0
3 changed files with 25 additions and 6 deletions

View File

@@ -190,6 +190,9 @@ func TestAuthMiddleware_Handler(t *testing.T) {
func(ctx context.Context, userAuth nbcontext.UserAuth) error {
return nil
},
func(ctx context.Context, userAuth nbcontext.UserAuth) (*types.User, error) {
return &types.User{}, nil
},
)
handlerToTest := authMiddleware.Handler(nextHandler)
@@ -291,6 +294,9 @@ func TestAuthMiddleware_Handler_Child(t *testing.T) {
func(ctx context.Context, userAuth nbcontext.UserAuth) error {
return nil
},
func(ctx context.Context, userAuth nbcontext.UserAuth) (*types.User, error) {
return &types.User{}, nil
},
)
for _, tc := range tt {