Reset password on self server does not work on 25.x and 26.x versions

micdj
Posts: 31
Joined: Wed Jan 06, 2021 2:23 am

Post

My server was on 25.x version before upgrade, and reset password didn t work, but I see you change mail configuration with new mail DNS mode, so i thinked the issue was there, but now I upgrade server tò 26.03.02, I config corretly mail sender and It works, because I try to add new user, but reset password still not.work I think there Is a bug. I attach screenshot of issue
You do not have the required permissions to view the files attached to this post.
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

The email is probably not being delivered due to an incorrectly configured email account. You can run supla:debug:mailer from the console.
SUPLA.... Nareszcie w domu.
micdj
Posts: 31
Joined: Wed Jan 06, 2021 2:23 am

Post

I see from console command:

root@cloud-server-0:~/supla-docker# docker exec supla-cloud php bin/console supla:debug:mailer

SUPLA Mailer debugger
=====================

Recipient e-mail address: :
>

Aborted.
User avatar
fracz
Posts: 2342
Joined: Fri Oct 28, 2016 10:56 pm
Location: Kraków
Has thanked: 4 times
Been thanked: 6 times

Post

You must run this command in an interactive mode.

Code: Select all

docker exec -it supla-cloud php bin/console supla:debug:mailer
Then put an email address you can check and send a test e-mail with this command.
micdj
Posts: 31
Joined: Wed Jan 06, 2021 2:23 am

Post

result: message sent, is not an issue on setting mail sender account, as I told you.
You do not have the required permissions to view the files attached to this post.
micdj
Posts: 31
Joined: Wed Jan 06, 2021 2:23 am

Post

Hello i find the issue, host doesn't solve ip address during reset password routine, so I patch docker with this:

Code: Select all

docker exec supla-cloud sed -i \
  's|curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);|curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);\n        curl_setopt($ch, CURLOPT_RESOLVE, ["switchdomo.eu:443:82.223.15.248", "switchdomo.eu:80:82.223.15.248"]);|' \
  /var/www/cloud/src/SuplaBundle/Supla/SuplaHttpClient.php
Can you patch correctly in next release?

Thank you

Return to “Help”