impl oauth
This commit is contained in:
@@ -14,6 +14,7 @@ var (
|
||||
StoreUser string
|
||||
StorePass string
|
||||
Root string
|
||||
OAuth string
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -31,6 +32,7 @@ func Refresh() {
|
||||
as.Append(args.STRING, "storeaddr", "addr of store", "")
|
||||
as.Append(args.STRING, "storeuser", "user of store", "")
|
||||
as.Append(args.STRING, "storepass", "pass of store", "")
|
||||
as.Append(args.STRING, "oauth", "url for boauthz", "")
|
||||
as.Append(args.STRING, "root", "root of static files", "./public")
|
||||
if err := as.Parse(); err != nil {
|
||||
panic(err)
|
||||
@@ -42,4 +44,5 @@ func Refresh() {
|
||||
StoreUser = as.Get("storeuser").GetString()
|
||||
StorePass = as.Get("storepass").GetString()
|
||||
Root = as.Get("root").GetString()
|
||||
OAuth = as.Get("oauth").GetString()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user