Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion drf_user/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def send_otp(value, otpobj, recip):
try:
rdata = send_message(message, otp_settings["SUBJECT"], [value], [recip])
except ValueError as err:
raise APIException(_(f"Server configuration error occurred: {str(err)}"))
raise APIException(_(f'Server configuration error occurred: {err}'))

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function send_otp refactored with the following changes:


otpobj.reactive_at = timezone.now() + datetime.timedelta(
minutes=otp_settings["COOLING_PERIOD"]
Expand Down