updated registration errors #2516

Open
parallel588 wants to merge 4 commits from gitlab-mr-iid-1249 into develop
Member
https://git.pleroma.social/pleroma/pleroma/-/issues/2205 https://git.pleroma.social/pleroma/pleroma/pulls/6442
Owner

This shows only one error. I.e. good captcha + invalid token shows "Invalid token", but bad captcha + invalid token doesn't show anything.

{"error":"{\"captcha\":[\"Invalid CAPTCHA (Missing parameter: captcha_solution)\"]}"}

{"error":"Invalid token"} <-- only this one gives an error message

{"error":"{\"captcha\":[\"Invalid CAPTCHA\"]}"}

This shows only one error. I.e. good captcha + invalid token shows "Invalid token", but bad captcha + invalid token doesn't show anything. `{"error":"{\"captcha\":[\"Invalid CAPTCHA (Missing parameter: captcha_solution)\"]}"}` `{"error":"Invalid token"}` <-- only this one gives an error message `{"error":"{\"captcha\":[\"Invalid CAPTCHA\"]}"}`
Author
Member

hi @hj . Could you explain how I can re-produce you error?
do you have the Invalid token error for invite or this other error?

hi @hj . Could you explain how I can re-produce you error? do you have the `Invalid token` error for invite or this other error?
Owner

I just have instance with registrations locked, and I deliberately used expired token to cause an error. I will re-test it some more.

I just have instance with registrations locked, and I deliberately used expired token to cause an error. I will re-test it some more.
Owner
@parallel588 ping
This pull request has changes conflicting with the target branch.
  • src/components/registration/registration.js
  • src/components/registration/registration.vue
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin gitlab-mr-iid-1249:gitlab-mr-iid-1249
git switch gitlab-mr-iid-1249

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch develop
git merge --no-ff gitlab-mr-iid-1249
git switch gitlab-mr-iid-1249
git rebase develop
git switch develop
git merge --ff-only gitlab-mr-iid-1249
git switch gitlab-mr-iid-1249
git rebase develop
git switch develop
git merge --no-ff gitlab-mr-iid-1249
git switch develop
git merge --squash gitlab-mr-iid-1249
git switch develop
git merge --ff-only gitlab-mr-iid-1249
git switch develop
git merge gitlab-mr-iid-1249
git push origin develop
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma/pleroma-fe!2516
No description provided.