Annotate zerver/views/__init__.py.

This commit is contained in:
Umair Khan 2016-08-08 16:41:50 +05:00 committed by Tim Abbott
parent 25dd1aeb5c
commit 00eab4e526
1 changed files with 2 additions and 0 deletions

View File

@ -731,6 +731,7 @@ def send_registration_completion_email(email, request, realm_creation=False):
additional_context=context)
def redirect_to_email_login_url(email):
# type: (str) -> HttpResponseRedirect
login_url = reverse('django.contrib.auth.views.login')
redirect_url = login_url + '?email=' + urllib.parse.quote_plus(email)
return HttpResponseRedirect(redirect_url)
@ -775,6 +776,7 @@ def create_realm(request, creation_key=None):
request=request)
def confirmation_key(request):
# type: (HttpRequest) -> HttpResponse
return json_success(request.session.get('confirmation_key'))
def accounts_home(request):