diff options
| author | Horus3 | 2015-02-24 16:33:24 +0100 |
|---|---|---|
| committer | Horus3 | 2015-02-24 16:33:24 +0100 |
| commit | 8763022c77f0ad8edf6578962a524715d99e8d39 (patch) | |
| tree | c5b2557c56ebad2929cd02951b719aeff68b73ba /app/test.go | |
| parent | 70d080b69a1bce3125d8d0b83e23775880241763 (diff) | |
| download | statuspage-8763022c77f0ad8edf6578962a524715d99e8d39.tar.gz | |
Session storage. Add new jobs over Webpage. Improved makefile.
Diffstat (limited to 'app/test.go')
| -rw-r--r-- | app/test.go | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/app/test.go b/app/test.go index 3181eb4..331dad5 100644 --- a/app/test.go +++ b/app/test.go @@ -1,7 +1,8 @@ package main import ( -//"encoding/json" + //"encoding/json" + "log" ) func insertHost() { @@ -21,3 +22,12 @@ func insertHost() { c.Do("SET", cache_prefix, js) */ } + +func insertAdmin() { + password, err := HashPassword("password") + if err != nil { + log.Panic(err) + } + u := User{Name: "admin", Email: "root@localhost", Password: password} + Db.Create(&u) +} |
