Add last logged in date to accounts table

pull/1/head
Flashfyre 10 months ago
parent 6a7aafbff4
commit e05f6f752b

2
.gitignore vendored

@ -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…
Cancel
Save