Lucas Nicodemus
136064f4b2
Fix formatting of old aglo block
...
Also spelled algorithms correctly
2015-04-13 14:57:58 -06:00
Lucas Nicodemus
493dc0c069
Change braces to use VS style
2015-04-13 14:49:04 -06:00
Lucas Nicodemus
12f893e0cb
Require minimum password length of 4, and trim new passwords for whitespace.
...
Fixes problems reported by @MarioE and @Simon311:
- Users can no longer register with whitespace for a password.
- Users can no longer register with 4 whitespaces for a password.
2015-04-13 14:26:12 -06:00
Lucas Nicodemus
845c8c4b3d
Change access modifiers to 'protected internal'
...
(this is what I meant anyway by internal, didn't realize internal
allowed any access in the assembly)
2015-04-13 13:06:49 -06:00
Lucas Nicodemus
1f690440d0
Change errors in BCrypt to be more clear for users to fix
...
Change doc verbiage to refer to what these actually do
2015-04-13 12:46:10 -06:00
Lucas Nicodemus
6cef3c6eb3
Add documentation for CreateBCryptHash
2015-04-13 12:35:25 -06:00
Lucas Nicodemus
e55c37728f
Change config to refer to BCryptWorkFactor instead of WorkFactor.
...
Change default work factor to 7.
2015-04-13 11:33:04 -06:00
Lucas Nicodemus
08fae75c0c
Fix string split in upgrade check so that it works
2015-04-13 11:31:13 -06:00
Lucas Nicodemus
37b5a52fdb
Move all TShock usages to use User.VerifyPassword()
2015-04-13 11:16:21 -06:00
Lucas Nicodemus
bbf6fd2c86
UserManager insert does no passsword hashing
...
This should be fine, now, because User.CreateBCryptHash should take
care of this.
2015-04-13 10:58:22 -06:00
Lucas Nicodemus
ed34a87c3f
Migrate some manual password creation to BCrypt
...
Note that several times, user.Password was set to a plain text password,
but then later changed to a hashed password, creating data inconsistency.
This also changes User.Password to private set to prevent further accidents.
2015-04-13 10:44:45 -06:00
Lucas Nicodemus
a5aa31376a
Add password verification for BCrypt
2015-04-13 10:06:58 -06:00
Lucas Nicodemus
417ffbc740
Updated XML documentation for several methods
2015-04-12 23:39:04 -06:00
Lucas Nicodemus
1be5f6fdc2
Remove remaining obsolete references to Log vs TShock.Log
2015-02-28 19:42:26 -07:00
Lucas Nicodemus
04145a4aca
Re-add EnsureExists signature to fix compat with old plugins
...
Fixes #862
2015-02-22 08:43:12 -07:00
Lucas Nicodemus
12a39f4e9a
Revert "Use Sublime Text's "Convert all open views to tabs" option"
...
This reverts commit b35a02d379 .
2015-02-21 23:00:30 -07:00
Lucas Nicodemus
b35a02d379
Use Sublime Text's "Convert all open views to tabs" option
2015-02-21 22:57:14 -07:00
Lucas Nicodemus
6a41c34380
isn't this ruby
2015-02-21 22:53:56 -07:00
Lucas Nicodemus
817479ea70
Add Getuser calls to delete user
2015-02-21 22:51:38 -07:00
Lucas Nicodemus
91d5fab27d
Add account create & delete hooks
2015-02-21 22:35:05 -07:00
Zack
f9bf470b1d
Tick version and update copyright
2015-01-28 15:29:13 -05:00
Zack
fb451c6d49
Update license header for 2014
2014-07-10 21:48:33 -04:00
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