Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃殌 Feature: A new environment variable for sms authentication to set the sms content. #4664

Open
2 tasks done
aakashcodess opened this issue Nov 12, 2022 · 7 comments
Open
2 tasks done
Labels
enhancement New feature or request

Comments

@aakashcodess
Copy link

馃敄 Feature description

A new environment variable for sms authentication to set the sms content.

馃帳 Pitch

Appwrite supports multiple sms providers. Some providers use templating flow to send sms, the secret/otp gets replaced in the sms content.
Example: Msg91 supports templating flow, If i have a template, Dear customer, use this One Time Password {{OTP}} to log in to your account. This OTP will be valid for the next 5 mins. Then {{OTP}} will get replaced with secret/otp from appwrite.

While for other providers like twilio, we get only secret/otp in sms body.

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@stnguyen90
Copy link
Contributor

@aakashcodess thanks for raising this issue! 馃檹 As I understand it, you're requesting a way to customize the SMS message for phone auth. We actually intentionally only send the code to avoid requiring to translate text as well as making it easier to copy the code for pasting.

That said, let's see if we get others who would also like to have a template for the SMS message.

@aakashcodess aakashcodess changed the title 馃殌 Feature: 馃殌 Feature: A new environment variable for sms authentication to set the sms content. Nov 12, 2022
@aayushbisen
Copy link
Contributor

Having this feature would be great.

@ursrudra
Copy link

ursrudra commented Mar 5, 2023

This feature will be a good addition, and it will fix the hash code issue as well

@Nicafs
Copy link

Nicafs commented Mar 30, 2023

Having a way to customize the sms content to the user seems like something essential (for me). After all, I don't want to have a system that only sends the code, but a customized text to the user. I myself would write the message I want to send to the user.

How would I use this feature that sends an SMS to a user, who would receive it without knowing who sent it, where it is from, nothing?

@felipeavilis
Copy link

A template for SMS content would be a great feature! This way i dont have to write a new function to generate a code, control the exp time, userid, etc etc etc... Its ready in Appwrite.

@ajitsinghkaler
Copy link

Its also a way so that OTP is automatically filled up in Android and is automatically copied in iOS. Even if we dont use translation we can use android native API for automatically filling up the OTP without user ever have to open the messages app. In iOS https://stackoverflow.com/questions/39631168/automatic-otp-verification-in-ios the otp is automatically copied if it use https://developer.apple.com/news/?id=z0i801mg correct formatting.

@JoshiJoshiJoshi
Copy link

Please consider providing SMS template as well. We do have email templates but for some reason we do not have one for sms.

@stnguyen90 stnguyen90 added enhancement New feature or request and removed feature labels Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

8 participants