Copied to clipboard

Flag this post as spam?

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


  • Nadine Fisch 159 posts 429 karma points
    Jun 08, 2018 @ 08:51
    Nadine Fisch
    0

    Security Token

    Hi,

    I want to secure my confirmationmails with a security Token. Is there already a Umbraco solution I can use for it?

    Thanks in advance,

    Nadine

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Jun 09, 2018 @ 12:14
    Sebastiaan Janssen
    1

    I'm not exactly sure what you're trying to do, but the password reset mails on Our work like this, you may be able to get some inspiration from it:

    https://github.com/umbraco/OurUmbraco/commit/492ba47d3a2287e5db397011028883214f4ec712

    https://github.com/umbraco/OurUmbraco/commit/fc32e42c18a63bafb0d6dd52221c9fc315ed1a6f
    In this commit I had to change it so it stores the date in the format used on the server.

    On each member we store a password reset token and an expiry date for the token. It's just a texbox property on the members. Then when the password reset link is clicked, it verifies the token from the email against the hashed token in the database.

    Hope this helps!

  • Nadine Fisch 159 posts 429 karma points
    Jun 11, 2018 @ 08:26
    Nadine Fisch
    0

    sounds very well, thank you! I 'll try to get some inspirations from your code example.

  • Nadine Fisch 159 posts 429 karma points
    Jun 18, 2018 @ 08:24
    Nadine Fisch
    0

    Hi Sebastian,

    can you explain me which namespace I have to import for using the SecureHasher?

     var resetToken = Guid.NewGuid().ToString().Replace("-", string.Empty);
    return SecureHasher.Hash(resetToken);  
    

    Thank you in advance, Nadine

  • Nadine Fisch 159 posts 429 karma points
    Jun 18, 2018 @ 08:53
    Nadine Fisch
    0

    found the class in OurUmbraco/Our

Please Sign in or register to post replies

Write your reply to:

Draft