MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / wrapLoginErr

Function wrapLoginErr

core/app/api/v2/auth.go:540–548  ·  view source on GitHub ↗
(msgKey string, err error)

Source from the content-addressed store, hash-verified

538}
539
540func 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
550func loadEntranceFromRequest(c *gin.Context) string {
551 entranceItem := c.Request.Header.Get("EntranceCode")

Callers 3

LoginMethod · 0.85
MFALoginMethod · 0.85
PasskeyFinishLoginMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected