Skip to content

Commit

Permalink
Bugfix render_login_html_to_string (refs: #53) (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjholtkamp authored Feb 3, 2020
1 parent d6d0871 commit 6f754be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions djangosaml2idp/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ def build_authn_response(self, user, authn, resp_args, processor: BaseProcessor,
)
return authn_resp

def render_login_html_to_string(self, template_name, context=None, request=None, using=None):
def render_login_html_to_string(self, context=None, request=None, using=None):
""" Render the html response for the login action. Can be using a custom html template if set on the view. """
default_login_template_name = 'djangosaml2idp/#.html'
custom_login_template_name = getattr(self, 'login_html_template')
custom_login_template_name = getattr(self, 'login_html_template', None)
if custom_login_template_name:
try:
template = get_template(custom_login_template_name, using=using)
Expand Down

0 comments on commit 6f754be

Please # to comment.