d49984d4 by Kirill Zdornyy Committed by asta.xie

Fix basic auth plugin example.

NewBasicAuthenticator requires passing a second argument for Realm.
1 parent 9f3af592
...@@ -8,7 +8,7 @@ package auth ...@@ -8,7 +8,7 @@ package auth
8 // } 8 // }
9 // return false 9 // return false
10 // } 10 // }
11 // authPlugin := auth.NewBasicAuthenticator(SecretAuth) 11 // authPlugin := auth.NewBasicAuthenticator(SecretAuth, "My Realm")
12 // beego.AddFilter("*","AfterStatic",authPlugin) 12 // beego.AddFilter("*","AfterStatic",authPlugin)
13 13
14 import ( 14 import (
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!