Commit graph

52 commits

Author SHA1 Message Date
Zidonuke Ghost
b2a8198bb1 Client UUID Implementation: Bans and User Auth.
Send ServerSideCharacter flag if set in WorldInfo.
2013-10-01 04:35:49 -04:00
Zack Piispanen
038b2c027d Added Registered field to user db.
Set all those time based fields to use UtcNow, sortable
2013-09-30 20:32:43 -04:00
Zack Piispanen
7c0bcceb9f Added LastAccessed time field and KnownIPs field to the user database. This resulted in some changes everywhere, such as new logic with default groups. Apparently, somehow, the ip based stuff worked even though no ips were set to properly grab the user group. The wrong group was being assigned to new users resulting in a player with 0 permissions. This is now fixed. 2013-09-21 20:57:14 -04:00
Zack Piispanen
ba42fb08df Removed ip address from users, as well as changed /user add syntax to be '/user add username password group' instead of colon bullshit. 2013-09-21 17:11:22 -04:00
Zack Piispanen
b22457382e remove unused using statements 2013-09-17 02:24:02 -04:00
Lucas Nicodemus
ae7ab5f234 Updated copyright information to point to 2013. 2013-08-22 21:51:17 -06:00
Lucas Nicodemus
8d5cdf04a8 Update copyright to reflect actual year date. 2012-04-24 12:45:46 -06:00
stevenh
d813a60060 Fixed resource leak in GetUser fixes #404
Multiple user exception is now passed direct to the caller of GetUser instead of being wrapped
2012-02-22 16:09:40 +00:00
stevenh
84789ff4d5 Fixed GetUser not locating users by ID and hence GetUserById not working either, fixes #395 2012-02-20 21:44:25 +00:00
stevenh
1bc785f398 Fixes #392 making user group changes take effect on active players instantly 2012-02-20 10:56:06 +00:00
stevenh
d862d7922e Added better support for detection of duplicate users
Corrected and enhanced exception message for GetUser
2012-02-16 11:30:44 +00:00
stevenh
4daa9add13 Added GetUsers method mirroring GetBans to enable RestAPI to provide a full users list as well as an active one 2012-02-13 22:23:01 +00:00
stevenh
46f5f872ae Moved local exceptions outside of try block in AddUser so the calling code gets the original exception and not a generic one
Also added details of the SQL exception message into the message of the UserManagerException so its easier to determine the actual error when the exception message is returned / printed out
2012-02-13 22:23:01 +00:00
Lucas Nicodemus
bf9d0137f1 Added any missing license headers to all files 2012-01-01 03:06:48 -07:00
Lucas Nicodemus
71b5d63263 Remove flat file conversion code from user manager 2012-01-01 02:53:37 -07:00
Lucas Nicodemus
c6abbfe4d2 ReSharper code reformat to match naming conventions and stuff 2011-12-30 14:38:04 -07:00
Zidonuke
2e5155e1c0 Oops forgot some things. 2011-12-29 00:41:02 -05:00
Lucas Nicodemus
8514140ca7 As per High's complaining, holocaust against the Tools class (now Utils)
Plugin developers: You really need to change to reference this.
2011-12-01 23:24:02 -07:00
Graham Cantin
2cdb9dc953 Adding /region info -- needs further protection from nulls 2011-08-19 02:50:59 -07:00
high
593be73f29 password column is now 128 chars for mysql 2011-08-07 23:22:10 -04:00
high
1f4792b71c Removed FetchHashedPasswordAndGroup, now just uses GetUserByName 2011-08-07 02:49:09 -04:00
high
56eca71853 Fixed SCA warnings 2011-08-06 16:49:40 -04:00
high
1a801b268c All managers now use querybuilder for creating tables to make for easy changes. 2011-08-03 19:55:23 -04:00
high
6f26cc0dc5 Fixed the query helper functions 2011-08-01 19:33:15 -04:00
Lucas Nicodemus
37146adb4c Resharper code cleanup, including:
- Optimized using statements
 - Removal of redundant code
2011-07-26 23:37:06 -06:00
Graham Cantin
3dd7af1a30 * Finally fixed /user group and /user password.
* Had to fix UserManager exceptions to UserNotExistException instead of UserExistsException.
* Added /user help as well. Commented out the old short circuit for now.
2011-07-24 20:28:07 -07:00
high
e8a5e7fb58 Now uses Query/QueryReader 2011-07-24 12:33:00 -04:00
Lucas Nicodemus
529f51d95e Merge branch 'general-devel' of github.com:TShock/TShock into general-devel 2011-07-21 12:31:58 -06:00
Lucas Nicodemus
cd018fed8d Regions are now UserID based. 2011-07-21 12:25:57 -06:00
Graham Cantin
9b1c5fd230 Readded all my changes, I think. 2011-07-21 04:14:42 -07:00
Lucas Nicodemus
407d327236 Attempting a work around for DNS host resolution. There will now be a configuration parameter that will enable the check. This is expensive, and not recommended, but a better reserved slot system will be done in the future.
Closes #254
2011-07-19 17:27:54 -06:00
Lucas Nicodemus
15eb769580 Import users into users, not bans (Thanks Twitchy) 2011-07-19 00:34:46 -06:00
Zack Piispanen
e7b7f44e7a users now convert to new sql database 2011-07-18 21:48:59 -04:00
Lucas Nicodemus
3c4525749d Increased IP field size 2011-07-16 21:59:48 -06:00
Lucas Nicodemus
75e3e58c80 Regions WORK! 2011-07-16 18:01:18 -06:00
high
6468ed7562 This is not C, stop doing return codes especially without doing an enum.
Databases can store other things besides strings.
If you do not like changes from this commit feel free to revert it. Just giving some last insight on this branch.
2011-07-13 14:14:39 -04:00
Deathmax
35be16e6a7 Kamilion's patch.
Fix UserManager.
Add some logging and console messages.
2011-07-13 20:54:54 +08:00
Lucas Nicodemus
a691202e03 Attempting to fix adding an IP admin 2011-07-13 04:25:18 -06:00
Lucas Nicodemus
77ed57a4bd PRIMARY KEY, thanks SQLite for being a FUCKING DICKBAG 2011-07-13 02:47:32 -06:00
Lucas Nicodemus
2608ca0779 We want PRIMARY keys, not UNIQUE keys, because UNIQUE without PRIMARY means absolute BULLSHIT. 2011-07-13 02:42:06 -06:00
Lucas Nicodemus
cbc6bd2751 Fixed a lot of database stuff. 2011-07-12 21:30:55 -06:00
Twitchy
30d0d48386 Added reader closing (if it will help) and returns default group rather than "null" 2011-07-12 21:16:59 +12:00
Twitchy
b74455433e Changed Exception catch types. Removed trying to insert to ID field 2011-07-12 19:36:17 +12:00
Lucas Nicodemus
101aaa4856 Added UserManager.RemoveUser(string inputUser, bool ip) 2011-07-12 00:44:39 -06:00
Twitchy
ac8b293232 Removes Auto increment ID from table 2011-07-12 17:26:07 +12:00
Twitchy
3e17e42a37 Adds MySql Support 2011-07-12 13:31:36 +12:00
Twitchy
b5ca97ae35 Adds a whole bunch of SQL logging 2011-07-11 20:31:25 +12:00
Twitchy
6d1bea3577 Fixed SQL inserting a new superadmin on each load. 2011-07-10 13:35:49 +12:00
Twitchy
243b0297b9 Commands /region list and /warp list now work
Regions now use User ID's for /region allow (can be IP or Username/password based ID)
Minor Tweaks
A reset of your database is recommended
2011-07-09 20:41:31 +12:00
Twitchy
cb7033d89c Adds UserManager to sql
Changes the way Warps and Regions are stored
A few other minor tweaks
2011-07-09 16:33:07 +12:00