Commit graph

1525 commits

Author SHA1 Message Date
Josh
14d2f0305e
Implement 2FA (#577)
* Initial work for TOTP 2FA

* Fix bug in 2FA code script

* Add translations for two factor and /disable2fa

* Fix compilation error

* Add TwoFactorLoginPage

* Add two factor login process

* Little bit of backup code work

* Finish two factor

* Fix unit tests

* ??? goofy ahh code

* Use SHA-256 instead of SHA-512

* I guess SHA-256 doesn't work either

* Fix comments in Base32 helper

* Move QRCoder package to website

* Add name to endregion comment in css

* Fix bug with redirects
2022-12-12 21:11:39 -06:00
dependabot[bot]
4fd1063502
Bump YamlDotNet from 12.1.0 to 12.2.0 (#583)
Bumps [YamlDotNet](https://github.com/aaubry/YamlDotNet) from 12.1.0 to 12.2.0.
- [Release notes](https://github.com/aaubry/YamlDotNet/releases)
- [Commits](https://github.com/aaubry/YamlDotNet/compare/v12.1.0...v12.2.0)

---
updated-dependencies:
- dependency-name: YamlDotNet
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-09 18:12:15 -06:00
dependabot[bot]
5f8bbfa05f
Bump Selenium.WebDriver from 4.6.0 to 4.7.0 (#578)
Bumps Selenium.WebDriver from 4.6.0 to 4.7.0.

---
updated-dependencies:
- dependency-name: Selenium.WebDriver
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Josh <josh@slendy.pw>
2022-12-07 23:58:21 -06:00
dependabot[bot]
9efd6a92cb
Bump InfluxDB.Client from 4.8.0 to 4.9.0 (#580)
Bumps [InfluxDB.Client](https://github.com/influxdata/influxdb-client-csharp) from 4.8.0 to 4.9.0.
- [Release notes](https://github.com/influxdata/influxdb-client-csharp/releases)
- [Changelog](https://github.com/influxdata/influxdb-client-csharp/blob/master/CHANGELOG.md)
- [Commits](https://github.com/influxdata/influxdb-client-csharp/compare/v4.8.0...v4.9.0)

---
updated-dependencies:
- dependency-name: InfluxDB.Client
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-07 23:54:42 -06:00
dependabot[bot]
44cc943432
Bump YamlDotNet from 12.0.2 to 12.1.0 (#579)
Bumps [YamlDotNet](https://github.com/aaubry/YamlDotNet) from 12.0.2 to 12.1.0.
- [Release notes](https://github.com/aaubry/YamlDotNet/releases)
- [Commits](https://github.com/aaubry/YamlDotNet/compare/v12.0.2...v12.1.0)

---
updated-dependencies:
- dependency-name: YamlDotNet
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-05 14:21:27 -06:00
FridiNaTor1
6a081da1e2
Add more GameIDs (#549)
Added a Hub ID and 4 Move IDs (Sackboy’s Prehistoric Moves). And removed a duplicated GameID

Co-authored-by: Josh <josh@slendy.pw>
2022-12-01 22:38:47 -06:00
W0lf4llo
67cfc29699
Added three new categories to LBP3 (#567)
* Added three new categories to LBP3

* removed my comment in most hearted
2022-12-01 22:34:25 -06:00
dependabot[bot]
e1f4eacde4
Bump InfluxDB.Client from 4.7.0 to 4.8.0 (#576)
* Bump InfluxDB.Client from 4.7.0 to 4.8.0

Bumps [InfluxDB.Client](https://github.com/influxdata/influxdb-client-csharp) from 4.7.0 to 4.8.0.
- [Release notes](https://github.com/influxdata/influxdb-client-csharp/releases)
- [Changelog](https://github.com/influxdata/influxdb-client-csharp/blob/master/CHANGELOG.md)
- [Commits](https://github.com/influxdata/influxdb-client-csharp/compare/v4.7.0...v4.8.0)

---
updated-dependencies:
- dependency-name: InfluxDB.Client
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Remove deprecated Create function

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Slendy <josh@slendy.pw>
2022-12-01 21:47:42 -06:00
Josh
3b93f6ca2f
Add Deflate compression for text/xml (#552)
* Add deflate compression support

* Fix compression when content type contains encoding

Co-authored-by: Dagg <daggintosh@outlook.com>
2022-11-29 14:50:25 -06:00
W0lf4llo
b896aee51a
Prevent other players scores from showing up as yours (#566)
* Fix ScoreController making scores of other players

* Split playerIds when looking for friends too

Co-authored-by: Josh <josh@slendy.pw>
2022-11-27 17:46:50 -06:00
dependabot[bot]
b8d946758e
Bump JetBrains.Annotations from 2022.1.0 to 2022.3.1 (#556)
Bumps [JetBrains.Annotations](https://github.com/JetBrains/JetBrains.Annotations) from 2022.1.0 to 2022.3.1.
- [Release notes](https://github.com/JetBrains/JetBrains.Annotations/releases)
- [Commits](https://github.com/JetBrains/JetBrains.Annotations/commits)

---
updated-dependencies:
- dependency-name: JetBrains.Annotations
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Josh <josh@slendy.pw>
2022-11-27 17:25:16 -06:00
dependabot[bot]
a0b5a90d60
Bump Microsoft.NET.Test.Sdk from 17.3.2 to 17.4.0 (#554)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.3.2 to 17.4.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v17.3.2...v17.4.0)

---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Josh <josh@slendy.pw>
2022-11-27 17:22:10 -06:00
dependabot[bot]
04b2ec57c9
Bump SharpZipLib from 1.4.0 to 1.4.1 (#555)
Bumps [SharpZipLib](https://github.com/icsharpcode/SharpZipLib) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/icsharpcode/SharpZipLib/releases)
- [Changelog](https://github.com/icsharpcode/SharpZipLib/blob/master/docs/Changes.txt)
- [Commits](https://github.com/icsharpcode/SharpZipLib/compare/v1.4.0...v1.4.1)

---
updated-dependencies:
- dependency-name: SharpZipLib
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Josh <josh@slendy.pw>
2022-11-27 17:19:46 -06:00
W0lf4llo
bc2f385384
Total level count shows compatible levels instead of levels uploaded all throughout lighthouse. (#563)
* StatisticsController test & Renammed hearted cat

* Total Level Counts show all compatible levels.

* Formatted document

* Update ProjectLighthouse.Servers.GameServer/Controllers/StatisticsController.cs

Change 1

Co-authored-by: Josh <josh@slendy.pw>

* Update ProjectLighthouse.Servers.GameServer/Controllers/StatisticsController.cs

Change 2

Co-authored-by: Josh <josh@slendy.pw>

* Fix compilation error

Co-authored-by: Josh <josh@slendy.pw>
2022-11-20 23:28:38 -06:00
Slendy
ac192b0904
Don't serialize user language or timezone 2022-11-17 23:27:06 -06:00
Dagg
ca317d3afc
Add support for Cross Controller Planets (#562)
* Add support for Cross Controller Planets

* Clean
2022-11-17 22:54:46 -06:00
Slendy
74c70115b8
Revert "Initial work for verifying login ticket signatures"
This reverts commit 806e4e898d.
2022-11-17 22:24:41 -06:00
Slendy
806e4e898d
Initial work for verifying login ticket signatures 2022-11-17 22:12:53 -06:00
Slendy
c6ddeaf154
Allow moderators to dismiss reports 2022-11-17 16:14:03 -06:00
Slendy
e67abe0164
Don't issue registration tokens for names that already exist 2022-11-13 22:17:41 -06:00
Slendy
75de1d0faa
Add workaround for weird score bug 2022-11-13 17:28:04 -06:00
Slendy
a253e768a7
Add more sanitization to reduce deserialization errors 2022-11-13 17:05:24 -06:00
Slendy
5e82827fc0
Fix game server photo deletion bug
Fix bug where users couldn't delete photos with empty subjects
2022-11-12 11:21:31 -06:00
github-actions[bot]
9750e469d8
Update the localization files (#560)
[skip ci] Update the localization files

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-11-12 10:54:48 -06:00
Slendy
e5cafb1e02
Add missing null checks to CollectionController 2022-11-10 22:20:28 -06:00
Slendy
f1a6eb48b1
Add Authorize tag to ScoreController and add more verbose logging 2022-11-10 22:11:03 -06:00
Josh
b3a00da554
Refactor deserialization and authentication (#550)
* Refactor deserialization and more

* Refactor authentication flow

* Fix unit tests

* Make deserialization better
2022-11-10 21:14:16 -06:00
W0lf4llo
505b5eb03b
Added Lucky Dip to LBP3 & changed category desc (#551)
* Added Lucky Dip to LBP3 & changed category desc

* Changed "lbp2luckydip" to "luckydip"

* Fixed the tab

* Fixed the thing Slendy wanted me to fix lol

* Removed "Most Hearted" as i havent made it yet

Co-authored-by: Dagg <32235163+daggintosh@users.noreply.github.com>
2022-11-06 15:01:06 -06:00
Slendy
b0d780b91e
Fix score uploading exploit 2022-11-05 22:37:16 -05:00
A My Sour
84e2914e40
Add webhook message when a new Team Pick is added (#528)
* Add webhook message when a new Team Pick is added

* Update ProjectLighthouse.Servers.Website/Controllers/Admin/ModerationSlotController.cs

Co-authored-by: Josh <josh@slendy.pw>

* Update ModerationSlotController.cs

* Include ServerConfiguration class

Co-authored-by: Alex_Sour <52638772+Alex-Sour@users.noreply.github.com>
Co-authored-by: Josh <josh@slendy.pw>
2022-11-05 15:35:10 -05:00
dependabot[bot]
58a5311a7d
Bump Selenium.WebDriver from 4.5.1 to 4.6.0 (#548)
Bumps Selenium.WebDriver from 4.5.1 to 4.6.0.

---
updated-dependencies:
- dependency-name: Selenium.WebDriver
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-05 02:25:35 -05:00
dependabot[bot]
09925ba9aa
Bump coverlet.collector from 3.1.2 to 3.2.0 (#541)
Bumps [coverlet.collector](https://github.com/coverlet-coverage/coverlet) from 3.1.2 to 3.2.0.
- [Release notes](https://github.com/coverlet-coverage/coverlet/releases)
- [Commits](https://github.com/coverlet-coverage/coverlet/commits/v3.2.0)

---
updated-dependencies:
- dependency-name: coverlet.collector
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-03 14:25:59 -05:00
dependabot[bot]
f0ffb8fe24
Bump InfluxDB.Client from 4.6.0 to 4.7.0 (#546)
Bumps [InfluxDB.Client](https://github.com/influxdata/influxdb-client-csharp) from 4.6.0 to 4.7.0.
- [Release notes](https://github.com/influxdata/influxdb-client-csharp/releases)
- [Changelog](https://github.com/influxdata/influxdb-client-csharp/blob/master/CHANGELOG.md)
- [Commits](https://github.com/influxdata/influxdb-client-csharp/compare/v4.6.0...v4.7.0)

---
updated-dependencies:
- dependency-name: InfluxDB.Client
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-03 14:18:50 -05:00
dependabot[bot]
3d94d3eb82
Bump Selenium.WebDriver.ChromeDriver from 105.0.5195.5200 to 107.0.5304.6200 (#536)
Bump Selenium.WebDriver.ChromeDriver

Bumps [Selenium.WebDriver.ChromeDriver](https://github.com/jsakamoto/nupkg-selenium-webdriver-chromedriver) from 105.0.5195.5200 to 107.0.5304.6200.
- [Release notes](https://github.com/jsakamoto/nupkg-selenium-webdriver-chromedriver/releases)
- [Changelog](https://github.com/jsakamoto/nupkg-selenium-webdriver-chromedriver/blob/master/RELEASE-NOTES.txt)
- [Commits](https://github.com/jsakamoto/nupkg-selenium-webdriver-chromedriver/compare/v.105.0.5195.5200...v.107.0.5304.6200)

---
updated-dependencies:
- dependency-name: Selenium.WebDriver.ChromeDriver
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-03 14:11:27 -05:00
Josh
39846e80e8
[skip ci] Update the localization files (#547) 2022-11-03 14:05:47 -05:00
Crowdin Bot
9b9924437d [skip ci] Update the localization files 2022-11-03 18:27:57 +00:00
Slendy
f6f0f04548
Add better null handling to RateLimitMiddleware 2022-11-02 15:45:13 -05:00
github-actions[bot]
04fbc2fd78
Update the localization files (#544)
[skip ci] Update the localization files

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-11-01 15:35:13 -05:00
Josh
6e72fcba62
Bump CI Actions' versions (#543)
* Bump github actions version

* Bump actions-setup-mysql version
2022-10-31 21:07:38 -05:00
Slendy
af1e3a3284
Add more existence checks to rate limiter 2022-10-31 20:51:00 -05:00
Josh
c7195df74f
Allow RegistrationTokens to have a username pre-selected (#524)
* Add prefilled username to registration token

* call toString on query to work with EF

* Fix typo in RegisterForm.cshtml

* Only show username notice if the user's username hasn't been chosen already

* Add confirmation message to DeleteUserCommand
2022-10-31 20:48:09 -05:00
Michael Youngling
bfe81c3461
Update chatCensoredList.txt
Since we probably aren't going to get around to providing customizable word filters for Lighthouse until a few other things are out of the way, I decided to quickly add this change to remove the gigantic meme-worthy list of words jvyden came up with. We're currently testing the word filter on Beacon, so I kept 'restitched' and added 'h4h' to continue testing the filter on Beacon. It will need to be applied to level titles, reviews, descriptions, etc sometime in the future. Keep in mind someday this file should be customizable by the instance admin.
2022-10-31 13:57:21 -04:00
Josh
6848664143
Update github actions to latest version 2022-10-15 13:48:25 -05:00
dependabot[bot]
c06bf46609
Bump Redis.OM from 0.2.3 to 0.3.1 (#521)
Bumps [Redis.OM](https://github.com/redis/redis-om-dotnet) from 0.2.3 to 0.3.1.
- [Release notes](https://github.com/redis/redis-om-dotnet/releases)
- [Commits](https://github.com/redis/redis-om-dotnet/compare/v0.2.3...v0.3.1)

---
updated-dependencies:
- dependency-name: Redis.OM
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-15 18:40:55 +00:00
dependabot[bot]
bd00b39dcb
Bump Microsoft.EntityFrameworkCore.Design from 6.0.9 to 6.0.10 (#520)
Bumps [Microsoft.EntityFrameworkCore.Design](https://github.com/dotnet/efcore) from 6.0.9 to 6.0.10.
- [Release notes](https://github.com/dotnet/efcore/releases)
- [Commits](https://github.com/dotnet/efcore/compare/v6.0.9...v6.0.10)

---
updated-dependencies:
- dependency-name: Microsoft.EntityFrameworkCore.Design
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-15 18:38:51 +00:00
dependabot[bot]
9322b0adc0
Bump Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation from 6.0.9 to 6.0.10 (#518)
Bump Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation

Bumps [Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation](https://github.com/dotnet/aspnetcore) from 6.0.9 to 6.0.10.
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md)
- [Commits](https://github.com/dotnet/aspnetcore/commits)

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-15 18:36:19 +00:00
dependabot[bot]
a02f5f36fa
Bump Microsoft.AspNetCore.Mvc.Testing from 6.0.9 to 6.0.10 (#517)
Bumps [Microsoft.AspNetCore.Mvc.Testing](https://github.com/dotnet/aspnetcore) from 6.0.9 to 6.0.10.
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md)
- [Commits](https://github.com/dotnet/aspnetcore/commits)

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Mvc.Testing
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-15 13:34:25 -05:00
dependabot[bot]
1f718a3711
Bump Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore from 6.0.9 to 6.0.10 (#516)
Bump Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore

Bumps [Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore](https://github.com/dotnet/aspnetcore) from 6.0.9 to 6.0.10.
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md)
- [Commits](https://github.com/dotnet/aspnetcore/commits)

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-15 18:31:09 +00:00
PorkchopGMX
e9283b61ea
[skip ci] Update CONTRIBUTING.md 2: Electric Boogaloo (#509)
Update CONTRIBUTING.md

typo fix
2022-10-15 13:26:29 -05:00
dependabot[bot]
3dd7aa5361
Bump Microsoft.EntityFrameworkCore from 6.0.9 to 6.0.10 (#519)
Bumps [Microsoft.EntityFrameworkCore](https://github.com/dotnet/efcore) from 6.0.9 to 6.0.10.
- [Release notes](https://github.com/dotnet/efcore/releases)
- [Commits](https://github.com/dotnet/efcore/compare/v6.0.9...v6.0.10)

---
updated-dependencies:
- dependency-name: Microsoft.EntityFrameworkCore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-15 13:24:11 -05:00