1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-23 05:00:50 +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
parent 9e3ebc88c4
commit 4befa1bc1b

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 (