Click here to Skip to main content
15,888,239 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionMVC, use of Models and Razor Pin
jkirkerx22-Jan-16 11:50
professionaljkirkerx22-Jan-16 11:50 
AnswerRe: MVC, use of Models and Razor [solved] Pin
jkirkerx25-Jan-16 8:32
professionaljkirkerx25-Jan-16 8:32 
QuestionHow to redirect the weburl to particular country when user types in Browser. Pin
pradeep yajamanam21-Jan-16 3:18
pradeep yajamanam21-Jan-16 3:18 
AnswerRe: How to redirect the weburl to particular country when user types in Browser. Pin
F-ES Sitecore21-Jan-16 3:53
professionalF-ES Sitecore21-Jan-16 3:53 
QuestionPassword reset/token? Pin
Member 876166715-Jan-16 10:14
Member 876166715-Jan-16 10:14 
AnswerRe: Password reset/token? Pin
David Mujica15-Jan-16 10:49
David Mujica15-Jan-16 10:49 
GeneralRe: Password reset/token? Pin
Richard Deeming15-Jan-16 10:52
mveRichard Deeming15-Jan-16 10:52 
AnswerRe: Password reset/token? Pin
Richard Deeming15-Jan-16 10:59
mveRichard Deeming15-Jan-16 10:59 
The token is usually just a random string which an attacker wouldn't be able to guess. A GUID would be a simple example.

Make sure the token is time-limited, and is deleted as soon as the user has reset their password.

It's probably a good idea to only store the hash of the token in the database, to ensure that a hacker with read access to the database couldn't reset arbitrary accounts.

Troy Hunt has a good article which covers some of the other issues you'll want to think about:
Troy Hunt: Everything you ever wanted to know about building a secure password reset feature[^]



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


AnswerRe: Password reset/token? Pin
Member 876166715-Jan-16 13:25
Member 876166715-Jan-16 13:25 
GeneralRe: Password reset/token? Pin
Richard Deeming15-Jan-16 23:44
mveRichard Deeming15-Jan-16 23:44 
GeneralRe: Password reset/token? Pin
Member 876166716-Jan-16 8:42
Member 876166716-Jan-16 8:42 
GeneralRe: Password reset/token? Pin
Richard Deeming18-Jan-16 1:06
mveRichard Deeming18-Jan-16 1:06 
GeneralRe: Password reset/token? Pin
Member 876166718-Jan-16 9:28
Member 876166718-Jan-16 9:28 
GeneralRe: Password reset/token? Pin
Richard Deeming18-Jan-16 10:21
mveRichard Deeming18-Jan-16 10:21 
GeneralRe: Password reset/token? Pin
Member 876166718-Jan-16 10:58
Member 876166718-Jan-16 10:58 
GeneralRe: Password reset/token? Pin
Member 876166726-Feb-16 14:41
Member 876166726-Feb-16 14:41 
GeneralRe: Password reset/token? Pin
Richard Deeming1-Mar-16 0:43
mveRichard Deeming1-Mar-16 0:43 
GeneralRe: Password reset/token? Pin
ZurdoDev18-Jan-16 10:04
professionalZurdoDev18-Jan-16 10:04 
GeneralRe: Password reset/token? Pin
Member 876166718-Jan-16 11:00
Member 876166718-Jan-16 11:00 
QuestionService names aren't Suffixing with Service NetTier code generation Pin
indian14314-Jan-16 15:34
indian14314-Jan-16 15:34 
Questiontouch screen application in C++ Pin
ginsa vaheed13-Jan-16 18:11
ginsa vaheed13-Jan-16 18:11 
AnswerRe: touch screen application in C++ Pin
JHizzle13-Jan-16 22:01
JHizzle13-Jan-16 22:01 
AnswerRe: touch screen application in C++ Pin
Richard MacCutchan13-Jan-16 22:04
mveRichard MacCutchan13-Jan-16 22:04 
AnswerRe: touch screen application in C++ Pin
Richard Deeming14-Jan-16 1:32
mveRichard Deeming14-Jan-16 1:32 
Questionmvc views Pin
Member 1144362713-Jan-16 4:54
Member 1144362713-Jan-16 4:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.