473,789 Members | 2,624 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reset Password. Please, need Help. Thank You.

Hello,

I placed a textbox in a web page where I ask the user for its email.

Now I need to reset its password and get the user profile for the given
email if it exists.

How can I do this?

A side question:

Is it possible to check if there is already a user with a given
email when I am adding a new user to my database using membership?

I want the users emails to be unique. I don't want two users with
the same email.

Thanks,

Miguel

Dec 29 '06 #1
4 1480
What type of database? If 100% uniqueness and you will NEVER need
duplicates for any reason, you can set that constraint in your database.
Yes, of course you can check that, and should...even if you set the
constraint making it impossible to duplicate.

"shapper" <md*****@gmail. comwrote in message
news:11******** *************@7 9g2000cws.googl egroups.com...
Hello,

I placed a textbox in a web page where I ask the user for its email.

Now I need to reset its password and get the user profile for the given
email if it exists.

How can I do this?

A side question:

Is it possible to check if there is already a user with a given
email when I am adding a new user to my database using membership?

I want the users emails to be unique. I don't want two users with
the same email.

Thanks,

Miguel

Dec 29 '06 #2

James wrote:
What type of database? If 100% uniqueness and you will NEVER need
duplicates for any reason, you can set that constraint in your database.
I think the type of database is not important in this case.
I am using Asp.Net 2.0 membership.

Anyway, maybe I am wrong. I am using SQL 2005
Yes, of course you can check that, and should...even if you set the
constraint making it impossible to duplicate.

"shapper" <md*****@gmail. comwrote in message
news:11******** *************@7 9g2000cws.googl egroups.com...
Hello,

I placed a textbox in a web page where I ask the user for its email.

Now I need to reset its password and get the user profile for the given
email if it exists.

How can I do this?

A side question:

Is it possible to check if there is already a user with a given
email when I am adding a new user to my database using membership?

I want the users emails to be unique. I don't want two users with
the same email.

Thanks,

Miguel
Dec 29 '06 #3
It's fairly relevant. Why not just build a query, based on your table
structure (through stored procedure most likely), to see if the email
address exists?

"shapper" <md*****@gmail. comwrote in message
news:11******** *************@n 51g2000cwc.goog legroups.com...
>
James wrote:
>What type of database? If 100% uniqueness and you will NEVER need
duplicates for any reason, you can set that constraint in your database.

I think the type of database is not important in this case.
I am using Asp.Net 2.0 membership.

Anyway, maybe I am wrong. I am using SQL 2005
>Yes, of course you can check that, and should...even if you set the
constraint making it impossible to duplicate.

"shapper" <md*****@gmail. comwrote in message
news:11******* **************@ 79g2000cws.goog legroups.com...
Hello,

I placed a textbox in a web page where I ask the user for its email.

Now I need to reset its password and get the user profile for the given
email if it exists.

How can I do this?

A side question:

Is it possible to check if there is already a user with a given
email when I am adding a new user to my database using membership?

I want the users emails to be unique. I don't want two users with
the same email.

Thanks,

Miguel

Dec 29 '06 #4

James wrote:
It's fairly relevant. Why not just build a query, based on your table
structure (through stored procedure most likely), to see if the email
address exists?
Maybe I am not explaining it right.
I am using the predefined tables of Asp.Net 2.0 / SQL 2005 membership.

In my Web.Config, under membership provider, I have:
.... requiresUniqueE mail="true"...

Now using the membership class I need to reset the password for a given
email and also get the profile for the given email.
"shapper" <md*****@gmail. comwrote in message
news:11******** *************@n 51g2000cwc.goog legroups.com...

James wrote:
What type of database? If 100% uniqueness and you will NEVER need
duplicates for any reason, you can set that constraint in your database.
I think the type of database is not important in this case.
I am using Asp.Net 2.0 membership.

Anyway, maybe I am wrong. I am using SQL 2005
Yes, of course you can check that, and should...even if you set the
constraint making it impossible to duplicate.

"shapper" <md*****@gmail. comwrote in message
news:11******** *************@7 9g2000cws.googl egroups.com...
Hello,

I placed a textbox in a web page where I ask the user for its email.

Now I need to reset its password and get the user profile for the given
email if it exists.

How can I do this?

A side question:

Is it possible to check if there is already a user with a given
email when I am adding a new user to my database using membership?

I want the users emails to be unique. I don't want two users with
the same email.

Thanks,

Miguel
Dec 29 '06 #5

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

Similar topics

0
2346
by: serkan | last post by:
Guys, I am trying to get this password reset functionality wor for me but I am not successful at all. Please somebody help me. I get "Your password could not be reset - please try again later" so I think the get_random_word function is not working right. Here are the scripts: This is the script after the user enters his/her userid. <?php require_once("bookmark_fns.php"); // creating short variable name $username = $_POST;
0
2030
by: damontimm | last post by:
My setup: Mac OS 10.4.4; mysql 4.x ... everything was installed and working fine for some time. Today, I added drupal to my system and had to create a new database in mysql -- now I am having some problems. I will outline the problem, what I have tried to do to fix it, and what I think caused it. Hope you can help and I am sorry this is long. The problem: I can't login to mysql anymore with the "root" username (which is where I have all...
12
12871
by: Lile | last post by:
Hello ! I have a problem: I started a new PC, with Windows XP Pro. The first time, it asked me to define the language for region options, language, and keyboard. It offered me corespodentlly : US English (United State) US
3
1699
by: john_c | last post by:
Using asp.net Membership, is there a way to detect a password reset so that next time the user logs in, you can send them to the password change page? Thanks.
6
9933
by: jarice1978 | last post by:
Hello, I have been scanning the internet for a few days now. That is not working. So now it is time to post! I have read a few other posts on here about authentication but they do not match exactly. We currently have an intranet app built in a mixture of asp and asp.net 1.1 and 2.0 written in VB .Net. We have a form where the user logs in and it authenticates against active directory successully in 2 ways: 1. The admin resets the...
2
13722
by: Homer | last post by:
Hi, I want to be able to reset a user's password and I do not want to use the PasswordRecovery control to reset and email it to the user. A while back, I thought I'd read an article that mentioned about resetting password using the Website Administration Tool. I could not find such option in WSAT. Please help! Thanks, Jon
2
3205
by: DarthPeePee | last post by:
Hello everyone. I am working on a Password Strength Meter and I am running into 1 problem that I would like to fix. When pressing the "Clear Password & Try Again" button, the password clears out of the text box, but the meter will stay at its current position until text is entered back into the textbox. Once text is re-entered, the meter will display the results again. I would like everything to reset when the button is pushed, but I...
7
10838
by: Thana1995 | last post by:
Write a program that asks the user to give a two-character password(defined by constants within the program). the program should then test the validity of the password. if it is incorrect after three tries, the computer should give some nasty message and then stop. this is what i have so far but i tried it and it not working so i need help #include <iostream> #include<iomanip> using namespace std; int main() {
7
3482
by: hotflash | last post by:
Hi All, I want to creat a script where I will allow user to reset their own password. I have tried different options but don't have any luck. Wonder what I want to do is kinda not valid or not. ResetLogin.asp (where user will have to enter their username, old password, and new password). <TR> <TH ALIGN=LEFT> <FONT FACE="HELVETICA,HELV,ARIAL" SIZE=2>&nbsp;&nbsp;User Name: </FONT></TH> <TD><INPUT CLASS="bluebox"...
0
9666
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9511
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10408
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10139
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9020
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7529
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5417
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4092
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.