bump
This commit is contained in:
2
main.go
2
main.go
@@ -100,7 +100,6 @@ func Register(username, email, ip string) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Login(username, password 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)
|
q:=fmt.Sprintf("select password from %s_auth where username=$1 AND status='active'",c.TablePrefix)
|
||||||
var crypt string
|
var crypt string
|
||||||
err:=c.db.Get(&crypt, q, username)
|
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)
|
log.Printf("scsusers.Login: Failed password for " + username)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
log.Printf("User %s logged in\n", username)
|
||||||
Bump(username)
|
Bump(username)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user