Implement initial login functionality
This commit is contained in:
parent
a3bd0db78c
commit
3aa79b0d23
36 changed files with 908 additions and 70 deletions
23
internal/dis/component/auth/auth.go
Normal file
23
internal/dis/component/auth/auth.go
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
package auth
|
||||
|
||||
import (
|
||||
"sync"
|
||||
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/sql"
|
||||
"github.com/gorilla/sessions"
|
||||
)
|
||||
|
||||
type Auth struct {
|
||||
component.Base
|
||||
Dependencies struct {
|
||||
SQL *sql.SQL
|
||||
}
|
||||
|
||||
storeOnce sync.Once
|
||||
store sessions.Store
|
||||
}
|
||||
|
||||
var (
|
||||
_ component.Routeable = (*Auth)(nil)
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue