Commit graph

2970 commits

Author SHA1 Message Date
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
298c61564f Force add BCrypt dll 2015-04-13 11:58:27 -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
6bba00c7ee Add BCrypt Libs 2015-04-13 08:09:05 -06:00
Lucas Nicodemus
8b00127ce2 Ignore userprefs 2015-04-13 01:15:54 -06:00
Lucas Nicodemus
06becadc8d Document Warp() constructor 2015-04-13 01:03:13 -06:00
Lucas Nicodemus
d628b59012 Ignore sublime project files 2015-04-13 00:52:52 -06:00
Lucas Nicodemus
1993ad0d23 Ignore visual studio 'stuff' 2015-04-13 00:51:47 -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
Lucas Nicodemus
5f77f21e03 Merge pull request #896 from WhiteXZ/general-devel
DEBUG preprocessor checks for ILog
2015-04-09 17:02:34 -06: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
Lucas Nicodemus
cef253ce20 Remove the ability to ban oneself 2015-04-08 23:46:00 -06:00
White
fc1d188951 DEBUG preprocessor checks for ILog 2015-04-08 20:46:12 +09:30
Zack Piispanen
371beb8c52 Update deploy script to do a better job uploading to Confluence. 2015-04-06 11:33:42 -04:00
Zack Piispanen
6c27bc74c6 Finish half implemented new feature where we use bamboo for variables instead of files on the system. 2015-04-05 23:44:35 -04:00
Lucas Nicodemus
ac5359e4f9 Merge pull request #895 from WhiteXZ/general-devel
Adds a time parameter to the tempgroup command
2015-04-05 21:30:05 -06:00
White
2f2749c480 Time parameter in temp group command 2015-04-06 12:50:33 +09:30
White
d0a962bd0f Notification when temp group expires 2015-04-06 12:31:10 +09:30
White
bddcf81331 Stop timer once it's done 2015-04-06 12:31:08 +09:30
White
cd353c27a3 Time parameter for tempgroup 2015-04-06 12:31:07 +09:30
Zack Piispanen
1b69a47d71 Merge branch 'general-devel' of github.com:NyxStudios/TShock into general-devel 2015-04-05 22:43:18 -04:00
Zack Piispanen
7fee8d786c Fix logout to set group to the guest group, and temp to null. These seem to have been swapped on accident, and used the default group instead of guest. 2015-04-05 22:42:57 -04:00
Lucas Nicodemus
3e536a1aac Small ad for survey 2015-04-05 19:24:30 -06:00
Zack Piispanen
aaf18626e0 Finish documentation and update the doc generation to include the new attributes. Yay~ 2015-04-05 19:31:11 -04:00
Zack Piispanen
f60ec96888 Next block of documentation. 2015-04-05 19:13:24 -04:00