I'm trying to use the below method
SecurityManager.AuthenticateUser("Default", "username", "password", true);
but it always throws null reference as
"Object reference not set to an instance of an object."
Can anyone explain about this?
Still i'm fighting hard with the same issue, i'm passing a valid credentials and also i can successfully login using the same one in the back end login page.
Currently i'm working on Sitefinity 8.0.5710 version.
Below are the Exception details FYR
Note : Authenticate() method is being executed in a cs file, i'm calling it from an installer.cs of one of the controls.
Actually what i'm trying to do is, creating pages in the installer part of a widget.
It has to happen at the application starts event, at the moment a particular widget is installed using installer.cs (rewriting the config for layout/toolbox).
Is it a possible scenario, or is there any way we can achieve it?