Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.

Commit

Permalink
fix: Rename sms template
Browse files Browse the repository at this point in the history
  • Loading branch information
rubengrill authored and relekang committed Sep 14, 2018
1 parent 0f46de1 commit a8d1522
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nopassword/backends/sms.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def send_login_code(self, code, context, **kwargs):
Send a login code via SMS
"""
from_number = self.from_number or getattr(settings, 'DEFAULT_FROM_NUMBER')
sms_content = render_to_string('registration/login_sms.txt', context)
sms_content = render_to_string(self.template_name, context)

self.twilio_client.messages.create(
to=code.user.phone_number,
Expand Down

0 comments on commit a8d1522

Please sign in to comment.