mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 18:00:49 +00:00
Fix basic auth plugin example.
NewBasicAuthenticator requires passing a second argument for Realm.
This commit is contained in:
parent
9f3af59250
commit
d49984d47d
@ -8,7 +8,7 @@ package auth
|
||||
// }
|
||||
// return false
|
||||
// }
|
||||
// authPlugin := auth.NewBasicAuthenticator(SecretAuth)
|
||||
// authPlugin := auth.NewBasicAuthenticator(SecretAuth, "My Realm")
|
||||
// beego.AddFilter("*","AfterStatic",authPlugin)
|
||||
|
||||
import (
|
||||
|
Loading…
Reference in New Issue
Block a user