mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-02-16 21:51:29 +08:00
Add last logged in date to accounts table
This commit is contained in:
parent
6a7aafbff4
commit
e05f6f752b
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
pokerogue-server.exe
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user