AdminLogin delegates to the transport-agnostic service layer and applies the admin session cookie side-effect. Resolver is a thin transport adapter. Permissions: none
(ctx context.Context, params *model.AdminLoginRequest)
| 13 | // |
| 14 | // Permissions: none |
| 15 | func (g *graphqlProvider) AdminLogin(ctx context.Context, params *model.AdminLoginRequest) (*model.Response, error) { |
| 16 | gc, _ := utils.GinContextFromContext(ctx) |
| 17 | res, side, err := g.adminService().AdminLogin(ctx, service.MetaFromGin(gc), params) |
| 18 | if err != nil { |
| 19 | return nil, err |
| 20 | } |
| 21 | service.ApplyToGin(gc, side) |
| 22 | return res, nil |
| 23 | } |
nothing calls this directly
no test coverage detected