github jaypyles/Scraperr v1.0.8
v1.0.8 (Optional Registration)

latest releases: v1.1.6, v1.1.2, v1.1.1...
4 months ago

Summary

Introduces functionality to conditionally disable user registration based on the REGISTRATION_ENABLED environment variable. When registration is disabled, a default user is automatically created if credentials are provided.

๐Ÿ” Registration Check API

  • Added /auth/check endpoint to expose REGISTRATION_ENABLED value to the frontend.

๐Ÿ› ๏ธ Startup Logic

  • On startup, the backend checks for required default user credentials:
    • DEFAULT_USER_EMAIL
    • DEFAULT_USER_PASSWORD
    • DEFAULT_USER_FULL_NAME
  • If registration is disabled and any of these are missing, the app will log an error and exit.

โœ… Frontend Integration

  • Merged AI and auth check responses into a single /api/check endpoint.
  • Updated login form UI to reflect the registration status:
    • Hides the "Sign up" button when registration is disabled.
    • Displays a message indicating that registration is not available.

๐Ÿงน Minor Fixes

  • Improved response format for AI availability check:
    GET /api/ai/check now returns { ai_enabled: true/false }.
  • Moved and renamed API route for better organization and frontend access.

Don't miss a new Scraperr release

NewReleases is sending notifications on new releases.