473,326 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Mail back password

I'm working on implementing a feature in a web site to let a visitor create
a new account and have it email a randomly generated password back to the
user. I'm not too concerned about it, but thought I'd check and see if
anyone has any good examples of this that could save me a little time. LMK.
Thanks!

Matt
Nov 18 '05 #1
5 876
Matt,

If you allow users to create accounts (and by this I mean being able to
select a user name), why can't they define their own passwords? Anyway, if
you are looking for a sample of random password generator (e.g. if you want
to reset and send a random password if user forgets it), take a look at this
one: http://www.obviex.com/Samples/Password.aspx.

Alek

"MattB" <so********@yahoo.com> wrote in message
news:c5***********@ID-86156.news.uni-berlin.de...
I'm working on implementing a feature in a web site to let a visitor create a new account and have it email a randomly generated password back to the
user. I'm not too concerned about it, but thought I'd check and see if
anyone has any good examples of this that could save me a little time. LMK. Thanks!

Matt

Nov 18 '05 #2
Alek Davis wrote:
Matt,

If you allow users to create accounts (and by this I mean being able to
select a user name), why can't they define their own passwords?


This is a common way to validate the email address - both that the
address exists and that it does not belong to someone else.
--
mikeb
Nov 18 '05 #3
OK, fair enough.

Alek

"mikeb" <ma************@nospam.mailnull.com> wrote in message
news:uB**************@tk2msftngp13.phx.gbl...
Alek Davis wrote:
Matt,

If you allow users to create accounts (and by this I mean being able to
select a user name), why can't they define their own passwords?


This is a common way to validate the email address - both that the
address exists and that it does not belong to someone else.
--
mikeb

Nov 18 '05 #4
Yes, that's one reason. The other is that the records may already exist
(web-enabling legacy system) and we don't want people to be able to access
others' records.

Thanks for the example. I'll check it out!

Matt

Alek Davis wrote:
OK, fair enough.

Alek

"mikeb" <ma************@nospam.mailnull.com> wrote in message
news:uB**************@tk2msftngp13.phx.gbl...
Alek Davis wrote:
Matt,

If you allow users to create accounts (and by this I mean being
able to select a user name), why can't they define their own
passwords?


This is a common way to validate the email address - both that the
address exists and that it does not belong to someone else.
--
mikeb


Nov 18 '05 #5
I use 6 char passwords. You can add any characters you desire into the
pickstring string, just make sure you increase/decrease the 71
character count in the tempPW setup. Call this function to get a temp
PW then email it. Good luck, Tom.

Function build_random_temp_pw()
Dim pickstring, tempPW as string
pickstring = "ABCDEFGHJKLMN6PQRSTUVWXYZ123456789abcdefghkmnzpqr stuvwxyzeth3649xwamk74v"
Dim oRand as New Random(Environment.TickCount)
Dim x as integer
FOR X = 1 to 6
tempPW = tempPW & pickstring.Substring(oRand.Next(1,71),1)
NEXT
Return tempPW
End Function


"MattB" <so********@yahoo.com> wrote in message news:<c5***********@ID-86156.news.uni-berlin.de>...
I'm working on implementing a feature in a web site to let a visitor create
a new account and have it email a randomly generated password back to the
user. I'm not too concerned about it, but thought I'd check and see if
anyone has any good examples of this that could save me a little time. LMK.
Thanks!

Matt

Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
5
by: MattB | last post by:
I'm working on implementing a feature in a web site to let a visitor create a new account and have it email a randomly generated password back to the user. I'm not too concerned about it, but...
3
by: Wm. Scott Miller | last post by:
Hello all: I'd like some advice on the best way to validate and confirm an e-mail address entered during a registration process. What we are thinking of is something like the following: 1. ...
0
by: Avi | last post by:
A CreateUserWizard contorl receives new user details, adds the user to the database, tries to send a confirmation mail message and stops with a "System.FormatException: The specified string is not...
1
by: mr k | last post by:
Hi, I wanted to use mail merge with forms but Text form fields are not retained during mail merge in Word, I got the code from Microsoft but it doesn't remember the text form field options such as...
3
nitindel
by: nitindel | last post by:
Hi All, Greetings..!! I am using Persits Software to send mail in my Project through ASP,VBSCRIPT... But Mail is not going to the recepient...instead it is showing the following strange...
11
by: Ed Bitzer | last post by:
I have been able using the namespace System.Web.Mail and its method Smtp.mail.send to mail simple text messages to a small group within our 55 and older community. I need help expanding the...
3
by: maheswaran | last post by:
Hi , Am new in PEAR. I have using PEAR/Mail.php for sending mails using smtp authentication. Here that my mailto form. <?php session_start(); ini_set("smtp_port",25); include("Mail.php");...
5
by: Gordon | last post by:
I'm working on a reset password script for my CMS, that will generate a random password and email it to a user when they request one. The problem I am having is that the mails being sent out are...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.