Login Problems
All was ok last week with my second project, but today when I went to login It wouldn't accept my login details and all had an extra field on the screen: Authentication Provider, but there was nothing in the dorpdown (see attachment)
Can someone help please.
Thank you
regards
Byron
Hi Byzza,
Have you added an additional membership provider for the website? Please check ~/App_Data/Sitefinity/Configuration/securityConfig.config. The dropdown you see should appear if there is another membership provider declared.
Also restart the application in case you have made some changes to it.
Best wishes,
Ivan Dimitrov
the Telerik team
Hi,
Thanks for the resonse. I checked the config file and I found this in it (this was the only difference to the default)
<
membershipProviders
>
<
add
recoveryMailAddress
=
"email@company.com"
name
=
"Default"
/>
</
membershipProviders
>
Hi Byzza,
The drop down would appear only if you have more than one provider. Can you create a simple control and check the providers programmatically
var providers = UserManager.ProvidersCollection;
if
(providers ==
null
)
providers = UserManager.GetManager().Providers;
if
(providers.Count > 1)
I still haven't been able to work this out.
I did create a blank page with the below code, and it returned only a value of 1 for number of providers. Could you please let me know anything else to test
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Web;
using
System.Web.UI;
using
System.Web.UI.WebControls;
using
Telerik.Sitefinity;
using
Telerik.Sitefinity.Security;
namespace
SitefinityWebApp
public
partial
class
test : System.Web.UI.Page
protected
void
Page_Load(
object
sender, EventArgs e)
var providers = UserManager.ProvidersCollection;
if
(providers ==
null
)
providers = UserManager.GetManager().Providers;
Response.Write(providers.Count);
//Response.Write(providers[0].ApplicationName.ToString );
if
(providers.Count > 1)
Hello Byzza,
Which version of Sitefinity you are running? Can you try to add a new provider under a new project that uses Sitefinity 4.1 (Q1) release.
If there are still issues, please open a support request and attach the security config you use.
Greetings,
Ivan Dimitrov
the Telerik team