Authenticate Subsonic API calls using the DB
This commit is contained in:
+2
-1
@@ -7,7 +7,8 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
ErrNotFound = errors.New("data not found")
|
||||
ErrNotFound = errors.New("data not found")
|
||||
ErrInvalidAuth = errors.New("invalid authentication")
|
||||
)
|
||||
|
||||
// Filters use the same operators as Beego ORM: See https://beego.me/docs/mvc/model/query.md#operators
|
||||
|
||||
@@ -21,4 +21,5 @@ type UserRepository interface {
|
||||
Put(*User) error
|
||||
FindByUsername(username string) (*User, error)
|
||||
UpdateLastLoginAt(id string) error
|
||||
UpdateLastAccessAt(id string) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user