Commit 4befa1bc authored by Kirill Zdornyy's avatar Kirill Zdornyy

Fix basic auth plugin example.

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