Page 1 of 1

Can Frontendusers redirect based on login info?

Posted: Mon Jun 12, 2006 9:17 pm
by jmcgin51
I have Frontendusers working on my .13 CMSMS install.  Here's what I want to, and I don't know if FEU can do it:

I have several website clients with sites that are currently in development in CMSMS.  I want to put a "Client Login" link on my own page, where my clients can go to see the development progress on their sites.  Can I use FEU to direct a user to a certain page based on his login information?  For example, John logs in and is automatically directed to his site, and Jane logs in and is directed to her site.  For privacy reasons, neither can see the others' site (or even know that it exists).

Thanks in advance.  I've been a hard-coder up to now, and I'm slowly getting the hang of CMS and CMSMS in particular.

Re: Can Frontendusers redirect based on login info?

Posted: Mon Jun 12, 2006 9:31 pm
by calguy1000
Yes, it can be done with newer versions of frontend users
theck the bottom of the frontendusers preferences tab.

It should mention somthing about  a macro that can be substituted in the various page's to jump to, etc.

Re: Can Frontendusers redirect based on login info?

Posted: Mon Jun 12, 2006 9:34 pm
by jmcgin51
Yup, I saw that, but I don't know how to use it.  Any chance for a brief tutorial on creating/using the macro feature?

Thanks

Re: Can Frontendusers redirect based on login info?

Posted: Mon Jun 12, 2006 9:37 pm
by calguy1000
this one's simple.  if you put the string  "X${username}Y" into the page/id alias to jump to after login field,
when user "Joe" tries to login, the system will try to redirect to a page with the alias  XJoeY

Re: Can Frontendusers redirect based on login info?

Posted: Mon Jun 12, 2006 9:42 pm
by jmcgin51
ahhhhhh, very nice...  I'll give it a try - thanks, Calguy!!!

Re: Can Frontendusers redirect based on login info?

Posted: Mon Jun 12, 2006 9:52 pm
by jmcgin51
looks to work perfectly...

However, I think this works only if there is only one username, because it has to match the page alias.  Any way to allow multiple usernames to access a given page?

Re: Can Frontendusers redirect based on login info?

Posted: Mon Jun 12, 2006 9:56 pm
by calguy1000
Well you wanted to redirect Joe to his site once he logged in, and Jane to here's when she logged in, so using the examples below, you'd create two pages, one with page alias XJoeY and another with alias XJaneY and then when joe logged in he'd go to his page, and when jane logged in she'd go to her page.

Of course, I could do something with groups, etc, but I thought you wanted different pages for different people.

Re: Can Frontendusers redirect based on login info?

Posted: Tue Jun 13, 2006 3:14 am
by jmcgin51
no, you're exactly right, and what you said works perfectly.  I'm just picturing a scenario where I need to remove someone's access to view the site.  Under the current rule, I would have to issue a new username (or password) and give them to the people I still want to access the site.  If I could assign multiple usernames to the same redirect, then I could just delete or inactivate the desired username, and the rest of the people wouldn't have to change a thing...

thanks

Re: Can Frontendusers redirect based on login info?

Posted: Tue Jun 13, 2006 4:00 am
by calguy1000
well then, I'm afraid you didn't explain your requirements well enough.  sorry.

What you want is to have a group of people redirect to the same page, and then one one accounts gets expired/deleted for whatever reassoon all of the other people in that group still get redirected.

This is (I think) do-able, but it isn't in the current code.  and I haven't looked into what's involved in changing it at this time.

if you have a scenario where user A get's re-directed to user A's page and user B get's re-directed to user B's page, then feusers will work (I hope) as is expected.

If you have a scenario where user A and B get directed to page AA, because they are a member of group AA, and user C, and D, get directed to page BB because they are both a member of group BB, then I can probably handle that.

what do you think?

Re: Can Frontendusers redirect based on login info?

Posted: Tue Jun 13, 2006 2:20 pm
by jmcgin51
If you have a scenario where user A and B get directed to page AA, because they are a member of group AA, and user C, and D, get directed to page BB because they are both a member of group BB, then I can probably handle that.

Yes, this sounds like it would be an acceptable solution.