If email isn't working, then you'll have to turn off email verification in your instance's settings before anyone is able to log in without encountering that spinner.
To get email to work, you'll need to provide SMTP credentials in lemmy.hjson
on the server you're using to host lemmy. An example SMTP configuration is shown in the docs here: https://join-lemmy.org/docs/en/administration/configuration.html
You may also have to restart lemmy after you update the configuration. (I do this on my server via docker-compose restart
.)
When I set up lemmy on my server with lemmy-ansible, the config file was initially set up with a valid-looking SMTP config. But when emails weren't working I looked more closely, and it turned out that there is something broken with the SMTP service that lemmy is integrated with by default. It seems that you will need to provide your own credentials.
I'm using an SMTP service provided by a web hosting service I pay for, but you can also use gmail in a pinch: https://kinsta.com/blog/gmail-smtp-server/