Copied to clipboard

Flag this post as spam?

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


  • Jonas Eriksson 930 posts 1825 karma points
    Jan 05, 2010 @ 10:16
    Jonas Eriksson
    0

    Send user password with e-mail

    Hi!

    I know it's not best practice to send passwords with e-mail, but it is a good enough solution for us right now, however - how can I retrieve a user password? It's not possible with pure xslt is it? I need to do some .net + api stuff?

    Thanks!

    /Jonas

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jan 05, 2010 @ 10:47
    Dirk De Grave
    1

    You can only retrieve passwords if they're not hashed, so check your membership provider settings first! If not hashed, just use some api calls such as User.getAll() or Member.GetAll (or even better Membership.GetAllUsers()), retrieve their login/email/password and send the relevant info. You can do this from xslt, but you'll have to create some xslt extensions.

     

    Hope this helps.

    Regards,

    /Dirk

  • Jonas Eriksson 930 posts 1825 karma points
    Jan 06, 2010 @ 14:02
    Jonas Eriksson
    0

    Ok, thanks Dirk, I will try that.

  • Jonas Eriksson 930 posts 1825 karma points
    Jan 06, 2010 @ 20:19
    Jonas Eriksson
    0

    Dirk, thanks for pointing out the direction, I added a xslt extension-function basically returning :

    Member.GetMemberByName(username, False)(0).Password 
Please Sign in or register to post replies

Write your reply to:

Draft