Commit Graph

27 Commits (163cd9f589a485e6191c7ba8b3fa8f666deb80c8)

Author SHA1 Message Date
Your Name 163cd9f589 polish 1 week ago
Daniel Supernault a27033d2fd
Update LoginController 1 week ago
Daniel Supernault 538a11cccd
Update LoginController 1 week ago
Your Name 10559c23e3 Fix larastan noAuthFacadeInRequestScope in LoginController
Replace Auth::check() with $request->user() !== null in confirmEmail(),
which already has the request in scope, and drop the now-unused Auth
facade import. Resolves the 2 remaining project-wide larastan errors.
2 weeks ago
Daniel Supernault 1d96c94054
Refactor Auth, remove expensive middleware 2 weeks ago
Your Name c0cde2f682 refactor: move 52 legacy models from App\ to App\Models\
Move all Eloquent models from the app/ root directory to app/Models/
for consistency with modern Laravel conventions. The project already had
54 models in App\Models; this migrates the remaining 52 legacy models.

Changes:
- Move 52 model files from app/ to app/Models/
- Update namespace declarations in each model
- Update all ~1000 import references across the codebase
- Add Relation::morphMap() in AppServiceProvider for backward
  compatibility with existing polymorphic database records
- Add missing HasSnowflakePrimary imports for models that relied
  on same-namespace resolution
4 weeks ago
Your Name 54cfdf3c2b refactor: add return type declarations to controller methods
Adds explicit return type declarations to 498 controller methods
across 88 files. Types inferred from return statements:

- JsonResponse for response()->json() returns
- RedirectResponse for redirect()/back() returns
- View (contract) for view() returns
- Response for response() returns
- void for methods with no return value
- array for array returns
- string/int/bool for scalar returns

Also fixes 3 methods with incorrect bare returns:
- AvatarController::deleteAvatar - bare return → json response
- ImportPostController::checkPermissions - bare return → true
- RemoteAuthController::accountToId - bare return → empty array
4 weeks ago
Daniel Supernault 33dce75f2c
Pint app/ 4 weeks ago
Shift 19880c2ffb
Convert string references to `::class`
PHP 5.5.9 adds the new static `class` property which provides the fully qualified class name. This is preferred over using strings for class names since the `class` property references are checked by PHP.
4 weeks ago
Daniel Supernault ef6187b917
Fix LoginController 9 months ago
Daniel Supernault 34278c77c2
Update LoginController 9 months ago
Daniel Supernault 374344754e
Lint 9 months ago
Daniel Supernault 8a89e3c963
Update captcha, use config_cache helper 3 years ago
Daniel Supernault 0325e17115
Update LoginController, fix captcha validation error message 3 years ago
Daniel Supernault 221ddce0fa
Update login form, allow admins to enable captcha after X failed attempts. Admins can set the number of attempts before captcha is shown, default is 2 attempts before captcha is required 3 years ago
Daniel Supernault c071c7195e
Update login/register views and captcha config, enable login or register captchas or both 3 years ago
Daniel Supernault 50ab2e2039
Add cloud ip bans to BouncerService 3 years ago
Daniel Supernault 042c5b6c33
Improve onboarding 5 years ago
Daniel Supernault 6bf92bed27
Update LoginController, bump decayMinutes from 1 to 60 5 years ago
Daniel Supernault 082c1ccb26
Add hCaptcha 6 years ago
Shleeble 7953be29fe
Update LoginController.php 8 years ago
Daniel Supernault 89bd8f9653
Update LoginController 8 years ago
Daniel Supernault 2b76db6421
Update LoginController 8 years ago
daniel b8abbdd90f Apply fixes from StyleCI 8 years ago
Daniel Supernault bde6c0f1ff Update LoginController 8 years ago
Daniel Supernault 92939ed867 Add recaptcha to login/register form 8 years ago
Daniel Supernault a034358c98 Add Laravel Framework 9 years ago