cross-posted from: https://lemmy.world/post/383055
Scroll to Update Three for a description of what turned out to be the problem, and potential solutions on Lemmy.world’s end.
When I visit lemmy.world in either Firefox or Chrome, go to the log in page, enter my credentials, and press the Login button, it changes to a spinner and spins forever. No error is logged to the browser console when I press the button.
On the other hand, when using Jerboa on my phone, I can vote, comment and post just fine. That makes me think it’s not an issue with this account.
I was briefly able to log in on my desktop a few days ago, but don’t think I did anything differently when it worked.
Update
I tried again with my username lowercased, and with the password copied and pasted instead of autofilled, and it worked despite not working a few seconds earlier when I tried it the usual way. I’m going to log out and see which of the two things it was that made the difference.
Update Two
Copying and pasting the password while leaving the username with mixed case also let me in, so it’s somehow related to the password manager autofill.
Update Three
I figured it out. I generated a password longer than lemmy.world’s password length limit. When creating the account, it appears to have truncated it to sixty characters. When using the password manager to autofill Jerboa, it’s also truncated it to sixty characters. When copying and pasting the password from the password manager manually, it truncated it to sixty characters, too. However, the browser extension autofill managed to include the extra characters, too, so the data in the textbox wasn’t correct.
In case an admin or Lemmy developer sees this, I’d recommend:
- Not limiting the password length. It should be hashed and salted anyway, so it doesn’t increase storage requirements if it’s huge.
- Giving feedback when creating an account with a too-long password that it’s invalid for being too long instead of simply truncating it. Ideally, the password requirements would be displayed before you’d entered the password, too.
- As mentioned by one of the commenters, giving feedback when an incorrect password is entered.
This is being work out for a future version of Lemmy/Lemmy-ui https://github.com/LemmyNet/lemmy-ui/issues/1120