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
Lucas Nicodemus
c6fdd89148
Remove 'ass' and unused 'appName' for 'assembly' 💩
2015-04-13 00:00:55 -06:00
Lucas Nicodemus
1dae83d1b6
Fix TryParseTime documentation again?
2015-04-12 23:43:39 -06:00
Lucas Nicodemus
e927b55fcb
/group add now uses non-deprecated method
2015-04-12 23:39:26 -06:00
Lucas Nicodemus
417ffbc740
Updated XML documentation for several methods
2015-04-12 23:39:04 -06:00
Lucas Nicodemus
726576e3e0
Docs: TraceLevel vs LogLevel in ILog.cs
2015-04-12 22:17:06 -06:00
Lucas Nicodemus
6431edbf39
Remove deprecated Log methods
2015-04-12 22:15:07 -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
6ed91f12c8
Remove redundant argument checks 👌
2015-04-12 22:02:19 -06:00
Lucas Nicodemus
8bcb3ef6bc
Check all user subcommands for param count
...
Fixes more problems found in #899 (thanks Marcus)
2015-04-12 21:48:50 -06:00
Lucas Nicodemus
0f1b334d8e
Merge branch 'general-devel' of github.com:NyxStudios/TShock into general-devel
2015-04-12 21:46:46 -06:00
Lucas Nicodemus
16960c7d2c
Require 3 parameters to change a password
...
Fixes #899
2015-04-12 21:46:15 -06:00
Zack Piispanen
904c44a1b6
Fix UseServerName config options, to now work properly. Remove duplicate unused code. Ensure that everywhere we use Main.WorldName, we are sending the config server name.
2015-04-09 22:58:32 -04:00
White
cf34aad594
Remove the pesky '/' that got in there somehow
2015-04-09 15:58:10 +09:30
White
b4f2ddef47
DEBUG preprocessor conditional inside method
2015-04-09 15:56:51 +09:30
White
c0f28f4aaf
Merge branch 'general-devel' of https://github.com/NyxStudios/TShock into general-devel
2015-04-09 15:50:44 +09:30