mirror of https://github.com/gophish/gophish
Changed to indent JSON
Changed default username to admin (instead of jordan)pull/24/head
parent
c60b9d584b
commit
6802fe6800
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
2
db/db.go
2
db/db.go
|
@ -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",
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue