Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am trying to make login partial with custom login controller. This function call is returning false (even if username and password are correct)
Membership.ValidateUser(model.Username, model.Password)
Membership is from System.Web.Security namespace.
Note: I am trying on backoffice users not members.
Membership by default will use the default membership provider configured in your web.config:
<membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="15">
If you only need to work with backoffice users you can simply change defaultProvider to UsersMembershipProvider
defaultProvider
UsersMembershipProvider
If you need to work with both users and members, you'll need to set the provider in code before you call ValidateUser.
ValidateUser
Thank you.
That solved my problem
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Can't login user in custom login controller
I am trying to make login partial with custom login controller. This function call is returning false (even if username and password are correct)
Membership is from System.Web.Security namespace.
Note: I am trying on backoffice users not members.
Membership by default will use the default membership provider configured in your web.config:
If you only need to work with backoffice users you can simply change
defaultProvider
toUsersMembershipProvider
If you need to work with both users and members, you'll need to set the provider in code before you call
ValidateUser
.Thank you.
That solved my problem
is working on a reply...