White
23ab14df4f
Added backwards compatibility for SSC
2015-07-10 16:58:32 +09:30
White
e5cbee82e9
Backwards compatibility for databases with pre-existing SSC entries
2015-07-10 14:34:42 +09:30
Enerdy
0a51f208f5
Fixed /user group and any other method using TShock.Users.SetUserGroup()
2015-07-06 01:32:08 +01:00
Enerdy
0e23ffa1a6
Fixed issues with BitsByte. TShock should compile again.
2015-07-04 17:17:26 +01:00
White
da62f23c50
Fixed a typo that would have caused issues
2015-05-28 17:06:58 +09:30
White
4bc4b2a6eb
Fixed another bug with the BCrypt implementation
2015-05-28 16:44:34 +09:30
White
ec178f0c4a
Fixed the bug where updating the config WorkFactor would mean that users could not log into their accounts once their passwords were updated to the new WorkFactor
2015-05-28 11:51:29 +09:30
White
e33b6ebebc
Now targets NET 4.5, so the solution actually compiles.
...
Fixed an issue where /user password sets a blank string in the database
Fixed an issue where /password <old> <new> wouldn't update the user's password
2015-05-27 18:29:29 +09:30
MarioE
ad5ec1c252
Fix NetItem serialization/deserialization
2015-05-04 22:28:41 -04:00
MarioE
d5fb8726cc
Extend NetItem
2015-05-04 22:11:10 -04:00
White
44ad0c68b8
Change TSPlayer.UserID to TSPlayer.User.ID, as well as refactoring some of UserManager.cs. Solves #916
2015-05-01 11:18:37 +09:30
Lucas Nicodemus
fcda79ea4c
Fix blank password logins further
...
How this worked prior to BCrypt is beyond me
2015-04-30 15:56:29 -06:00
Lucas Nicodemus
ddd89043c9
Fix blank password legacy behavior in TShock.
...
Fixes #907
2015-04-30 15:52:08 -06:00
White
dd7ad78d3f
Adds a User object to TSPlayer
2015-04-29 17:24:20 +09:30
White
c55893fe88
Adds a fuzzy name search for obtaining users. This means plugins no longer have to retrieve all Users with TShock.Users.GetUsers() to do a fuzzy name search
2015-04-21 16:46:24 +09:30
Lucas Nicodemus
342921b3ed
Document Utils.cs & UserManager.cs
...
Deprecated Utils.Random()
2015-04-19 21:14:15 -06:00
Lucas Nicodemus
85661f3485
Move to "protected" only (thanks @MarioE!)
2015-04-14 08:16:11 -06:00
Lucas Nicodemus
c5034a23ad
Turns out that OmniServer doesn't refactor after all, who knew? Fix build.
2015-04-13 23:31:38 -06:00
Lucas Nicodemus
b34c00107c
"Brace" for impact with these Important changes
...
Apparently the convention is UpperCamel for private functions too.
Fixed a stray brace that caused people to brace for a sudden evisceration of limbs.
Use Int32.Parse instead of Convert.ToInt32, because Microsoft exposes public
APIs they say not to use. 👏
2015-04-13 23:24:37 -06:00
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
06becadc8d
Document Warp() constructor
2015-04-13 01:03:13 -06:00
Lucas Nicodemus
417ffbc740
Updated XML documentation for several methods
2015-04-12 23:39:04 -06:00
Lucas Nicodemus
6c516e5f3d
Add deprecation warning to string AddGroup(name, perms)
...
Can't remove the other AddGroup string method without a deprecation
window of 1 release for this stupid function too.
2015-04-12 22:12:08 -06:00
Lucas Nicodemus
da8ce502bc
Add replacement for string AddGroup
...
Add deprecation warnings to previous methods
2015-03-11 09:10:40 -06:00
Lucas Nicodemus
03d817e0a2
Return more modern error in AddGroup
2015-03-11 09:00:14 -06:00
Lucas Nicodemus
caf3c662eb
Fix more random tab/spaces in SqlTable.cs
2015-03-10 11:15:52 -06:00
Lucas Nicodemus
7187245879
Fix deprecation message fixes #880
2015-03-10 11:14:21 -06:00
Zack Piispanen
406abce30c
Add hooks for Region creation/deletion. Add hooks for Region Enter/Leave. Add member to TSPlayer displaying current region. Set private setters in AccountHooks.
2015-03-01 22:27:49 -05:00
Lucas Nicodemus
2f0d407dec
RegionManager now says "you must be logged in"
2015-02-28 21:19:27 -07:00
Lucas Nicodemus
d971db165c
Remove several obsolete shims
...
No need to keep obsolete shims in for several versions of TShock
2015-02-28 20:15:56 -07:00
Lucas Nicodemus
1be5f6fdc2
Remove remaining obsolete references to Log vs TShock.Log
2015-02-28 19:42:26 -07:00
Lucas Nicodemus
cbce64f1eb
Remove more obsolete code; fix tab/space screwup in TSPlayer
2015-02-28 19:37:06 -07:00
Lucas Nicodemus
6e0de64f18
Remove more broken/obsolete/dead code
2015-02-28 19:15:19 -07:00
Zack
17ea9e0875
Use the NetItem max inventory when seeding the database.
2015-02-22 17:14:57 -05:00
Lucas Nicodemus
d82851faf3
EnsureExists now calls EnsureTableStructure directly
...
It occurs to me that copypasting code is bad
2015-02-22 12:03:05 -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