mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-04 23:13:12 -05:00
feat: add initial notification support
* Add updated recipe notification * Add recipe deleted notification * Add notifications translations * Shopping lists full c/u/d notifications * Add categories c/u/d notifications * Deal with None values in translation provider * Add tag c/u/d notifications * Add cookbook c/u/d notifications * use single key pairs for consistency with frontend * change dependency injection strategy * use generic update messages * use service to manage url generation server-side * use new strategies for messages * fix translator Co-authored-by: Miroito <alban.vachette@gmail.com>
This commit is contained in:
@@ -19,8 +19,14 @@ class RegistrationController(BasePublicController):
|
||||
|
||||
if not settings.ALLOW_SIGNUP and data.group_token is None or data.group_token == "":
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_403_FORBIDDEN, detail=ErrorResponse.respond("User Registration is Disabled")
|
||||
status_code=status.HTTP_403_FORBIDDEN,
|
||||
detail=ErrorResponse.respond("User Registration is Disabled"),
|
||||
)
|
||||
|
||||
registration_service = RegistrationService(self.deps.logger, get_repositories(self.deps.session), self.deps.t)
|
||||
registration_service = RegistrationService(
|
||||
self.deps.logger,
|
||||
get_repositories(self.deps.session),
|
||||
self.translator,
|
||||
)
|
||||
|
||||
return registration_service.register_user(data)
|
||||
|
||||
Reference in New Issue
Block a user