(msgKey string, err error)
| 538 | } |
| 539 | |
| 540 | func wrapLoginErr(msgKey string, err error) error { |
| 541 | if err != nil { |
| 542 | return err |
| 543 | } |
| 544 | if msgKey == "ErrAuth" || msgKey == "ErrEntrance" { |
| 545 | return buserr.New(msgKey) |
| 546 | } |
| 547 | return nil |
| 548 | } |
| 549 | |
| 550 | func loadEntranceFromRequest(c *gin.Context) string { |
| 551 | entranceItem := c.Request.Header.Get("EntranceCode") |
no outgoing calls
no test coverage detected