Changed to indent JSON

Changed default username to admin (instead of jordan)
This commit is contained in:
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 {
fmt.Println(err)
}
d, err := json.Marshal(cs)
d, err := json.MarshalIndent(cs, "", " ")
if err != nil {
fmt.Println(err)
}

View file

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