xingzai 2 лет назад
Родитель
Сommit
895710fcb3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      controllers/base_auth.go

+ 1 - 1
controllers/base_auth.go

@@ -39,7 +39,7 @@ func (this *BaseAuthController) Prepare() {
 	if method != "HEAD" {
 		if method == "POST" || method == "GET" {
 			authorization := this.Ctx.Input.Header("Authorization")
-			inviteCompany := this.Ctx.Input.Header("InviteCompany")
+			inviteCompany := this.Ctx.Input.Header("From")
 			if authorization == "" {
 				authorization = this.GetString("Authorization")
 			}