File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -72,8 +72,8 @@ import (
72
72
// AppIDToAppSecret is used to get appsecret throw appid
73
73
type AppIDToAppSecret func (string ) string
74
74
75
- // APIBaiscAuth use the basic appid/appkey as the AppIdToAppSecret
76
- func APIBaiscAuth (appid , appkey string ) beego.FilterFunc {
75
+ // APIBasicAuth use the basic appid/appkey as the AppIdToAppSecret
76
+ func APIBasicAuth (appid , appkey string ) beego.FilterFunc {
77
77
ft := func (aid string ) string {
78
78
if aid == appid {
79
79
return appkey
@@ -83,6 +83,11 @@ func APIBaiscAuth(appid, appkey string) beego.FilterFunc {
83
83
return APISecretAuth (ft , 300 )
84
84
}
85
85
86
+ // APIBaiscAuth calls APIBasicAuth for previous callers
87
+ func APIBaiscAuth (appid , appkey string ) beego.FilterFunc {
88
+ return APIBaiscAuth (appid , appkey )
89
+ }
90
+
86
91
// APISecretAuth use AppIdToAppSecret verify and
87
92
func APISecretAuth (f AppIDToAppSecret , timeout int ) beego.FilterFunc {
88
93
return func (ctx * context.Context ) {
You can’t perform that action at this time.
0 commit comments