I don't much like the look or feel of the "User login" block and prefer to have three simple items in the guest's "Navigation" menu: "log in", "register", and "new password". All these links work very nicely. After logging in, the "register" and "new password" links disappear and "log out" appears automatically.

But "log in" sticks around. Is there a simple explanation for this? It's the only glitch in the menu. To see the guest menu, go here: http://www.syrinx.net/

Thanks in advance for any light that might be shed on this issue. I know this will end up being a stupid question, but it has me stumped for the moment.

Comments

zigguratt’s picture

Ahhhh, I know why the "register" and "new password" links disappear on login: it's a permission thing. Apparently once you've logged in you can't register or request a new password. Makes sense.

What doesn't make sense is that you can still "log in" once logged in. It seems that after login the "user/login" path somehow becomes an alias for "user/1" (in my case) - the profile page. (For that matter, so does a plain "user" path.) And of course, you're allowed to access your profile after login.

Is this the intended behaviour? I'm going to nose through the code to find where this is happening.