Add last logged in date to accounts table

pull/1/head
Flashfyre 2023-12-30 22:05:56 -05:00
parent 6a7aafbff4
commit e05f6f752b
2 changed files with 7 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
pokerogue-server.exe

View File

@ -21,6 +21,11 @@ func AddAccountSession(username string, token []byte) error {
return err return err
} }
_, err = handle.Exec("UPDATE accounts SET lastLoggedIn = UTC_TIMESTAMP() WHERE username = ?", username)
if err != nil {
return err
}
return nil return nil
} }