Login failed because email address has not been verified

Summary
User cannot login to his registered accoun, error says “Login failed because email address has not been verified”

Steps to reproduce
I am using community edition Mattermost 10.0.1, yesterday I upgraded to this new version from 9.10.0.

Expected behavior
Expected behavior would be to normally login, or resend automatically verification email to user, however user is not verified, although he is registered in system and was already successfully chatting on mattermost.

Observed behavior
User was already using his account, but after some time in inactivity he came back, but was not able to log in, even after trying to change his password (email to refresh hi password came to his email after request, so it seems that system knows his email)
But the error message is still same: Login failed after email address has not been verified.
I can see user in console log, I can see his email there.
We are using community edition I can only change his password, but there is no option to resend verification email again.
At this point it seems that this user is blocked from using mattermost.

the problem was that I as admin wasn’t able to resend that email, neither the user was able to request that.

Finally I have accessed mmctl and manually verified all my users there.

Now I have tested to register new user and she got the verification email.

Here is list of commands I had to do to fix this issue:

login as mattermost user

sudo su mattermost

go to folder where is mmctl

cd /opt/mattermost/bin

login into my mattermost instance website

./mmctl auth login https://mattermost..cz:443

#then few prompts appeared:
connection name: myserver
username:<my_admin_mattermost_user_email>
password:<mattermost_password>

then I typed this to verify specific user:

./mmctl user verify

Then because I had many users without verified email in my database(almost all were) so I wanted to remove this potential issue, knowing all the users in my database were real:

using this command to create text file user_ids where all user_ids were stored

mmctl user list --all --json | jq -r ‘. | .id’ > user_ids.txt

then following loop verified automatically all user_ids in my database:

while read user_id; do
mmctl user verify $user_id
done < user_ids

2 Likes

Thanks so much for following up with the solution, Vojta! Happy Mattermosting to you out there!