mirror of
https://github.com/gophish/gophish
synced 2024-11-15 00:37:14 +00:00
Changed to indent JSON
Changed default username to admin (instead of jordan)
This commit is contained in:
parent
c60b9d584b
commit
6802fe6800
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
2
db/db.go
2
db/db.go
|
@ -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",
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue