bump
This commit is contained in:
parent
4767b8556a
commit
bfb4cd57ff
2
main.go
2
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue