Add last logged in date to accounts table
parent
6a7aafbff4
commit
e05f6f752b
|
@ -0,0 +1,2 @@
|
|||
|
||||
pokerogue-server.exe
|
|
@ -21,6 +21,11 @@ func AddAccountSession(username string, token []byte) error {
|
|||
return err
|
||||
}
|
||||
|
||||
_, err = handle.Exec("UPDATE accounts SET lastLoggedIn = UTC_TIMESTAMP() WHERE username = ?", username)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue