This commit is contained in:
scs 2019-01-24 13:15:54 +00:00
parent 4767b8556a
commit bfb4cd57ff
1 changed files with 1 additions and 1 deletions

View File

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