Browse Source

don't remove loginToken in the install-path (the db is not there then)

master
Stefan Naumann 2 weeks ago
parent
commit
b375d3884a
  1. 11
      main.go

11
main.go

@ -158,14 +158,15 @@ func main() {
if cfg.Install == false {
Console.Log ( "Setting up build workers" )
build.SetupWorkerThreads ( &cfg, db );
}
if cfg.LoginTokenInvalidate == true {
db.Where("type = ?", "login").Delete ( &core.LoginToken{} )
} else {
db.Where ( "type = ? AND (step != ? OR expires_at < ?)", "login", "fin", time.Now() ).Delete( &core.LoginToken{} );
if cfg.LoginTokenInvalidate == true {
db.Where("type = ?", "login").Delete ( &core.LoginToken{} )
} else {
db.Where ( "type = ? AND (step != ? OR expires_at < ?)", "login", "fin", time.Now() ).Delete( &core.LoginToken{} );
}
}
Console.Log ( "Starting", cfg.AppTitle )
// start eh web server and hand everything over to it

Loading…
Cancel
Save