CuriousLearner / django-phone-verify

A Django app to support phone number verification using security code / One-Time-Password (OTP) sent via SMS.
https://www.sanyamkhurana.com/django-phone-verify/
GNU General Public License v3.0
258 stars 61 forks source link

Custom Verification Message Option #74

Closed davidkircos closed 8 months ago

davidkircos commented 2 years ago

Allow the user to pass a custom verification message when calling send_security_code_and_generate_session_token

We use phone-verify to open accounts and to verify certain user behaviors. In both cases, it is nice to have the option to send a different message to the user depending on the situation.

CuriousLearner commented 2 years ago

@davidkircos There is already a MESSAGE setting expected like: "MESSAGE": "Welcome to {app}! Please use security code {security_code} to proceed.",

So, you can keep it that way but can provide an option to override the default message when needed.

CuriousLearner commented 8 months ago

Closing this PR, as there is already an option to customize the message. Please reopen if you think otherwise and we can discuss @davidkircos

Thanks :)