Unable to login after machinekey change

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.
8/9/2014 3:36:53 PM
kph
Gravatar
Total Posts 4

Unable to login after machinekey change

Hi,

secutity advisor tells me to change the key. Ok I did check "password format" is set to "clear text in db". I generated the key and replaced it in web.config. After that I was not able to login again. Changing back to the previous key everything is fine. I'm using "mojoportal-2-4-0-4-sqlce-net45-deploymentfiles.zip" on my local machine just for testing. 

I 'm a developer but new to mojo.

Can somebody please double check this behaviour and verify it to be bug. Or is the error sitting in front of the computer? If so please tell me what I did wrong.

Thanks

8/10/2014 11:06:12 AM
Gravatar
Total Posts 18444

Re: Unable to login after machinekey change

changing the machine key should cause you to be logged out because the authentication cookie is generated using the machine key.

you should be able to login again after changing the machinekey as long as passwords are not encrypted. If you cannot login, I suggest close all open browser windows except maybe google (definitely do not have your site in an open browser window), clear your web browser cookies (it won't clear cookies if the site is still open in a browser window that is why you must close it). After clearing your cookies go back to your site and you should be able to login. If not then start with basic troubleshooting to look for any errors.

also make sure you don't have extra copies of web.config file lying around in other folders, that can interfere with the main web.config and cause problems especially if there is a machinekey in the other web.config file

8/10/2014 1:14:13 PM
kph
Gravatar
Total Posts 4

Re: Unable to login after machinekey change

fine, that worked for me. Thanks.

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