Commit graph

1941 commits

Author SHA1 Message Date
FeTetra
40a4d5e239 Fix Koko suggestions 2025-02-20 21:12:34 -05:00
FeTetra
3fb1441ac1 Small fixup and fix unit test conflicts 2025-02-17 22:36:39 -05:00
FeTetra
f77e5eeee2 Revert translation change 2025-02-17 09:45:31 -05:00
FeTetra
048f60cd9d Remove remaining code from before middleware 2025-02-17 08:23:00 -05:00
FeTetra
3fb598ec44 Edit invalid email message 2025-02-16 22:58:52 -05:00
FeTetra
3041d2c0fa Replace configuration strings with translatable strings 2025-02-16 22:48:27 -05:00
FeTetra
479b1da903 Fix string formatting on announce text 2025-02-16 22:18:59 -05:00
FeTetra
0c8ca731a4 Slight refactor and polish 2025-02-16 21:51:56 -05:00
FeTetra
64e21aba9f Remove empty array items after split 2025-02-16 21:31:08 -05:00
FeTetra
97329369ce Missed another 2025-02-16 20:52:21 -05:00
FeTetra
91c5976a64 Oops missed one 2025-02-16 19:56:19 -05:00
FeTetra
561e1d4e26 Move everything into middleware 2025-02-16 19:34:15 -05:00
FeTetra
a322a32b38 Commit of shame 2025-01-26 20:40:42 -05:00
FeTetra
67a8c6d4a8
Merge branch 'LBPUnion:main' into emailenforcement_pr 2025-01-26 14:50:56 -05:00
Kat
b428b35f3d
a few fixes related to highscore notifications (#1086)
Some checks failed
Continuous Integration / Build & Test (push) Has been cancelled
Upload Translations to Crowdin / crowdin-sync (push) Has been cancelled
Build Docker Image / Build and Publish (push) Has been cancelled
Qodana / qodana (push) Has been cancelled
2025-01-14 03:13:41 +00:00
Josh
a528c65445
Fix pagination for banned users in the mod panel (#1043)
Some checks failed
Continuous Integration / Build & Test (push) Has been cancelled
Upload Translations to Crowdin / crowdin-sync (push) Has been cancelled
Build Docker Image / Build and Publish (push) Has been cancelled
Qodana / qodana (push) Has been cancelled
2025-01-11 05:19:14 +00:00
github-actions[bot]
376e1464a2
Update the localization files (#1084)
* [skip ci] Update the localization files

* Make website work with languages without an associated CultureInfo

---------

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: Slendy <josh@slendy.pw>
2025-01-10 22:02:17 -06:00
Kat
4f9dc2a52d
Notify a user when their highscore is beaten (#1083)
* Notify a user when their highscore is beaten

* formatting

Co-authored-by: sudokoko <sudo@koko.rip>

* noPrefix -> prefix

* documentation and fix closing tag

* better documentation

---------

Co-authored-by: sudokoko <sudo@koko.rip>
Co-authored-by: Josh <josh@slendy.pw>
2025-01-11 03:44:53 +00:00
Josh
301e5d0d32
Update Github Action versions (#1085)
* Update CI actions

* Update from deprecated Qodana actions version
2025-01-10 21:25:56 -06:00
FeTetra
f6cbafd524 Slight refactor and finish enforcement on endpoints 2024-12-23 02:11:13 -05:00
FeTetra
5bdb1c0501 General cleanup, move warning messages, fix bugs 2024-12-20 00:05:47 -05:00
Josh
2f4a162db3
Upgrade upload artifact action to v4 (#1080)
Some checks failed
Continuous Integration / Build & Test (push) Has been cancelled
Upload Translations to Crowdin / crowdin-sync (push) Has been cancelled
Build Docker Image / Build and Publish (push) Has been cancelled
Qodana / qodana (push) Has been cancelled
2024-12-17 23:38:26 +00:00
FeTetra
cb6d77203b Fix comments and unauthorize null users 2024-12-17 03:12:26 -05:00
FeTetra
7495c41d44 Add announcement text to notify users of email enforcement requirements 2024-12-17 02:57:55 -05:00
FeTetra
9e9c96e1a3 Prevent access to GameServer features if email enforcement is enabled and email is unverified 2024-12-17 02:19:53 -05:00
FeTetra
fbe3ceec7c Slight method refactor 2024-12-16 23:07:30 -05:00
FeTetra
980a2af3c6 Add email blacklist and refactor email validity checks 2024-12-16 20:54:52 -05:00
FeTetra
8b8756e6de
Implement checkboxes in slot settings to toggle various slot properties (#1063)
Some checks failed
Continuous Integration / Build & Test (push) Has been cancelled
Upload Translations to Crowdin / crowdin-sync (push) Has been cancelled
Build Docker Image / Build and Publish (push) Has been cancelled
Qodana / qodana (push) Has been cancelled
* Implement checkboxes in slot settings to toggle various slot properties

* Fix UI inconsistencies in checkboxes

* Update ProjectLighthouse.Servers.Website/Pages/SlotSettingsPage.cshtml

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

* Update ProjectLighthouse.Servers.Website/Pages/SlotSettingsPage.cshtml

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

* Fix missing end quote and add extra margin

* Update SlotSettingsPage.cshtml.cs

Resolve file conflict

---------

Co-authored-by: Josh <josh@slendy.pw>
2024-12-11 04:40:40 +00:00
FeTetra
f059b20489
Fix missing filtering, filter inconsistencies, and filter logging (#1082)
Some checks are pending
Continuous Integration / Build & Test (push) Waiting to run
Upload Translations to Crowdin / crowdin-sync (push) Waiting to run
Build Docker Image / Build and Publish (push) Waiting to run
Qodana / qodana (push) Waiting to run
* Fix missing filtering, filter inconsistencies, and filter logging

* Remove unused import and replace removed logger

* Make filter log arguments optional

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

Co-authored-by: sudokoko <sudo@koko.rip>

* Update ProjectLighthouse.Servers.Website/Pages/Debug/FilterTestPage.cshtml.cs

Co-authored-by: sudokoko <sudo@koko.rip>

* Replace filter location strings with enum

* Rename enum to FilterLocation for readability

---------

Co-authored-by: sudokoko <sudo@koko.rip>
2024-12-11 01:01:37 +00:00
sudokoko
a3022ff5b4
Refactor web-based comment deletion routine (#1079)
Some checks failed
Continuous Integration / Build & Test (push) Has been cancelled
Upload Translations to Crowdin / crowdin-sync (push) Has been cancelled
Build Docker Image / Build and Publish (push) Has been cancelled
Qodana / qodana (push) Has been cancelled
* Refactor web-based comment deletion routine

* Apply suggestions from code review
2024-11-07 15:44:41 -05:00
Henry Asbridge
f1fe542656
Add config options to restrict signup on certain platforms (#1077)
Some checks failed
Continuous Integration / Build & Test (push) Has been cancelled
Upload Translations to Crowdin / crowdin-sync (push) Has been cancelled
Build Docker Image / Build and Publish (push) Has been cancelled
Qodana / qodana (push) Has been cancelled
* feat: add config options to restrict signup on certain platforms

* add isPSN extension to platform enum

* actually forbid on invalid sign-up attempt, and fix compiler warnings

* Fix code review suggestions

* Apply suggestions from code review

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

* Fix qodana pipeline

---------

Co-authored-by: Josh <josh@slendy.pw>
2024-11-02 16:40:55 +00:00
qodana-cloud[bot]
b37be0d821
Add qodana CI checks (#1076)
Some checks failed
Continuous Integration / Build & Test (map[database:true fullName:ubuntu-latest prettyName:Linux webTest:true]) (push) Has been cancelled
Upload Translations to Crowdin / crowdin-sync (push) Has been cancelled
Build Docker Image / Build and Publish (push) Has been cancelled
Qodana / qodana (push) Has been cancelled
* Add qodana.yaml file

* Add github workflow file

* Update qodana.yaml

---------

Co-authored-by: Qodana Application <qodana-support@jetbrains.com>
Co-authored-by: Henry Asbridge <henry@vorax.org>
2024-10-10 20:08:41 +00:00
Slendy
fdd022d579
Delete Toki and Newspeak languages
Some checks failed
Continuous Integration / Build & Test (map[database:true fullName:ubuntu-latest prettyName:Linux webTest:true]) (push) Has been cancelled
Upload Translations to Crowdin / crowdin-sync (push) Has been cancelled
Build Docker Image / Build and Publish (push) Has been cancelled
They don't have valid CultureInfo's, and it breaks our translation system
2024-09-29 20:24:44 -05:00
github-actions[bot]
893e215e93
Update the localization files (#1042)
[skip ci] Update the localization files

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-09-29 19:31:18 -05:00
Slendy
81acde7485
Add manual trigger for Crowdin GitHub action 2024-09-29 19:28:13 -05:00
Josh
baaee86e67
Allow users to manually setup two factor with secret key (#1071)
* Allow users to manually setup two factor with secret key

* Remove empty lines in markup
2024-09-30 00:11:43 +00:00
PorkchopGMX
528ee8dd17
Update README.md (#1065)
Some checks failed
Continuous Integration / Build & Test (map[database:true fullName:ubuntu-latest prettyName:Linux webTest:true]) (push) Has been cancelled
Upload Translations to Crowdin / crowdin-sync (push) Has been cancelled
Build Docker Image / Build and Publish (push) Has been cancelled
2024-09-20 05:03:59 +00:00
Josh
9030d644fa
Identify NpTicket platform based on signature identifier instead of issuer ID (#1062)
Some checks failed
Continuous Integration / Build & Test (map[database:true fullName:ubuntu-latest prettyName:Linux webTest:true]) (push) Has been cancelled
Upload Translations to Crowdin / crowdin-sync (push) Has been cancelled
Build Docker Image / Build and Publish (push) Has been cancelled
* Identify platform based on signature identifier instead of issuer id

* Use signature identifier to identify PS3

* Remove extra whitespace
2024-09-10 19:46:41 +00:00
FeTetra
917cccb3b0
Add button and controller to remove user avatar (#1057)
Some checks failed
Upload Translations to Crowdin / crowdin-sync (push) Has been cancelled
Continuous Integration / Build & Test (map[database:true fullName:ubuntu-latest prettyName:Linux webTest:true]) (push) Has been cancelled
Build Docker Image / Build and Publish (push) Has been cancelled
* Add button and controller to remove user avatar

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

Suggestion provided to add logging, a return, and sending a notification to the affected user

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

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

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

---------

Co-authored-by: Josh <josh@slendy.pw>
2024-09-02 21:27:27 +00:00
Josh
0af064ad1e
Implement player count per platform and player list API endpoints (#1014)
Some checks failed
Continuous Integration / Build & Test (map[database:true fullName:ubuntu-latest prettyName:Linux webTest:true]) (push) Has been cancelled
Upload Translations to Crowdin / crowdin-sync (push) Has been cancelled
Build Docker Image / Build and Publish (push) Has been cancelled
* Implement player count per platform and player list API endpoints

* Fix inconsistencies in the XML documentation

* Update PlayerListResponse.cs
2024-08-29 01:17:03 +00:00
Kat
fb2192d37d
filter locked levels from lucky dip (#1055)
* filter locked levels from lucky dip

* yeah sure

* put the filter in a more reasonable place
2024-08-29 01:16:08 +00:00
dependabot[bot]
a0157c9a99
Bump SixLabors.ImageSharp from 3.1.4 to 3.1.5 in /ProjectLighthouse (#1048)
Bumps [SixLabors.ImageSharp](https://github.com/SixLabors/ImageSharp) from 3.1.4 to 3.1.5.
- [Release notes](https://github.com/SixLabors/ImageSharp/releases)
- [Commits](https://github.com/SixLabors/ImageSharp/compare/v3.1.4...v3.1.5)

---
updated-dependencies:
- dependency-name: SixLabors.ImageSharp
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-23 13:35:13 -04:00
Henry Asbridge
e060f55896
Base64 encode auth tokens (#1029)
* Base64 encode auth tokens to prevent issues in emails
This fixes #1023, which should in turn solve some issues people were having with emails.

* Make test bcrypt hash things as the auth token isn't one by default

* Update ProjectLighthouse/Helpers/CryptoHelper.cs

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

* Make only email tokens base64 encoded

---------

Co-authored-by: Zaprit <zaprit@hugespaceship.io>
Co-authored-by: Josh <josh@slendy.pw>
2024-06-29 18:14:16 +00:00
Slendy
98a7f95e65
Disable comments on story levels if comments are turned off in config. 2024-06-25 04:44:03 -05:00
Slendy
541172b001
Don't reuse instances of SHA256 when hashing. 2024-06-25 04:38:21 -05:00
Slendy
573e7c4f1f
Categorize review tests as unit tests 2024-06-25 04:20:18 -05:00
Josh
7fbfd618be
Merge pull request from GHSA-8q42-63xx-75pf 2024-06-25 04:18:43 -05:00
jackcaver
0fd76f1662
Remove license check (#1035)
* remove license check

* removed IsDirty

---------

Co-authored-by: jackcaver <jackcaver@users.noreply.github.com>
2024-06-23 01:38:59 +00:00
Kat
be11e138f0
Implement the ability for moderators to delete all scores/comments by a user (#1027)
* Implement delete all scores/comments

* Fix formatting in AdminUserController.cs

* Move logging out of loop

* Batch delete scores based on UserId

* Batch update comments instead of using a foreach

* Use html entity instead of apostrophe character

* Confirm before deleting all comments/scores

* Remove unnecessary database.SaveChanges
2024-06-15 02:27:18 +00:00
sudokoko
e89a4c27fa
Fix mismatch between user/targetedUser in force verify endpoint 2024-05-31 18:40:59 -04:00