Edit controls not showing (MVC)

Topics: Developer Forum
Aug 8, 2012 at 1:08 PM
Edited Aug 8, 2012 at 1:09 PM

 Hi all,

 

I'm having some issues trying to edit pages on a site that went 'live.' On my local development environment I can access the edit controls just fine, however in the live environment it doesn't seem to work.

One of the things about the password in the release environment is that it has the ( and ) characters in the password. On development this isn't true (diff username/pw) is it possible that this is causing the issue?

Code paste (authentication part)

 

<authentication mode="Forms">
  <forms loginUrl="n2/login.aspx" protection="All" timeout="30000" path="/">
    <credentials passwordFormat="Clear">
      <user name="username" password="(password)" />
    </credentials>
  </forms>
</authentication>

 

Any ideas? The bracket thing doesn't seem to make sense to me. And I'm using the MVC 3.0 version (AFAIK).

Kind regards,

Alex

 Edit:

One thing to note is that it does actually log me in and forward me back to / when entering the proper credentials, the edit menu and the header just aren't showing as if I'm still not logged in.

Coordinator
Aug 8, 2012 at 1:39 PM
Edited Aug 8, 2012 at 1:39 PM

If you add more users in the form credentials section you must also configure N2 to accept these users. This is done in /n2/web.config in the <authorization> selections and also in /web.config in <n2><edit><administrators users="..."/>

Edit: if you create users using the users UI you can assign them roles which gives them access to the UI.

Aug 10, 2012 at 6:51 PM

Thanks libardo, this worked out in the end. It took a bit of tinkering especially since I couldn't use XML transformation on that web.config (maybe with slow cheetah but haven't tried). Anyway after adding that user in those two places explicitly it all worked out fine. I have only need for a single admin user so this solution was good, but it's nice to know there are other (better? :) ) ways.