ok what now
This commit is contained in:
parent
1b18ede09c
commit
0dfcae78a3
1
main.go
1
main.go
|
@ -181,6 +181,7 @@ func SaveUser(username string, d UserData) bool {
|
|||
}
|
||||
|
||||
func Bump(username string, ip string) {
|
||||
log.Printf("bump: username = %s, ip = %s", username, ip)
|
||||
q := fmt.Sprintf("update %s_auth set lastseen=CURRENT_TIMESTAMP, set lastseenip=$2 where username ILIKE $1", c.TablePrefix)
|
||||
_, err := c.db.Exec(q, username, ip)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue