Compare commits

..

No commits in common. "15abdd40810ab96bb6cf88b30bcae0347c81978f" and "99ce47e9e52adf24100b5f4b5c8ada566b4e1d3d" have entirely different histories.

5 changed files with 0 additions and 9 deletions

View File

@ -231,10 +231,6 @@ func (db *T) SetSessionUser(uuid string, userID int) (err error) { // {{{
}
return
} // }}}
func (db *T) UpdateUserTime(userID int) (err error) {// {{{
_, err = db.Conn.Exec(`UPDATE _webservice.user SET last_login=NOW() WHERE id=$1`, userID)
return
}// }}}
func (db *T) CreateUser(username, password, name string) (err error) {// {{{
_, err = db.Conn.Exec(`

1
go.sum
View File

@ -1,6 +1,5 @@
git.gibonuddevalla.se/go/dbschema v1.2.0 h1:VhHFfkn/4UnlGy2Ax35Po8vb8E/x6DggtvNUKlGGQyY=
git.gibonuddevalla.se/go/dbschema v1.2.0/go.mod h1:BNw3q/574nXbGoeWyK+tLhRfggVkw2j2aXZzrBKC3ig=
git.gibonuddevalla.se/go/dbschema v1.3.0/go.mod h1:BNw3q/574nXbGoeWyK+tLhRfggVkw2j2aXZzrBKC3ig=
github.com/go-sql-driver/mysql v1.6.0 h1:BCTh4TKNUYmOmMUcQ3IipzF5prigylS7XXjEkfCHuOE=
github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU=

1
pkg.go
View File

@ -207,7 +207,6 @@ func (service *Service) Register(path string, requireSession, requireAuthenticat
}
}
service.logger.Info("webserver", "op", "request", "path", r.URL.String())
handler(w, r, sess)
})
} // }}}

View File

@ -118,7 +118,6 @@ func (service *Service) sessionAuthenticate(w http.ResponseWriter, r *http.Reque
service.errorHandler(err, "001-A003", w)
return
}
service.Db.UpdateUserTime(userID)
}
authResp, _ := json.Marshal(authResponse)

View File

@ -14,6 +14,4 @@ type T struct {
UserID int `db:"user_id"`
Username string
Name string
ApplicationData any
}