diff --git a/main.go b/main.go index 2499fa8..999d023 100644 --- a/main.go +++ b/main.go @@ -100,7 +100,6 @@ func Register(username, email, ip string) bool { } func Login(username, password string) bool { - log.Printf("scsusers.Login: Attempting login for %s\n", username) q:=fmt.Sprintf("select password from %s_auth where username=$1 AND status='active'",c.TablePrefix) var crypt string err:=c.db.Get(&crypt, q, username) @@ -112,6 +111,7 @@ func Login(username, password string) bool { log.Printf("scsusers.Login: Failed password for " + username) return false } + log.Printf("User %s logged in\n", username) Bump(username) return true }