1. Technical Field
The present disclosure relates to servers and password recovery methods and, particularly, to a server capable of recovering email password according to the received email and a password recovery method.
2. Description of Related Art
A typical password recovery process for an email account, which often demands numerous user inputs before a new password is finally assigned, is tedious and inconvenient. A quick and secure way of recovering a password is desired.
The components of any of the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosures.
Referring to
The server 1 includes a storage unit 10, a processor 20, and a password recovery system 30. The storage unit 10 stores a database storing a number of email addresses and a number of passwords associated with each email address. In the embodiment, it is assumed that a registration email will be sent to a user's email address, and the registration email may include a website of a service provider and a username that was set when the user registered for a web service, here the webs service means any networked services, including but not limited to email services. For example, when the user registered for a web service in qq.com, qq.com will send one registration email to a preset email joesmith0807@sohu.com, the registration email includes the website of a service provider qq and the username 395812345. In the embodiment, the storage unit 10 further stores a number of email boxes associated with the corresponding email address. Each email box includes a number of emails sent to the corresponding email addresses.
In the embodiment, the password recovery system 30 includes a receiving module 31, a determining module 32, an obtaining module 33, a prompting module 34, a judging module 35, and an executing module 36. One or more programs of the above-mentioned function modules may be stored in the storage unit 10 and executed by the processor 20.
The receiving module 31 is to receive a password recovery request for a submitted email address of a user, for example a password recovery request for joesmith0807@sohu.com.
The determining module 32 is to search for any registration emails in the user's email box associated with the submitted email address stored in the storage unit 10 that the email box receives when the user registered for a web service, to determine whether there is one or more registration emails in the email box associated with the submitted email address. When the determining module 32 determines that there is one or more registration emails in the email box associated with the submitted email address, the determining module 32 further determines whether the number of the registration email is more than one.
When the number of the registration emails is more than one, the obtaining module 33 randomly picks up one registration email, and obtains the website of a service provider and the username that was set when the user registered a service in the website from the picked up registration email. When the number of the registration email is one, the obtaining module 33 obtains the website of a service provider and the username that was set when the user registered a service in the website from the determined registration email. In an alternative embodiment, it is assumed that the registration email further may include a passcode corresponding to the username that was set when the user registered a service in the website, and the obtaining module 33 further obtains the passcode from the registration email.
The prompting module 34 is to generate prompt information according to the obtained website of the service provider, and further to control the user terminal 2 to display the prompt information to prompt the user to input username corresponding to the website of the service provider. For example, when there is a website www.qq.com in the registration email, the prompting module 34 generates prompt information “what is the username registered in www.qq.com” and controls the user terminal 2 to display the prompt information. In an alternative embodiment, the prompting module 34 may further control the user terminal 2 to display the prompt information to prompt the customer to input passcode corresponding to the username. For example, when there is a website www.qq.com in the registration email, the prompting module 34 generates prompt information “what is the username and passcode when you register in www.qq.com” and controls the user terminal 2 to display the prompt information.
The judging module 35 is to receive the input username corresponding to the website of the service provider in response to user input, and to determine whether the input username corresponding to the website of the service provider matches the obtained username that was set when the user registered a service in the website.
When the input username corresponding to the website of the service provider matches the obtained username that was set when the user registered a service in the website, the executing module 36 generates a new password and further controls the user terminal 2 to display the new password.
In the embodiment, the executing module 36 further replaces the password corresponding to the email address with the new email password corresponding to the email address in the storage unit 10, and associates the new email password with the email address, thus the customer can login the email box with the email address and the new email password.
Referring to
In step S201, the receiving module 31 receives a password recovery request for a submitted email address of a user.
In step S202, the determining module 32 searches for any registration emails in the user's email box associated with the submitted email address stored in the storage unit 10 that the email box receives when the user registered for a web service, and further determines whether there is one or more registration emails in the email box. When there is one or more registration emails in the email box, the procedure goes to step S203. When there is no registration email in the email box, the procedure stops at step S202.
In step S203, the determining module 32 determines whether the number of the registration emails is more than one. If the number of the registration emails is more than one, the procedure goes to step S204. If the number of the registration emails is one, the procedure goes to step S205.
In step S204, the obtaining module 33 randomly picks up one registration email, and obtains the website of the service provider and the username that was set when the user registered a service in the website from the picked up registration email.
In step S205, the obtaining module 33 obtains the website of a service provider and the username that was set when the user registered a service in the website from the determined registration email.
In step S206, the prompting module 34 generates prompt information according to the obtained website of the service provider, and further controls the user terminal 2 to display the prompt information to prompt the customer to input username corresponding to the website of the service provider.
In step S207, the judging module 35 receives the input username corresponding to the website of the service provider, and determines whether the input username corresponding to the website of the service provider matches the obtained username that was set when the user registered a service in the website. If the input username corresponding to the website of the service provider matches the obtained username that was set when the user registered a service in the website, the procedure goes to step S208. If the input username corresponding to the website of the service provider does not match the obtained username that was set when the user registered a service in the website, the procedure stops at step S207.
In step S208, the executing module 36 generates a new email password and further controls the user terminal 2 to display the new email password.
In the embodiment, the display of the new email password is performed before the executing module 36 associates the new email password with the email address.
In detail, the executing module 36 further replaces the password corresponding to the email address with the new email password corresponding to the email address in the storage unit 10, and associates the new email password with the email address. In this way, the customer can login the email with the email address and the new email password.
Although the present disclosure has been specifically described on the basis of the exemplary embodiments thereof, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiments without departing from the scope and spirit of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201110447696.9 | Dec 2011 | CN | national |