mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-18 21:07:44 +03:00
Some TODOs
This commit is contained in:
parent
2f3c9a7603
commit
afefd244eb
@ -14,6 +14,7 @@ func validate(controller ControllerInterface) {
|
|||||||
if beego.AppConfig.String("disableValidation") != "true" {
|
if beego.AppConfig.String("disableValidation") != "true" {
|
||||||
checkParameters(controller)
|
checkParameters(controller)
|
||||||
authenticate(controller)
|
authenticate(controller)
|
||||||
|
// TODO Validate version
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -29,7 +30,7 @@ func checkParameters(c ControllerInterface) {
|
|||||||
|
|
||||||
func authenticate(c ControllerInterface) {
|
func authenticate(c ControllerInterface) {
|
||||||
user := c.GetString("u")
|
user := c.GetString("u")
|
||||||
pass := c.GetString("p")
|
pass := c.GetString("p") // TODO Handle hex-encoded password
|
||||||
if (user != beego.AppConfig.String("user") || pass != beego.AppConfig.String("password")) {
|
if (user != beego.AppConfig.String("user") || pass != beego.AppConfig.String("password")) {
|
||||||
cancel(c, responses.ERROR_AUTHENTICATION_FAIL)
|
cancel(c, responses.ERROR_AUTHENTICATION_FAIL)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user