mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-21 22:54:48 +01:00
replace username by login
This commit is contained in:
@@ -58,10 +58,10 @@ func (controller *AuthController) Auth(c echo.Context) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
username := params.Get("username")
|
||||
login := params.Get("login")
|
||||
password := params.Get("password")
|
||||
if username != "" && password != "" {
|
||||
body.Login = username
|
||||
if login != "" && password != "" {
|
||||
body.Login = login
|
||||
body.Password = password
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user