YunoHost-Apps / pixelfed_ynh

The federated image shareing service Pixelfed for YunoHost
https://pixelfed.org/
GNU Affero General Public License v3.0
44 stars 15 forks source link

Can't send confirmation email #174

Closed blogdemoi closed 1 year ago

blogdemoi commented 2 years ago

Describe the bug

After Pixelfed installation, I register and an e-mail is sent to confirm my e-mail address. However on clicking on this mail it opens a login web page, I log in, then I have a webpage stating:

Sorry, this page isn't available. The link you followed may be broken, or the page may have been removed. Go back to Pixelfed.

I see that this behavior was previously reported here:

https://github.com/pixelfed/support/issues/84#

and

https://github.com/pixelfed/support/issues/107#

Context

Logs

I just have the logs of the installation, can't find other logs about my problem.

lapineige commented 2 years ago

For the record, the related forum thread: https://forum.yunohost.org/t/pixelfeld-impossible-de-confirmer-mon-adresse-e-mail/19552

mxxivcz commented 1 year ago

I used following workaround to get confirmed email:

root@yuno:~# sudo php8.0 /var/www/pixelfed/artisan db pixelfed=> update users set email_verified_at=now() where username = 'xyz';

lapineige commented 1 year ago

Ok... what is that command doing O_o ?

Thanks for sharing this !

mxxivcz commented 1 year ago

First command connects to Pixelfed database, the second command modifies data so it looks like the user confirmed email.

There's probably another workaround by disabling email verification using ENFORCE_EMAIL_VERIFICATION=false in file /var/www/pixelfed/.env .