1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 08:50:56 +00:00

Fix basic auth plugin example.

NewBasicAuthenticator requires passing a second argument for Realm.
This commit is contained in:
Kirill Zdornyy 2014-03-02 17:44:23 -08:00 committed by asta.xie
parent 9f3af59250
commit d49984d47d

View File

@ -8,7 +8,7 @@ package auth
// }
// return false
// }
// authPlugin := auth.NewBasicAuthenticator(SecretAuth)
// authPlugin := auth.NewBasicAuthenticator(SecretAuth, "My Realm")
// beego.AddFilter("*","AfterStatic",authPlugin)
import (