Problem/Motivation

Sites with different user roles may want to redirect different user roles to different pages after resetting their password.

Proposed resolution

Provide different configuration options per user role.

note: this excludes the weighting of redirects to prioritize one redirect destination vs. another when an user has multiple user roles.

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

Data model changes

TBD

CommentFileSizeAuthor
#5 prlp-login-destination-per-role.png64.65 KBjitesh doshi

Comments

jasonawant created an issue. See original summary.

jasonawant’s picture

Status: Active » Closed (won't fix)

closing, I imagine this will not be a supported feature request. I can see providing a hook or instruction developers to use override via https://www.drupal.org/docs/drupal-apis/configuration-api/configuration-....

jitesh doshi’s picture

@jasonawant you're giving up too easily ;-) If you provide a patch, others can use it if they wish, and I will eventually include it in the main release.

jasonawant’s picture

Status: Closed (won't fix) » Active

haha, well, I thought this feature request strays a bit too far from what this modules does.

How would you like to see this feature implemented?

jitesh doshi’s picture

StatusFileSize
new64.65 KB

screenshot of suggested UI

@jasonawant, how about something like the UI in this attached image? Basically, let the admin provide a map of roles to destinations. In fact, maybe the checkbox for overriding can be omitted (empty textarea means checkbox false, filled means true).

anybody’s picture

Version: 8.x-1.x-dev » 2.0.x-dev
Related issues: +#3310140: Allow other modules to alter the destination route.

I think making the module compatible with other redirect modules would be the better solution. Also see #3310140: Allow other modules to alter the destination route.

anybody’s picture

@jitesh doshi what do you think about #6? I'd indeed vote to close this one based on the suggestions. Think this would be too specific here!

ccrawford91’s picture

The PR from issue #3310140 adds a hook which modules can implement to alter the redirect as they see fit. It has been merged and will included in the next release.

ccrawford91’s picture

Status: Active » Closed (duplicate)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.