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 want to check user id and password using api,
when i use
Response.Write(umbraco.BusinessLogic.User.validateCredentials("admin","root"));
it returns false. admin and root is user id and password to login backend.
Is there any problem with validateCredentials();
Thanks.
Perhaps you should try to call this function directly on the membershipprovider instead? ie. instantiate umbraco.providers.UsersMembershipProvider and then call the validateuser method.
thanks anders. its solved my problem
No problem! Remember to set the topic as resolved :)
How to set as resolved ?
i did not see any button or other option to set the topic as resolved.
There should be a button next to my reply where you can check the reply as the resolution for your issue.
To get this working for me I had to call the method this way, rather than instantiating a new UsersMembershipProvider
Membership.Providers[umbraco.UmbracoSettings.DefaultBackofficeProvider].ValidateUser(UserName, Password);
HTH
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
validateCredentials() retun false
I want to check user id and password using api,
when i use
Response.Write(umbraco.BusinessLogic.User.validateCredentials("admin","root"));
it returns false. admin and root is user id and password to login backend.
Is there any problem with validateCredentials();
Thanks.
Perhaps you should try to call this function directly on the membershipprovider instead? ie. instantiate umbraco.providers.UsersMembershipProvider and then call the validateuser method.
thanks anders. its solved my problem
No problem! Remember to set the topic as resolved :)
How to set as resolved ?
i did not see any button or other option to set the topic as resolved.
There should be a button next to my reply where you can check the reply as the resolution for your issue.
To get this working for me I had to call the method this way, rather than instantiating a new UsersMembershipProvider
HTH
is working on a reply...