This commit is contained in:
2024-06-01 16:00:14 -07:00
parent 8b2d298488
commit 635f2650e9
17 changed files with 283 additions and 40 deletions

View File

@@ -23,8 +23,6 @@ type StoreParams struct {
}
type Store struct {
dbdir string
dbfn string
db *gorm.DB
logger *logger.Logger
log *zerolog.Logger

View File

@@ -110,7 +110,6 @@ func (s *Store) LogSuccessfulAuth(UserID string, r *http.Request) {
}
s.db.Model(u).Update("LastSeen", now)
//s.db.Model(u).Update("LastSeenIP", FIXME)
}
func (s *Store) AuthenticateUser(username, password, rootPasswordHash string, r *http.Request) (bool, *User, error) {