mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
This code adds a dependency on python-django-auth-openid, installable as django-openid-auth from PyPI. On prod, one needs to run a syncdb in order to create the required tables. A database *migration* is not required, as these are new tables only. (imported from commit c902a0df8d589d93743b27e480154a04402b2c41)
9 lines
379 B
Python
9 lines
379 B
Python
# Defer importing until later to avoid circular imports
|
|
|
|
def openid_failure_handler(request, message, status=403, template_name=None, exception=None):
|
|
# We ignore template_name in this function
|
|
|
|
from django_openid_auth.views import default_render_failure
|
|
|
|
return default_render_failure(request, message, status=403, template_name="openid_error.html", exception=None)
|