replace username by login

This commit is contained in:
kiwiidb
2022-07-07 14:07:28 +02:00
parent 5e31a28fa2
commit 96c6a4f952
5 changed files with 23 additions and 23 deletions

View File

@@ -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
}
}