Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • jivan thapa 194 posts 681 karma points
    Mar 28, 2011 @ 01:23
    jivan thapa
    0

    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.

  • Anders Rørvik 25 posts 47 karma points
    Mar 28, 2011 @ 07:39
    Anders Rørvik
    0

    Perhaps you should try to call this function directly on the membershipprovider instead? ie. instantiate umbraco.providers.UsersMembershipProvider and then call the validateuser method. 

  • jivan thapa 194 posts 681 karma points
    Mar 29, 2011 @ 13:15
    jivan thapa
    0

    thanks anders. its solved my problem

  • Anders Rørvik 25 posts 47 karma points
    Mar 29, 2011 @ 13:25
    Anders Rørvik
    0

    No problem! Remember to set the topic as resolved :)

  • jivan thapa 194 posts 681 karma points
    Mar 29, 2011 @ 14:13
    jivan thapa
    0

    How to set as resolved ?

    i did not see any button or other option to set the topic as resolved.

  • Anders Rørvik 25 posts 47 karma points
    Mar 29, 2011 @ 14:19
    Anders Rørvik
    0

    There should be a button next to my reply where you can check the reply as the resolution for your issue.

  • James Green 3 posts 23 karma points
    Nov 27, 2013 @ 13:45
    James Green
    0

    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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies