mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-11-28 11:35:05 +01:00
Move signal handlers and load them at the right time.
This commit is contained in:
@@ -90,7 +90,13 @@ class AccountViewSet(viewsets.ModelViewSet):
|
||||
|
||||
@list_route()
|
||||
def exists(self, request):
|
||||
"""Check if account exists."""
|
||||
"""Check if account exists.
|
||||
|
||||
Requires a valid email address as argument. Example:
|
||||
|
||||
GET /exists/?email=user@test.com
|
||||
|
||||
"""
|
||||
email = request.GET.get("email")
|
||||
if not email:
|
||||
raise ParseError("email not provided")
|
||||
|
||||
Reference in New Issue
Block a user