Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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!
sounds very well, thank you! I 'll try to get some inspirations from your code example.
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
found the class in OurUmbraco/Our
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
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!
sounds very well, thank you! I 'll try to get some inspirations from your code example.
Hi Sebastian,
can you explain me which namespace I have to import for using the SecureHasher?
Thank you in advance, Nadine
found the class in OurUmbraco/Our
is working on a reply...