mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-01 21:52:19 +00:00
Tidy Login buttons and add API_URL env var
This commit is contained in:
parent
fc1d6fc567
commit
c9c6946891
9 changed files with 30 additions and 82 deletions
|
@ -96,11 +96,11 @@ func loginUser(logReq *LoginRequest, ip net.IP) ([]byte, error) {
|
|||
var user User
|
||||
|
||||
if logReq.Username == "" {
|
||||
return resp, errors.New("username must be set")
|
||||
return resp, errors.New("A username is required")
|
||||
}
|
||||
|
||||
if logReq.Password == "" {
|
||||
return resp, errors.New("password must be set")
|
||||
return resp, errors.New("A password is required")
|
||||
}
|
||||
|
||||
if strings.Contains(logReq.Username, "@") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue