Force sign-in with explanation

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
2/9/2012 2:26:40 PM
Gravatar
Total Posts 73

Force sign-in with explanation

I want to have a download button for our software that takes the user to a form.  However, I want to make sure that the user has first logged in so I can identify who the user is when they see the form.

I imagine I can do something like this by setting up a form page that is only visible to authenticated users.  When the user follows a link to that page from elsewhere on the site, if that user isn't logged in, then they get the login page, which is what I want.

However, they may not know what to do or why they got that page.  I'd like to be able to explain to them that in order to get to the download, we'd like them to log in or register.

The best solution would be for us to be able to add some page-specific explanatory text as to why they are seeing the login form.  That way, I can explain "Oh, you meant to go to the downloads?  Please do this first."  That shows that they're definitely in the right place.

As a work-around, it might be sufficient to customize the login page in general and explain that to get to our resources like the forums and downloads, they need to login or register, but that's not as desirable as a specific message that shows the user they are still in the process they started.

How might I approach this?

Ted

2/9/2012 2:40:07 PM
Gravatar
Total Posts 2239

Re: Force sign-in with explanation

Hi Ted,

You could create a custom module that detects the login state and if not logged in, redirects the user to a custom page with the login control, registration options and explanation text. Put your custom module on the page(s) that you want to show only to authenticated users.

This will allow you to keep your default sign-in page intact and the only people who see this custom page are those that didn't login prior to trying to view the download page.

HTH,
Joe D. 

2/9/2012 2:57:17 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Force sign-in with explanation

I'm not sure you'd even need a custom redirect module. I think you could just use security at the feature instance level on your download form page to do this. As Joe said it would have the login control/registration/explanation on it (these modules flagged as visible only to anonymous users), and your download form (module visible only to authenticated users). After they register/sign in, and redirect or navigate back to the download form page, they will just see the form on the page.

This all presupposes that the download form page is a mojoPortal page, not a custom aspx page. If that's the case, you could use an intermediate page to do the same thing, with a "go to download form" button or link exposed to authenticated users.

Jamie

2/9/2012 3:10:17 PM
Gravatar
Total Posts 2239

Re: Force sign-in with explanation

Hey Jamie,

Good call. Now that you bring that up, I think I did that on a project once. Who knows, I'm forgetting things these days.

I created this on one of my demo sites. You can view it here: http://thedemowebsite.com/downloads.aspx. You can login with user@user.com and password is user.

The settings to make this work were exactly as Jamie mentioned.

HTH,
Joe D. 

2/9/2012 4:51:06 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Force sign-in with explanation

We used this technique very recently for the home page of a couple of intranet sites, so probably the only reason I thought of it offhand is that it's fresh in my mind.  Cool

By the way, congrats on getting a great generic domain name like "thedemowebsite". I love it.

Jamie

2/9/2012 6:57:05 PM
Gravatar
Total Posts 73

Re: Force sign-in with explanation

Thanks guys.  Very clever and I don't think I would have thought of it. :)

You must sign in to post in the forums. This thread is closed to new posts.