Copied to clipboard

Flag this post as spam?

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


  • Ron Brunner 13 posts 33 karma points
    Sep 29, 2011 @ 02:00
    Ron Brunner
    0

    Error from .net members password retrieval

    I have setup a members area on one of my sites and am having trouble getting the retrieve password from .net to work.

    The Problem:

    Code is trying to create a txt file that it then sends to the end user. It is trying to place this file in the masterpages folder and appears to be unable to do so. If I manually create the file in that area it will email whatever is there to the user.

     

    My code in template:

    <asp:PasswordRecovery ID="PasswordRecovery1" Runat="server"
        SubmitButtonText="Get Password" SubmitButtonType="Link">  
    <MailDefinition From="[email protected]"
        Subject="Your password"
        BodyFileName="PasswordMail.txt" />
    </asp:PasswordRecovery>

    My web.config:

            <add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Another Type" passwordFormat="Clear" />
            <add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" passwordFormat="Clear" />

  • Ron Brunner 13 posts 33 karma points
    Sep 29, 2011 @ 02:09
    Ron Brunner
    0

    Server is Windows 2008 Standard - 32 bit with SP2

     

    umbraco v 4.7.0 (Assembly version: 1.0.4090.21631)

  • Ron Brunner 13 posts 33 karma points
    Sep 29, 2011 @ 02:29
    Ron Brunner
    0

    Ok I resolved it.

     

    I needed to create the text file and then add <%password%> to it in order to display the password in the output.

     

Please Sign in or register to post replies

Write your reply to:

Draft