mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 07:40:54 +00:00
Fix basic auth plugin example.
NewBasicAuthenticator requires passing a second argument for Realm.
This commit is contained in:
parent
9e3ebc88c4
commit
4befa1bc1b
@ -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