Rank 2: Process
i can access my localhost, should i provide https://localhost/ instead of https://example.com%27/ ?
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 2: Process
i can access my localhost, should i provide https://localhost/ instead of https://example.com%27/ ?
Rank 2: Process
Admin
It should be the url of your client application that you're building
Admin
Maybe this will help clarify: https://dev.to/appwrite/30daysofappwrite-email-verification-and-forgot-password-420o.
Some things might be outdated, but the general idea/flow is the same
Rank 2: Process
still not clear, how she/he got the url or created the urllet promise = sdk.account.createRecovery('email@example.com', 'http://myappdomain/resetPassword');
Admin
you as the developer set it because you're building and deploying the app
Rank 2: Process
if i dont use url for redirecting, and just extracting the userid and secret key from url (received url in mail ) and then update the password, this will be secure ?
Admin
How are you going to update the password?
Rank 2: Process
this the url got in mail will extract the user id and key and pass it to update method
Rank 2: Process
here is the update method from doc import 'package:appwrite/appwrite.dart';
Client client = Client(); Account account = Account(client);
client .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateRecovery( userId: '[USER_ID]', secret: '[SECRET]', password: 'password', passwordAgain: 'password', );
result .then((response) { print(response); }).catchError((error) { print(error.response); });}```Admin
Sure
Rank 2: Process
is this is a good idea with respect to security concern ?
Admin
Sure
Rank 2: Process
ok thanks
Rank 2: Process
how to edit emails profile picture, name, title etc, and why mail is receiving in spam although i am using SMTP.
Admin
There's an environment variable for the from email.
What SMTP provider are you using?
Rank 2: Process
sendinblue
Admin
Maybe the domain is misconfigured
Rank 2: Process
how to configure domain ?
Rank 2: Process
for domain configration have to buy domain ?
Admin
Yes and you typically have to do some extra stuff to prove you're the owner. I'm sure you can Google how to make sure your emails don't end up in spam
Rank 2: Process
i am looking for totally free smtp, do u have any idea ?
Admin
Regardless of whatever you use, it will take effort to get it configured
Rank 2: Process
so setting up own smtp means, landing in spam?
Admin
If you set up your own SMTP server, it will end up in spam. If you use a provider, you're less likely, but you have to configure it properly