aboutsummaryrefslogtreecommitdiffstats
path: root/store.go
diff options
context:
space:
mode:
Diffstat (limited to 'store.go')
-rw-r--r--store.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/store.go b/store.go
index 1f0ca76..1c8348f 100644
--- a/store.go
+++ b/store.go
@@ -28,8 +28,8 @@ type PgStore struct {
sessionCache map[string]*Session
}
-func NewPgStore() *PgStore {
- db, err := sql.Open("postgres", "postgres://auth_master:pass@localhost/authdb")
+func NewPgStore(database string) *PgStore {
+ db, err := sql.Open("postgres", database)
if err != nil {
log.Panic(err)
}