Marauroa Database Structure: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Hendrik Brummermann No edit summary |
imported>Hendrik Brummermann |
||
| Line 8: | Line 8: | ||
[[Image:Database-account-logs.png]] |
[[Image:Database-account-logs.png]] |
||
Authentication information is stored in the table account. It consists of the username, the password hash, email address and the timestamp of the account creation. |
Authentication information is stored in the table account. It consists of the username, the password hash, email address, and the timestamp of the account creation. Please note that for historic reasons foreign key columns pointing to the account table are not named account_id but player_id. |
||
For security reason every login (successful or not) is logged in the table loginEvent with the ip-address, timestamp, and a success flag. The column service is used to tell logins from a game and a website apart. The optional column seed stores a preauthentication seed. |
|||
Password changes are logged in a similar way. In addition to normal loginEvents the old password hash is stored as well. This is a precaution to restore hacked accounts back to their original owner. |
|||
Note: It may be a good idea to delete old rows in this table regularly for privacy reasons. |
|||
== Bans == |
== Bans == |
||