summaryrefslogtreecommitdiff
path: root/app/test.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/test.go')
-rw-r--r--app/test.go16
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"))
+}