fix honk init user creation
This commit is contained in:
parent
a9e5af0d1e
commit
9f303324e4
|
@ -1,5 +1,9 @@
|
||||||
changelog
|
changelog
|
||||||
|
|
||||||
|
=== 0.9.5 Emergency Ejection
|
||||||
|
|
||||||
|
+ Fix honk init user creation.
|
||||||
|
|
||||||
=== 0.9.4 Collegiate Colloquialism
|
=== 0.9.4 Collegiate Colloquialism
|
||||||
|
|
||||||
+ Add validation to some more user inputs to prevent mistakes.
|
+ Add validation to some more user inputs to prevent mistakes.
|
||||||
|
|
5
util.go
5
util.go
|
@ -114,12 +114,13 @@ func initdb() {
|
||||||
|
|
||||||
prepareStatements(db)
|
prepareStatements(db)
|
||||||
|
|
||||||
err = createserveruser(db)
|
err = createuser(db, r)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Print(err)
|
log.Print(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
err = createuser(db, r)
|
// must came later or user above will have negative id
|
||||||
|
err = createserveruser(db)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Print(err)
|
log.Print(err)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue