Skip to content

Conversation

sangaline
Copy link

I think that it's a common use case that people want to put all of the user urls under another prefix other than '/user' (e.g. '/admin', '/'). Might it make sense to add a new config option that lets people change all of them at once instead of having to specify all 12 individually? The proposed implementation in this pull request would be backwards compatible while adding a small convenience for those wanting to specify a different url prefix.

sangaline and others added 4 commits October 2, 2015 08:12
One wasn't used and the other should have been checking the query string
for reg_next instead of next.
…gistration.

It was previously not respected when USER_ENABLE_LOGIN_WITHOUT_CONFIRM_EMAIL
and USER_AUTO_LOGIN_AFTER_REGISTER were both set to True.
@and-semakin
Copy link
Collaborator

and-semakin commented Nov 8, 2019

Hi @sangaline! Thank you for your contribution! It looks super useful. Could you please rebase your branch over current master branch to resolve conflicts?

return redirect(next)
# Redirect if USER_ENABLE_CONFIRM_EMAIL is set and they can't login yet
if user_manager.enable_confirm_email and require_email_confirmation and not user_manager.enable_login_without_confirm_email:
return redirect(reg_next)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if this things have to be in the same pull request with USER_URL_PREFIX. I would prefer to have a separate PR with this changes. Any way thank you! It looks useful too! 👍

@and-semakin and-semakin added the Rebase Requested Maintainer has requested a contributor to update/rebase PR branch over actual master branch label Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rebase Requested Maintainer has requested a contributor to update/rebase PR branch over actual master branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants