Commit graph

2522 commits

Author SHA1 Message Date
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
Enerdy
ee776b7e60 Fix grammar, explicitly state that we need this check 2015-05-02 13:45:40 +01:00
Enerdy
f4fa624936 Specify which item is causing a player to be disabled. Fixes #909. 2015-05-02 03:03:41 +01:00
Lucas Nicodemus
630c045397 Move resources to "prebuilts" folder. Fixes #904 2015-05-01 09:34:42 -06: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
Lucas Nicodemus
a503c1e84e Commit #3,000
Merge branch 'general-devel' of github.com:NyxStudios/TShock into general-devel
2015-04-30 15:05:25 -06:00
Lucas Nicodemus
6cc097fda0 Use int arrays, not float arrays in config
Fixes #914
2015-04-30 15:04:22 -06:00
White
f400d4ff04 Fix a missed line 2015-04-29 17:41:43 +09:30
White
dd7ad78d3f Adds a User object to TSPlayer 2015-04-29 17:24:20 +09:30
Lucas Nicodemus
f5bf9d55ca Add semicolon 2015-04-25 22:55:15 -06:00
Lucas Nicodemus
c1183ec950 Make verbiage more clear on how to use /auth and /auth-verify 2015-04-25 22:54:45 -06:00
Lucas Nicodemus
a68068c565 Merge branch 'general-devel' of github.com:NyxStudios/TShock into general-devel 2015-04-22 23:32:30 -06:00
Lucas Nicodemus
ab3262d971 Document some config file methods
I suppose this is really redundant, ...
2015-04-22 23:32:01 -06:00
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
ce4585d151 🍰 Moved indentation back for deprecated algo block 2015-04-18 13:51:53 -06:00
Lucas Nicodemus
050a350c9f Finish documenting TShock.cs 2015-04-17 04:41:22 -06:00
Lucas Nicodemus
5e4651e9c4 Deprecate ValidString & SanitizeString methods.
They're unused and don't support UTF-8.
2015-04-17 04:20:48 -06:00
Lucas Nicodemus
d182e3a629 Add more documentation to more internal methods 2015-04-17 02:33:37 -06:00
Lucas Nicodemus
be75603587 Add more documentation to TShock.cs for high level variables 2015-04-17 01:39:19 -06:00
Lucas Nicodemus
00ad1c63b4 Check to see if a player is logged in before calling logout hook on dc 2015-04-17 00:17:19 -06:00
Lucas Nicodemus
be19c3998b Call OnPlayerLogout when a player leaves the server
Fixes #902
2015-04-16 23:41:24 -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
b91f0ff7b7 Add missing "of."
Through Knowledge, Victory. Through Unity, Peace.
Honor, Valor, Allegiance.
Today. Tomorrow. Forever.
Together We Rise. Together We Prevail.
Forward Unto Dawn.
From Earth, For Earth.
Honor, Valor, Allegiance, Excellence.
Today. Tomorrow. Forever.
Together We Rise. Together We Prevail.
Forward Unto Dawn.
From Earth, For Earth.
Honor, Valor, Allegiance, Excellence.
From Earth, For Earth.
Today. Tomorrow. Forever.
Together We Rise. Together We Prevail.
Forward Unto Dawn.
2015-04-13 19:00:25 -06:00
Lucas Nicodemus
ea18ca4455 Add slight warning about bcrypt to the config file 2015-04-13 18:50:40 -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
379a689ae2 Change message to be "greater than or equal to" 2015-04-13 14:30:11 -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
782b59f2b3 Add BCrypt reference to csproj file 2015-04-13 08:18:31 -06:00
Lucas Nicodemus
06becadc8d Document Warp() constructor 2015-04-13 01:03:13 -06:00
Lucas Nicodemus
eb7e167008 Make 1.14k warnings appear for debug compilers
Launch on warning (LOW) is a strategy of nuclear weapon retaliation that gained recognition during the Cold War between the United States and the Soviet Union. With the invention of intercontinental ballistic missiles (ICBMs), launch on warning became an integral part of mutually assured destruction (MAD) theory. Under this strategy, a retaliatory strike is launched upon warning of enemy nuclear attack, while its missiles are still in the air, and before detonation occurs.
2015-04-13 00:29:47 -06:00
Lucas Nicodemus
362fcbceb3 Remove warning ignore pragmas for just calling reads directly 2015-04-13 00:19:11 -06:00
Lucas Nicodemus
6fe33b5c43 /v2/groups/create uses non-deprecated AddGroup call
This should have no functional change that's negative. The previous
method only returned errors based on exceptions, so switching does
nothing except remove deprecated code.
2015-04-13 00:04:59 -06:00
Lucas Nicodemus
1b835c0597 Fix more broken docs
Also disables warnings for some specific unused variables
2015-04-13 00:01:37 -06:00