Jump to content
  • 0

Has anyone managed to make the password recovery system work?


HelenaToDev

Question

First, I apologize for my English.

I would really like to understand how the engine's password recovery system works, as I always configure everything correctly, as it always returns an error or simply doesn't send it to the player.

Is the system buggy?

Link to comment
Share on other sites

20 answers to this question

Recommended Posts

  • 0

https://prnt.sc/25m0og6

 

Changed to less secure.

 

My settings

 

  "SmtpSettings": {
    "FromAddress": "suporte.vinafluer@gmail.com",
    "FromName": "Suporte - Vina Fluer",
    "Host": "smtp.gmail.com",
    "Port": 465,
    "UseSsl": false,
    "Username": "suporte.vinafluer@gmail.com",
    "Password": "me password"

 

whats wrong?

 

 

Link to comment
Share on other sites

  • 0
1 minute ago, HelenaToDev said:

"SmtpSettings": {
    "FromAddress": "suporte.vinafluer@gmail.com",
    "FromName": "Suporte - Vina Fluer",
    "Host": "smtp.gmail.com",
    "Port": 465, <--- This to 587
    "UseSsl": false, <--- This change to True
    "Username": "suporte.vinafluer@gmail.com",
    "Password": "me password"

 

Link to comment
Share on other sites

  • 0
Just now, HelenaToDev said:

I tried with these changes, but it still didn't work. :61_sob:

Strange, with all the configs that i said the system will work fine
You've restarted the server?

Can you give me a screenshot of the error on your server?

Link to comment
Share on other sites

  • 0

Bcause there is my configs:
 

Spoiler


  "SmtpSettings": {
    "FromAddress": "inmortaltower@gmail.com",
    "FromName": "Inmortal Tower",
    "Host": "smtp.gmail.com",
    "Port": 587,
    "UseSsl": true,
    "Username": "inmortaltower@gmail.com",
    "Password": "MyPassword"
  },

and i have the less secure apps enabled for "inmortaltower@gmail.com"

unknown.png

 

The server will give to you an error if anything goes wrong, but for apply correctly the changes you need to restart the server, and maybe with that will work fine

Link to comment
Share on other sites

  • 0
15 minutes ago, HelenaToDev said:

but on console of the engine, no errors appear, not even in logs

A
If you dont have errors on the console the system its working fine xD
Maybe you'll need to view on the spam box or eliminated emails
(If you try to restore your password, and NO ERRORS APPEAR ON THE CONSOLE, means the email was sended succesfully to the email)
But, if you have a big error on the console, that means, the system doesn't was configured correctly

So, i think you've the possible next problems:

  • You had maked your account with any error on the email to restore (i.e: suportee.vinafluer@gmail.com / sporte.vinafluer@gmail.com)
  • You didn't check your spambox or the eliminated folder on your email to restore

The possibles solutions i'have for you:

  • 1) Try making a new account on your engine with a new email, and try to restore to that email (You can do the new acc with my email too : kamusvalenzuela2@gmail.com)
  • 1-b) if you use my email i'll check if the email its sended correctly to me
  • 2) I know it will sound repetitive, but check your spam and deleted mail box

 

i'll be here if you need more help

 

Here's another example:

unknown.png

Link to comment
Share on other sites

  • 0

Yes, I also checked the Spam box, created any email, created an account in the game and then tried to reset the password...
Nothing was sent to the registered email, I'm going crazy, he's getting lost in limbo.
I've already checked if my VPS is blocking any outbound ports, but nothing is blocking

Link to comment
Share on other sites

  • 0
3 minutes ago, HelenaToDev said:

is it Windows or Linux?

Windows, i have a own PC dedicated to hosting the game here on Argentina

Bcause i had a lot of problems with the VPS

(The only one who was worked fine for me, was the Hosting of JC)

 

unknown.png

Link to comment
Share on other sites

  • 0
1 minute ago, HelenaToDev said:

but I'm suspecting that it's the hosting that's blocking emails...

Me too
if you want i can help u to test the server with my private hosting pc

(Its safe, don't worry)

 

PS: For security reasons, all tests must be private for the confidentiality of some data.

The test will undoubtedly be about the "Blocking" of your VPS (but we are 95% sure without this test, that it is your VPS that blocks the emails)

Link to comment
Share on other sites

  • 0

Ive made a simple code to test in VPS if email system is blocking.

 

Quote

using System;
using System.Net;
using System.Net.Mail;
using System.Text;

namespace EnviarEmails
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Digite seu e-mail:");
            string email = Console.ReadLine();
            Console.WriteLine("Digite sua senha:");
            string senha = Console.ReadLine();
            Console.WriteLine("Digite para quem quer enviar:");
            string emailDestinatario = Console.ReadLine();
            Console.WriteLine("Digite o Título do Email:");
            string titulo = Console.ReadLine();
            Console.WriteLine("Digite a mensagem:");
            string mensagem = Console.ReadLine();


            Console.WriteLine("Aperte ENTER para enviar");
            Console.ReadLine();

            try
            {
                MailMessage mailMessage = new MailMessage(email, emailDestinatario);

                mailMessage.Subject = $"{titulo}";
                mailMessage.IsBodyHtml = true;
                mailMessage.Body = $"<p> {mensagem} </p>";
                mailMessage.SubjectEncoding = Encoding.GetEncoding("UTF-8");
                mailMessage.BodyEncoding = Encoding.GetEncoding("UTF-8");

                SmtpClient smtpClient = new SmtpClient("smtp.gmail.com", 587);

                smtpClient.UseDefaultCredentials = false;
                smtpClient.Credentials = new NetworkCredential(email, senha);

                smtpClient.EnableSsl = true;

                smtpClient.Send(mailMessage);

                Console.WriteLine("Seu email foi enviado com sucesso! :)");
                Console.ReadLine();
            }
            catch (Exception)
            {
                Console.WriteLine("Houve um erro no envio do email :(");
                Console.ReadLine();
            }
        }
    }
}
 

And when I open the program on the VPS, I can send an email normally through port 587

Link to comment
Share on other sites

  • 0

I tested this too but its not working for me. I tried the same config but my credentials but seems to not be sending from the server? I use JC hosting.

I use 0.7.0.126.

Any suggestions?

 

  "SmtpSettings": {
    "FromAddress": "crelasia@gmail.com",
    "FromName": "Crelasia Admin",
    "Host": "smtp.gmail.com",
    "Port": 587,
    "UseSsl": true,
    "Username": "crelasia@gmail.com",
    "Password": "verysecretpassword"
  },

 

Update:

After lots of testing I narrowed down to the mail is not received by hotmail accounts, gmail accounts and other works.

 

 

Edited by Worldofjimmy
Update
Link to comment
Share on other sites

  • 0
3 hours ago, Worldofjimmy said:

I tested this too but its not working for me. I tried the same config but my credentials but seems to not be sending from the server? I use JC hosting.

I use 0.7.0.126.

Any suggestions?

 

  "SmtpSettings": {
    "FromAddress": "crelasia@gmail.com",
    "FromName": "Crelasia Admin",
    "Host": "smtp.gmail.com",
    "Port": 587,
    "UseSsl": true,
    "Username": "crelasia@gmail.com",
    "Password": "verysecretpassword"
  },

 

Update:

After lots of testing I narrowed down to the mail is not received by hotmail accounts, gmail accounts and other works.

 

 

I already suspected that, I'll test it here

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...