About Login link (in the main menu)

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
5/29/2006 3:49:41 AM
Gravatar
Total Posts 146

About Login link (in the main menu)

Hi Joe !

(I'm again)

You say to me:

--make sure the LoginLink is in the layout.ascx for your skin. if it is there then set a breakpoint in page load event --for Web/Controls/LoginLink.ascx.cs

--Cheers,

--Joe

When I did that, I get this:

    public class LoginLink : System.Web.UI.UserControl
    {
        protected Literal loginLink = new Literal();
        public bool UseLeftSeparator = true;
        protected bool SSLIsAvailable = false;

        private void Page_Load(object sender, System.EventArgs e)
        {
            if(ConfigurationSettings.AppSettings.Get("SSLIsAvailable").ToLower() == "true")
            {
                SSLIsAvailable = true;
            }

            if (!Request.IsAuthenticated)                          IS FALSE !.
            {
                if(this.UseLeftSeparator)                  <------- no enter here.
                {

I have to say that is the first load of the application from a empty (recently populate database with initial data).

Because I cannot to enter with Login I cannot to add my webpages that I already have.

I need to deploy correctly mojoportal, excuse by your time.

Thanks in advance...
5/29/2006 4:01:49 AM
Gravatar
Total Posts 18439

Re: About Login link (in the main menu)

Hi Rueben,

Yes that code is correct. The login link is not displayed if you are already logged in. If Request.Authenticated is false then you are not logged in so show the login link.

Make sure in IIS you have both Anonymous and Windows authentication checked.

I think the problem you are having is because you only have windows checked but you need also to have anonymous checked.

Hope it helps,

Joe
5/29/2006 4:24:39 AM
Gravatar
Total Posts 146

Re: About Login link (in the main menu)

I have both: Windows and Anonymous checked...,
5/29/2006 4:36:20 AM
Gravatar
Total Posts 18439

Re: About Login link (in the main menu)

Make sure in web.config that you have Authentication mode="Forms"
5/29/2006 5:09:53 AM
Gravatar
Total Posts 146

Re: About Login link (in the main menu)

Yes Joe, you have right!.

In web.config I change, from windows to forms, authentication mode and now I can to see the LogIn link in the Main Menu. May be (and I hope that) the last question is that, when I try to (now) Logout click I get the error HTTP 403 (Forbid). I try this with user admin@admin.com and other that inner admin role.

Thanks in advance...
5/29/2006 5:33:05 AM
Gravatar
Total Posts 146

Re: About Login link (in the main menu)

Hi Joe!.

I have to say you that when I deploy mojoportal in other directory with release mode, I can to Login and Logaout click without any trouble!. The problem is only in debbug mode, but at this moment don't care!.  (Is only as note).

Thank a lot Joe!.
(Now I will add my web pages and I will deploy in Suse 10.1).

Thanks again.
(When I finished my work I tell you url to you for yoy can see that.)
You must sign in to post in the forums. This thread is closed to new posts.