Commit d49984d4 authored by Kirill Zdornyy's avatar Kirill Zdornyy Committed by asta.xie

Fix basic auth plugin example.

NewBasicAuthenticator requires passing a second argument for Realm.
parent 9f3af592
......@@ -8,7 +8,7 @@ package auth
// }
// return false
// }
// authPlugin := auth.NewBasicAuthenticator(SecretAuth)
// authPlugin := auth.NewBasicAuthenticator(SecretAuth, "My Realm")
// beego.AddFilter("*","AfterStatic",authPlugin)
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