Members can't sign in, "Please enter a valid email address"

My issue is that some members can’ sign in. The problem only affects some users who get the “Please enter a valid email address!” error message. They also don’t receive the login mail.

The site is running Ghost Version 3.37.1 on a self hosted Ubuntu 20.04.1 LTS server by Hetzner with a MySQL database (Ver 8.0.21). Node is v12.18.3.

The theme is a slightly customized version of Lyra. Paid members are activated, free members are deactivated. We’re managing payments via Steady (a service similar to Patreon) and manuelly enter them with name and mail address.

Some of our first members reported that they received “Please enter a valid email address!” errors. Their addresses are set up in the members area in the backend. After the latest update introducing the portal the error is still there, but saying “Failed to log in, please try again”.

I can reproduce the error myself when I enter their mail adresses in multiple browsers. We tested the feature with and mail addresses without issues, that worked then and still works now.

Curiously, entering completely random mail addresses like “asd@asdasdasd.asd” seems to produce a success message. So far I’ve only seen the error with addresses who are members in the backend.

I made some changes to the signup.hbs0 file, mostly translation, redirecting the “Signup” button to our external payment provider, but nothing huge. Is it possible I might’ve broken something here?

Since fake mail addresses work, I suspect that it has something to do with however the address is verified. Where can I check these settings? Are there logs that might help with figuring out the issue?

Hey @sofakissen,

Are you still seeing the same Portal error in the latest version ? “Failed to log in, please try again” error is shown when server is unable to send the email to address for any reason, so server logs are a good place to check for more error details on why its failing in this particular case. Also, can you share what kind of email address are getting this failure, maybe they have something in common where your Mail provider is unable to send emails to them ?

I realize this is a bit old, but at least one of our members is currently getting this same error.

Very similar circumstances: we manually added this member in the backend, the theme is a customized version of Casper, and we recently added Portal. We haven’t made any edits to the signup file, however, and we’re currently on 3.40.5.

I was able to use the link generated by “Impersonate” to bypass the error and allow them to log in, but now the problem is that they don’t seem to be able to access paid posts, despite their complimentary premium plan.

I had the same issue. For some reason, the generic Mailgun set up worked for a while and then stopped. Editing the config.production.json file fixed it.

Details: Signup/login fails in Dawn theme with Portal (Beta)