diff --git a/model/account.go b/model/account.go index cd2e70d..1caba91 100644 --- a/model/account.go +++ b/model/account.go @@ -40,7 +40,7 @@ func GetAccount(account string) (acc *Account, err error) { // CreateAccount - func CreateAccount(account, password string) (acc *Account, err error) { acc = &Account{} - err = x.Get(acc, `insert into "public"."account" ("account", "password", "ctime", "mtime") values ($1, $2, now(), now())`, account, password) + err = x.Get(acc, `insert into "public"."account" ("account", "password", "ctime", "mtime") values ($1, $2, now(), now()) returning *`, account, password) if err == sql.ErrNoRows { return nil, nil }