Copied to clipboard

Flag this post as spam?

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


  • Pradeep 39 posts 158 karma points
    Jul 29, 2015 @ 14:50
    Pradeep
    0

    How Get Password

    Hello Everyone,

    I am creating member event that send mail , when member is created its send the email to user .

    But I not able to find a way , how I get password of member in string.

    raw password value not useable...

    Plz help !!

    Thanks

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jul 29, 2015 @ 15:15
    Ismail Mayat
    0

    Pradeep,

    Password is encrypted and not recoverable as its very bad practice to store it plain text and send it plain text. You need to implement password reset.

    Regards

    Ismail

  • Pradeep 39 posts 158 karma points
    Jul 29, 2015 @ 15:43
    Pradeep
    0

    Hi Ismail ,

    I see that , But how I do that in member event and I need to send it member.

        void MemberService_Saved(IMemberService sender, Umbraco.Core.Events.SaveEventArgs<IMember> e)
            {
    
                int count = 0;
                foreach (var item in e.SavedEntities)
                {    //code here             }
     }
    

    One other problem that :the code generate message for each loop , its should be send email ones .

    Thanks

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jul 29, 2015 @ 15:51
    Ismail Mayat
    0

    Pradeep,

    Do you have a site registration form on front end? Or are you creating members in backend and want to on member create send email?

    Yes you have loop but you could just get first item from savedentities also you will need to after sending email flag the member as email sent and before sending email test for that flag else each time member is saved an email will be sent.

    Regards

    Ismail

  • Pradeep 39 posts 158 karma points
    Jul 29, 2015 @ 17:32
    Pradeep
    0

    Hi ,

    Can you please provide me code snippet .

    Thanks

  • Pradeep 39 posts 158 karma points
    Jul 31, 2015 @ 10:29
    Pradeep
    0

    Hi any one ,

    Please reply ...

  • Steve Morgan 1348 posts 4457 karma points c-trib
    Jul 31, 2015 @ 15:31
    Steve Morgan
    1

    Hi Pradeep,

    You're not getting many replies because it's not very clear what you want to do!

    I take it you're creating a number of members (perhaps importing them?) and then you want to email them a link. I would send them a URL with a special GUID on a URL - generate this and store this against the member when you create them.

    I hope this link might help.

    https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/65298-Change-Password-and-Forgotten-Password

Please Sign in or register to post replies

Write your reply to:

Draft