More work on auth system I guess, still no motivation though
Some checks failed
/ test (push) Has been cancelled

This commit is contained in:
Melody Becker 2025-02-28 15:01:12 +01:00
parent 402932602d
commit ab3051fa78
Signed by: mstar
SSH key fingerprint: SHA256:9VAo09aaVNTWKzPW7Hq2LW+ox9OdwmTSHRoD4mlz1yI
4 changed files with 132 additions and 12 deletions

View file

@ -1,11 +1,17 @@
package auth
import "gorm.io/gorm"
import (
"git.mstar.dev/mstar/linstrom/storage"
"gorm.io/gorm"
)
type Authentication struct {
// For when in-depth access is needed
db *gorm.DB
// Primary method to acquire account data
store *storage.Storage
}
func NewAuth(db *gorm.DB) *Authentication {
return &Authentication{db}
func NewAuth(db *gorm.DB, store *storage.Storage) *Authentication {
return &Authentication{db, store}
}