-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redirect to login page after sign up submission #3225
Comments
Something may be broken... There is an optional parameter on each xhtml file that is supposed to direct it to where to go after login, if not itself. login.xhtml has: But clearly it's not doing that... |
Ah, I think this is a regression from when I moved some logic from the header to the new navigationWrapper. |
@bsilverstein95 - welcome back! I'm going to assign this one to you. |
I wouldn't be surprised if this is fixed now that the UI is completely different (#3338) and that shib redirect works (#1551). @bsilverstein95 can you retest? |
@pdurbin I can confirm this bug is still buggy in @scolapasta I tried looking at the As stated above the problem is that signup/"Create Account" page should never have the login page |
…gin page, from the dataverseUserPage. (#3225)
I made a PR with a simplest possible 3 line fix. |
Pull request #5335 may not be a complete solution of "someone emailed me a link to an unpublished dataset that I couldn't see and I clicked the link and went through the create account workflow and landed on the dataset" workflow. Instead, this user ends on the home page. But it's better than the login page. It's incremental progress. Approved. Moving to QA. Kudos to @landreev for coming up with a quick fix because I didn't pick this up over fear of the work involved in a more complete solution. |
While testing email confirmation with @pdurbin we happened upon a bug wherein after creating a [builtin] user, the redirect page brings you to loginpage.xhtml after logging in the newly created user. Using demo.dataverse.org to test (v4.4 build 132-47b04ed), the resulting URL from pressing Sign Up via loginpage.xhtml is:
https://demo.dataverse.org/dataverseuser.xhtml?editMode=CREATE&redirectPage=%2Floginpage.xhtml
Note the redirectPage.
To reproduce this you'll be redirected upon signup to whatever page you hit "Sign Up" from. So if it's from the root dataverse, great! However if you are on the login page (after logging out) and find yourself without a user, then go to sign up, you'll be brought to the login page after registering (while already being logged in). See screenshot below and note that there is a user dropdown in the upper right while also displaying login form.
This is the direct landing page of registering as user foo bar (PHD, astrophysics) upon hitting Sign Up from the login page. So hitting Sign Up from any page will redirect you to that respective location assuming you can view it while logged out, but perhaps after signing up from loginpage.xhtml the user should be forcibly sent to either the home page or the account page.
The text was updated successfully, but these errors were encountered: