Wrox Programmer Forums
ASP.NET 4.5 General Discussion For ASP.NET 4.5 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4.5 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 9th, 2016, 12:42 PM
Authorized User
Join Date: Aug 2015
Posts: 19
Thanks: 6
Thanked 0 Times in 0 Posts
Default Security email response

How do I write good code to generate a random 6-8 character text field to be included in the email sent from my application to the user upon signup and have it be required to be entered in a web form before the user can actually use the site? (I can probably cobble something together, but this is important.) Thank you.
Old July 1st, 2016, 11:48 PM
Friend of Wrox
Join Date: Feb 2014
Posts: 136
Thanks: 1
Thanked 10 Times in 10 Posts

it would not have to be random. it could just be a sequence. the important thing is that you can recall the values that have generated and used. e.g. a data base table to query if a code had been generated and/or used and/or expired if there is a time limit for code use. However, I would use a GUID for this value.

Last edited by mmorgan30; July 2nd, 2016 at 12:08 AM..

Similar Threads
Thread Thread Starter Forum Replies Last Post
CHP 9 : Email issue: Smtp server returned an invalid response. Cooler BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 6 February 28th, 2011 01:38 PM
DropDownList/CheckboxList/RadioboxList or Listbox "selections" to Response Email tompatamcat BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 September 6th, 2010 03:43 PM
Chapter 9 - email security ChuckASP BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 March 20th, 2010 03:26 PM
Confirming New Registration via email response ? kalel_4444 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 15 April 13th, 2008 05:44 AM
Sending email problem - SMTP server response: 554 Havokx Beginning PHP 0 July 27th, 2007 04:04 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.