diff options
| author | Horus3 | 2015-02-27 04:02:15 +0100 |
|---|---|---|
| committer | Horus3 | 2015-02-27 04:02:15 +0100 |
| commit | 6837ddf68f13a1633ea868ab55d71389ca5bc175 (patch) | |
| tree | 94fbfabdfa4506eb1b2dbf0067a7c0fa87f294c9 /app/test.go | |
| parent | 60767a3ea8190d3f070f3aae86c2d72ffb10cfd6 (diff) | |
| download | statuspage-6837ddf68f13a1633ea868ab55d71389ca5bc175.tar.gz | |
Version 0.2. Sends E-Mails now. Also sticky post on index page to quickly inform people. Concatenated all CSS and JavaScript files.
Diffstat (limited to 'app/test.go')
| -rw-r--r-- | app/test.go | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/app/test.go b/app/test.go index 419cd7f..a323b31 100644 --- a/app/test.go +++ b/app/test.go @@ -10,6 +10,8 @@ func insertHost() { Db.Create(&h) h = Host{Host: "iamfabulousadsfadfdsf.de", Url: "https://iamfabulousadsfadfdsf.de/", Monitored: true, Private: false, Class: "info"} Db.Create(&h) + h = Host{Host: "git.iamfabulous.de", Url: "https://git.iamfabulous.de", Monitored: true, Private: true, Class: "info"} + Db.Create(&h) // c := pool.Get() // defer c.Close() @@ -28,6 +30,18 @@ func insertAdmin() { if err != nil { log.Panic(err) } - u := User{Name: "admin", Email: "root@localhost", Password: password} + u := User{Name: "admin", Email: "raspi@dns.iamfabulous.de", Password: password} Db.Create(&u) } + +func testMail() { + u := []User{} + h := []Host{} + Db.Find(&u) + Db.Find(&h) + SendEmail(u, h) +} + +func t() { + log.Println(VerifyPassword("password", "$2a$10$5NRfN3E05of0oF53zHvfy.xcseY7DjlqEylMYDrF69a9Y/7L96JEW")) +} |
