Changed to indent JSON

Changed default username to admin (instead of jordan)
pull/24/head
Jordan 2014-01-30 23:11:06 -06:00
parent c60b9d584b
commit 6802fe6800
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ func API_Campaigns(w http.ResponseWriter, r *http.Request) {
if err != nil { if err != nil {
fmt.Println(err) fmt.Println(err)
} }
d, err := json.Marshal(cs) d, err := json.MarshalIndent(cs, "", " ")
if err != nil { if err != nil {
fmt.Println(err) fmt.Println(err)
} }

View File

@ -42,7 +42,7 @@ func Setup() error {
} }
//Create the default user //Create the default user
init_user := models.User{ init_user := models.User{
Username: "jordan", Username: "admin",
Hash: "$2a$10$d4OtT.RkEOQn.iruVWIQ5u8CeV/85ZYF41y8wKeUwsAPqPNFvTccW", Hash: "$2a$10$d4OtT.RkEOQn.iruVWIQ5u8CeV/85ZYF41y8wKeUwsAPqPNFvTccW",
APIKey: "12345678901234567890123456789012", APIKey: "12345678901234567890123456789012",
} }