A kind of method of login system
Technical field
The present invention relates to technical field of the computer network, relate in particular to a kind of method of login system.
Background technology
User's login is all an indispensable part for a lot of websites, system or software.More conventional method is exactly that the mode that allows user input user name, password and identifying code realizes register now, the method is whether consistent realization of the information inputted by authentication of users and typing in system, and identifying code is in order to prevent that malice from refreshing register.
The shortcoming of this scheme is, each user enters and will manually input user name, password and identifying code, cumbersome, and dangerous, because these information are easily obtained by viruses such as online wooden horses.
For unsafe problem in login, also has now another technical scheme, be exactly that user is in login system, system can generate a corresponding identifying code, send on user's mobile phone, user inputs this identifying code and could successfully login in the identifying code frame of login page, does like this security performance higher than in the past.But do like this and also have obvious shortcoming, first step is too loaded down with trivial details, user need to wait the note of mobile phone, if note sometimes can not be received in time because of reasons such as networks, so just affect user's login, send in addition note and also need in system, develop some functions that note sends, this also can increase the complexity of code to a certain extent.
Summary of the invention
The object of the invention is to propose a kind of method of login system, can save traditional login mode user and input the too much trouble of log-on message, and improve the fail safe of login.
For reaching this object, the present invention by the following technical solutions:
A method for login system, comprises the following steps:
When A, Accreditation System, the machine code of user's user name, cell-phone number and mobile phone is sent to system server, system server is stored in the machine code of described user's user name, cell-phone number and mobile phone in the first database;
Client in B, described user mobile phone is selected terminal, and obtains the Bluetooth address of described terminal;
The Bluetooth address of the machine code of the cell-phone number of described user mobile phone, mobile phone and described terminal is sent to system server by C, described client, and system server is stored in the Bluetooth address of the machine code of described user mobile phone number, mobile phone and described terminal in the second database;
D, input user name at described terminal, described terminal sends the Bluetooth address of described user name and described terminal to system server;
E, system server, according to the user name of receiving, retrieve the machine code of corresponding cell-phone number and mobile phone from the first database;
F, system server be according to the Bluetooth address of terminal and the machine code of the cell-phone number retrieving and mobile phone received, mates with the machine code of Bluetooth address, cell-phone number and the mobile phone of the terminal in the second database;
If the match is successful for G, system server sends login system successful information to described terminal.
Further comprising the steps of:
After Accreditation System success, system server sends the download address of client to mobile phone;
Mobile phone is from described download address download client, and is installed in mobile phone.
Step C is further comprising the steps of:
System server sends prompting login system information to described client.
In step C, described client is obtained the machine code of cell-phone number and the mobile phone of described user mobile phone from current phone.
Adopted technical scheme of the present invention, owing to only need to input user name in the time logining, other input informations do not need user to participate in, and input the too much trouble of log-on message, and can improve the fail safe of login so can save traditional login mode user.
Brief description of the drawings
Fig. 1 is the flow chart of login system in the specific embodiment of the invention.
Embodiment
Further illustrate technical scheme of the present invention below in conjunction with accompanying drawing and by embodiment.
Fig. 1 is the flow chart of login system in the specific embodiment of the invention.As shown in Figure 1, the flow process of this login system comprises the following steps:
When step 101, Accreditation System, the machine code of user's user name, cell-phone number and mobile phone is sent to system server, system server is stored in the machine code of user's user name, cell-phone number and mobile phone in the first database.
In practical operation, when becoming the user of a system, must, in the enrollment page registration personal information of this system, after succeeding in registration, just can become the user of this system.When log-on message, need to fill in other information such as user name, password, phone number, mailbox and mobile phone machine code, the user name of wherein saying above, password, cell-phone number and mobile phone machine code must be filled out.Username and password is for traditional login mode, and username and password still revises the required of user profile, and user name, machine code and cell-phone number are in the specific embodiment of the invention, to login needed log-on message.Here why adopting two kinds of login modes is in order to facilitate user to select, in order to avoid the login inconvenience that user mobile phone is not with or is not caused at one's side.Log-on message is filled in complete, then determines registration, succeed in registration like this, and be exactly the validated user of this system.
After step 102, Accreditation System success, system server is installed to client in mobile phone.After system registry success, have a page prompts user and download client that login system uses to mobile phone, and the download address of this client is provided, user according to this address download client in mobile phone and install.
Step 103, in the time that user need to login this system, the client in user mobile phone need to be selected terminal, and obtains the Bluetooth address of terminal.
First by supporting the terminal of bluetooth near the bluetooth equipment search subscriber of mobile phone, and the Bluetooth address of these terminals (BLUETOOTH ADDRESS) is presented to the client on mobile phone, select for user, which platform terminal what so just can determine that user will use is, and obtains the Bluetooth address of this terminal.
Step 104, client are obtained the machine code of cell-phone number and the mobile phone of user mobile phone again from current phone, then user sends to system server by client by the Bluetooth address of the machine code of the cell-phone number of user mobile phone, mobile phone and terminal, and system server is stored in the Bluetooth address of the machine code of the user mobile phone number of receiving, mobile phone and terminal in the second database.
Meanwhile, system server sends prompting login system information to client, and the prompting is here that system prompt is the user who logins and does corresponding operation by move described client on the mobile phone of oneself, and user can start login system.
Step 105, user input user name at terminal, and terminal sends the Bluetooth address information of user name and this terminal to system server.
Also by corresponding that terminal of the selected Bluetooth address of client, open the system that will login, enter the login page of system.This page has input frame and the login button of user name, after the user's of input registration user name, clicks login.This time, terminal passed to system server the Bluetooth address of the user name of input and this terminal.
Step 106, system server, according to the user name of receiving, retrieve the machine code of corresponding cell-phone number and mobile phone from the first database.
Step 107, system server be according to the Bluetooth address of terminal and the machine code of the cell-phone number retrieving and mobile phone received, mates with the machine code of Bluetooth address, cell-phone number and the mobile phone of the terminal in the second database.
If step 108 information is mated completely, the match is successful, and system server sends login system successful information to terminal, logging in system by user success.
Step 109, in the time that needs log off, system server can be disposed the record of the cell-phone number of that coupling of storing in the second database, mobile phone machine code and terminal Bluetooth address, just need to repeat operating procedure above when enter system next time more like this.
The above; be only preferably embodiment of the present invention, but protection scope of the present invention is not limited to this, any people who is familiar with this technology is in the disclosed technical scope of the present invention; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.