mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
Previously, zerver.views.registration.confirmation_key was only available in development; now we make that more structurally clear by moving it to the special zerver/views/development directory. Fixes #11256.
7 lines
285 B
Python
7 lines
285 B
Python
from django.http import HttpResponse, HttpRequest
|
|
from zerver.lib.response import json_success
|
|
|
|
# This is used only by the casper test in 00-realm-creation.js.
|
|
def confirmation_key(request: HttpRequest) -> HttpResponse:
|
|
return json_success(request.session.get('confirmation_key'))
|