Commit graph

1511 commits

Author SHA1 Message Date
Josh
c86d2a11b5
Abstract config design and update logging format (#624)
* Abstract config design and update logging pattern
Also drops legacy config support

* Fix unit tests

* Make backup of config file when upgrading

* Use shared process semaphore to fix migration race conditions

* Use mutex because semaphore isn't supported

* Make startup wait for configs to load

* Move mutex to config load instead of constructor

* Add debug logging

* Make mutex static

* Change mutex name format

* Make mutex use global namespace

* Remove debug logging and fix config upgrading

* Rename lambda variable
2023-01-10 17:29:47 -06:00
github-actions[bot]
7179574e43
[skip ci] Update the localization files (#625)
[skip ci] Update the localization files

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2023-01-09 21:05:26 -06:00
Josh
7d187ee982
Change login UI and improve email setup flow (#619)
* Rework login UI design and change email setup flow

* Remove unused middleware

* Fix button not lining up with input fields
2023-01-09 19:43:56 -06:00
Josh
20b2ef5700
Rework CI and add game server login tests (#615)
* Make tests run in release mode

* Fix multiple command in ci

* I forgot how yaml works

* Shitty workaround

* grr mondays

* Add an NP ticket builder for unit tests

* Add NP ticket unit testing

* Fix range indexers for finding uid

* Fix LoginTests

* Validate unit test signatures

* Make builder code follow same style conventions

* Remove remnant of hardcoded issuer id
2023-01-07 00:12:39 -06:00
Slendy
337124690d
Order hearted and queued levels by most recent first 2023-01-04 20:17:26 -06:00
Josh
263bfb5b23
Containerize Project Lighthouse (#582)
* Add lighthouse docker support

* Update to NET 7.0

* Make docker copy git repository info

* Add restart policy to compose file

* Delete temp folder after copying to data

* Only build the docker image once

* Fix builds from being dirty

* Add su-exec to final image

* Run lighthouse as non root user

* Add compose file to gitignore

* Remove compose file from gitignore

Co-authored-by: Dagg <daggintosh@outlook.com>
2023-01-04 19:26:49 -06:00
Dth455
993d14d90a
Make chat filter logging configurable (#618)
* Make chat filter logging configurable

Disables chat logging by default, but allows for it to be re-enabled if need be.

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

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

* Update ServerConfiguration.cs

Co-authored-by: Josh <josh@slendy.pw>
2023-01-03 20:08:55 -06:00
Slendy
86dff92179
Specify host and port for SmtpClient 2023-01-02 06:26:30 -06:00
Slendy
4865db1816
Create SmtpClient per email instead of reusing 2023-01-02 05:03:41 -06:00
Slendy
cf1769ca77
Rework the flow of setting email from the website 2023-01-02 02:23:14 -06:00
Josh
3f70563e1d
Fix compilation error 2023-01-02 01:43:06 -06:00
Slendy
461de3a299
Make 2FA redirect highest priority 2023-01-02 00:58:57 -06:00
Slendy
fb90371ad1
Improve logging and rewrite email helper 2023-01-02 00:48:37 -06:00
Slendy
dc26766b8a
Clean up UI design for 2FA 2023-01-01 23:51:53 -06:00
Slendy
400d45389c
Fix initial account setup email 2022-12-26 16:21:16 -06:00
github-actions[bot]
91313074de
Update the localization files (#612)
[skip ci] Update the localization files

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-12-26 15:48:00 -06:00
Josh
ca7ef6da66
Fix release build 2022-12-26 03:11:43 -06:00
Josh
19ea44e0e2
Rework login and registration systems (#600)
* Initial work for verifying login ticket signatures

* Add candidate psn public key

* Add candidate psn public key and fix nuget packages

* Finalize npticket changes

* Add support for ticket version 3.0

* Rework login system to link platform accounts instead of using ip addresses

* Make linked accounts green instead of blue

* Fix api building

* Fix unit tests

* Actually fix unit tests

* Set unit test user's linked platform

* Why was this the wrong default value?

* Fix username change code

* Make TicketHash hash the entire ticket instead of just the serial

* Send password setup email when user sets their email for the first time

* Changes from self review
2022-12-26 01:03:14 -08:00
dependabot[bot]
ff7969a147
Bump Discord.Net.Webhook from 3.8.1 to 3.9.0 (#608)
Bumps [Discord.Net.Webhook](https://github.com/Discord-Net/Discord.Net) from 3.8.1 to 3.9.0.
- [Release notes](https://github.com/Discord-Net/Discord.Net/releases)
- [Changelog](https://github.com/discord-net/Discord.Net/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/Discord-Net/Discord.Net/compare/3.8.1...3.9.0)

---
updated-dependencies:
- dependency-name: Discord.Net.Webhook
  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-23 12:47:06 -06:00
Slendy
0972375b05
Let level/profile owners delete comments 2022-12-20 15:22:12 -06:00
Josh
f93c6dc8a2
Bump CI versions (#605) 2022-12-20 14:43:04 -06:00
Slendy
a282833726
Fix slot icon sizing 2022-12-19 17:45:27 -06:00
Slendy
1b69f6a0e0
Fixup website content deletion permissions 2022-12-19 17:32:37 -06:00
Josh
f4cad21061
Website UI redesign and QOL changes (#601)
* Initial support for leaderboards and some refactoring

* Start of UI redesign

* Finish slot and user redesign, added deletion of comments, reviews, scores, and photos

* Remove leftover debug print

* Fix bug in permission check

* Simplify sidebar code and add hearted and queued levels

* Fix navbar scrolling on mobile and refactor SlotCardPartial
2022-12-19 15:20:49 -08:00
dependabot[bot]
37b0925cba
Bump YamlDotNet from 12.2.1 to 12.3.1 (#602)
Bumps [YamlDotNet](https://github.com/aaubry/YamlDotNet) from 12.2.1 to 12.3.1.
- [Release notes](https://github.com/aaubry/YamlDotNet/releases)
- [Commits](https://github.com/aaubry/YamlDotNet/compare/v12.2.1...v12.3.1)

---
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-19 16:43:23 -06:00
github-actions[bot]
273f53ecb5
[skip ci] Update the localization files (#598)
[skip ci] Update the localization files

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-12-17 15:26:58 -06:00
Slendy
082e575f5e
Potential fix for 2fa redirect loop 2022-12-16 17:20:28 -06:00
dependabot[bot]
a797b9f07a
Bump Microsoft.NET.Test.Sdk from 17.4.0 to 17.4.1 (#596)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.4.0 to 17.4.1.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md)
- [Commits](https://github.com/microsoft/vstest/compare/v17.4.0...v17.4.1)

---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
  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-12-16 11:38:55 -06:00
dependabot[bot]
929ab5acfc
Bump Pomelo.EntityFrameworkCore.MySql from 7.0.0-alpha.1 to 7.0.0-silver.1 (#592)
Bump Pomelo.EntityFrameworkCore.MySql

Bumps [Pomelo.EntityFrameworkCore.MySql](https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql) from 7.0.0-alpha.1 to 7.0.0-silver.1.
- [Release notes](https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql/releases)
- [Commits](https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql/compare/7.0.0-alpha.1...7.0.0-silver.1)

---
updated-dependencies:
- dependency-name: Pomelo.EntityFrameworkCore.MySql
  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-12-15 14:31:15 -06:00
Josh
2d67870ded
Fix Two-Factor form on mobile (#593)
* Make textboxes use keypad input on mobile

* Fix input boxes on mobile
2022-12-15 14:28:28 -06:00
dependabot[bot]
40283b1e20
Bump YamlDotNet from 12.2.0 to 12.2.1 (#591)
Bumps [YamlDotNet](https://github.com/aaubry/YamlDotNet) from 12.2.0 to 12.2.1.
- [Release notes](https://github.com/aaubry/YamlDotNet/releases)
- [Commits](https://github.com/aaubry/YamlDotNet/compare/v12.2.0...v12.2.1)

---
updated-dependencies:
- dependency-name: YamlDotNet
  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-12-14 22:04:39 -06:00
Slendy
28ff0ddc1d
Fix bug where redirect handler would fetch wrong token 2022-12-14 01:14:58 -06:00
Josh
6024d44508
Fix bugs and bump dependencies (#590)
Fixes a bug with yourReview where the slot type wouldn't be included
Fixes a bug with crossControllerPlanet where it would be included even if it was null or empty
2022-12-13 18:39:24 -06:00
Josh
d16132f67f
NET 7.0 support (#581)
* NET 7.0 support

* Bump Pomelo MySql to support EF7

* Its net7.0 time

* Trying to resolve dependencies by hand

* Fix .NET 7 warnings

* Bump InfluxDB version

* Fix bad null handling
2022-12-13 18:17:28 -06:00
dependabot[bot]
fe0b0726b5
Bump Redis.OM from 0.3.1 to 0.4.0 (#584)
Bumps [Redis.OM](https://github.com/redis/redis-om-dotnet) from 0.3.1 to 0.4.0.
- [Release notes](https://github.com/redis/redis-om-dotnet/releases)
- [Commits](https://github.com/redis/redis-om-dotnet/compare/v0.3.1...v0.4.0)

---
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-12-13 17:54:09 -06:00
github-actions[bot]
680bcf119e
Update the localization files (#585)
[skip ci] Update the localization files

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-12-12 21:39:44 -06:00
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