[MGNLPUR-204] An error occurs when I register twice with the same email address Created: 10/Feb/22  Updated: 01/Dec/23  Resolved: 06/Nov/23

Status: Closed
Project: Magnolia Public User Registration
Component/s: None
Affects Version/s: 2.7.3
Fix Version/s: 2.7.3, 2.7.7

Type: Bug Priority: Medium
Reporter: Mirjam Mettler Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: ready
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File 2023-03-10_15-42-51.png    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: PUR module improvements
Team: AdminX
Approved:
Yes

 Description   

Steps to reproduce

  1. Try to register twice with the same mail adress with the public user registration module. 

Expected results

I should get a notification that the email adress already exists.

Actual results

An error occurs when I register twice with the same email address. When I type in an email address that already exists and I click on the register button, a new page is loaded that displays an error message that the registered email address already exists (as it should be). But an user might very likely then click on "back" in the browser. When he does that the data entered in the registration form is still there. If he then changes the email address and clicks on register again, an "HTTP Status 403 - Forbidden" message appears (if he would refresh the page it would work, but how would he know?)

..

Workaround

There is no workaround known.

Development notes



 Comments   
Comment by Bertrand Renuart [ 10/Mar/23 ]

I can confirm the issue and the scenario is reproducible on https://demopublic.magnolia-cms.com.The message is now different and says that "the session is expired" (cfr. screenshot). Nevertheless, the user still cannot go back, enter a different email address and submit the form again.

 

Comment by Khayal Musayev [ 06/Nov/23 ]

https://www.loom.com/share/7a457a83775846dab73f9ecb20e296f4

Comment by Khayal Musayev [ 06/Nov/23 ]

username and email must both be unique. When an already existing email or username is used to register a new user an appropriate error message is shown regardless of whether back button on the browser was clicked. The only missing thing is the missing translation and wrong html on the error page and that will be handled in another ticket.

Comment by Khayal Musayev [ 06/Nov/23 ]

cant reproduce result

Generated at Mon Feb 12 06:44:04 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.