Commit graph

32 commits

Author SHA1 Message Date
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
high
213fe1cb61 User table defined, missing any columns? 2011-07-08 06:05:25 -04:00
high
6d531283fc Moved BanManager/WarpsManager
Added UserManager (empty)
2011-07-08 04:00:53 -04:00