Summary of the invention
To overcome the problems in correlation technique, the disclosure provides a kind of account login method and device.
According to the first aspect of the embodiments of the present disclosure, a kind of account login method is provided, which comprises
The first logging request that target terminal is sent is received, carries target account and target office in first logging requestDomain network mark is known, and target LAN is the local area network that the target terminal is currently accessed;
Based on the target LAN identify, judge the target LAN whether be the target account accredited netNetwork;
When the target LAN is the trusted network of the target account, determine that the target account is shared accountNumber, and sent to the target terminal and log in confirmation message, the login confirmation message is used to indicate on the target terminalLog in the target account.
In another embodiment, described to be identified based on the target LAN, judge whether the target LAN is instituteState the trusted network of target account, comprising:
Based on the target account, from the corresponding relationship between the account and LAN ID of storage, obtain correspondingLAN ID;
When in the LAN ID of acquisition including target LAN mark, determine that the target LAN is describedThe trusted network of target account.
In another embodiment, target terminal mark is carried in first logging request;
It is described when the target LAN be the target account trusted network when, determine that the target account is sharedAccount, and sent to the target terminal and log in confirmation message, comprising:
When the target LAN is the trusted network of the target account, determine that the target account is shared accountNumber;
It is identified based on the target terminal, judges whether the target account is bound with the target terminal;
When the target account and the target terminal are bound, Xiang Suoshu target terminal sends the login confirmationMessage.
In another embodiment, it is described based on the target terminal identify, judge the target account whether with the meshMark terminal is bound, comprising:
Corresponding end is obtained from the corresponding relationship between the account and terminal iidentification of storage based on the target accountEnd mark;
When in the terminal iidentification of acquisition including target terminal mark, determine that the target account and the target are wholeIt is bound at end.
In another embodiment, described to be identified based on the target LAN, judge whether the target LAN is instituteBefore the trusted network for stating target account, further includes:
The second logging request is received, the target account, password and LAN ID are carried in second logging request;
Judge whether the target account matches with the password;
When the target account and the password match, the corresponding local area network of the LAN ID is determined as describedThe trusted network of target account.
In another embodiment, at least one terminal iidentification is carried in second logging request;
It is described when the target account and when the password match, the corresponding local area network of the LAN ID is determined asAfter the trusted network of the target account, further includes:
For each terminal iidentification at least one described terminal iidentification, by the target account and the terminal iidentificationCorresponding terminal is bound.
According to the second aspect of an embodiment of the present disclosure, a kind of account entering device is provided, described device includes:
First receiving module is taken in first logging request for receiving the first logging request of target terminal transmissionBand target account and target LAN identify, and target LAN is the local area network that the target terminal is currently accessed;
First judgment module judges whether the target LAN is described for identifying based on the target LANThe trusted network of target account;
Sending module, for determining the target when the target LAN is the trusted network of the target accountAccount is shared account, and sends to the target terminal and log in confirmation message, and the login confirmation message is used to indicate in instituteIt states and logs in the target account on target terminal.
In another embodiment, the first judgment module includes:
Acquisition submodule, for being based on the target account, from the corresponding pass between the account and LAN ID of storageIn system, corresponding LAN ID is obtained;
First determines submodule, for determining when in the LAN ID of acquisition including target LAN markThe target LAN is the trusted network of the target account.
In another embodiment, target terminal mark is carried in first logging request;The sending module includes:
Second determines submodule, for determining institute when the target LAN is the trusted network of the target accountStating target account is shared account;
Judging submodule judges whether the target account is whole with the target for identifying based on the target terminalIt is bound at end;
Sending submodule, for when the target account and the target terminal are bound, Xiang Suoshu target terminalSend the login confirmation message.
In another embodiment, the judging submodule is used for:
Corresponding end is obtained from the corresponding relationship between the account and terminal iidentification of storage based on the target accountEnd mark;
When in the terminal iidentification of acquisition including target terminal mark, determine that the target account and the target are wholeIt is bound at end.
In another embodiment, described device further include:
Second receiving module, carried for receiving the second logging request, in second logging request target account,Password and LAN ID;
Second judgment module, for judging whether the target account matches with the password;
Determining module is used for when the target account and the password match, by the corresponding office of the LAN IDDomain net is determined as the trusted network of the target account.
In another embodiment, at least one terminal iidentification is carried in second logging request;Described device further include:
Binding module, for for each terminal iidentification at least one described terminal iidentification, by the target accountTerminal corresponding with the terminal iidentification is bound.
According to the third aspect of an embodiment of the present disclosure, a kind of account entering device is provided, described device includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The first logging request that target terminal is sent is received, carries target account and target office in first logging requestDomain network mark is known, and target LAN is the local area network that the target terminal is currently accessed;
Based on the target LAN identify, judge the target LAN whether be the target account accredited netNetwork;
When the target LAN is the trusted network of the target account, determine that the target account is shared accountNumber, and sent to the target terminal and log in confirmation message, the login confirmation message is used to indicate on the target terminalLog in the target account.
The technical scheme provided by this disclosed embodiment can include the following benefits: in the embodiments of the present disclosure, whenIt, can be based on the target LAN mark carried in the first logging request when receiving the first logging request of target terminal transmissionKnow, judge target LAN whether be the target account carried in the first logging request trusted network.And work as target LANFor target account trusted network when, determine that target account is shared account, and send to target terminal and log in confirmation message, withInstruction logs in target account on a target terminal, thus in the case where the trusted network of target terminal access target account, it canWith realize target account on a target terminal exempt from close login.It that is to say, in the embodiment of the present disclosure, when the access of a certain terminal is a certainWhen the trusted network of shared account, user only needs to input without input on the terminal and the shared matched password of accountThe login that the shared account can be realized in the shared account improves shared account to simplify the login process of shared accountNumber login speed.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, notThe disclosure can be limited.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related toWhen attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodimentDescribed in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appendedThe example of device and method being described in detail in claims, some aspects of the invention are consistent.
Before to the embodiment of the present disclosure carrying out that explanation is explained in detail, first the application scenarios of the embodiment of the present disclosure are givenExplanation.Under the LAN environment based on router, the multiple terminals for accessing the local area network usually there will be the shared need of accountIt asks.In the related technology, when the multiple terminals for accessing same local area network are needed using same account, user is in multiple terminalEach terminal on be both needed to input the account and with the matched password of the account, so as in each terminal in multiple terminalThe account is logged in, the login process of the shared account is relatively complicated at this time, and the operating burden of user is larger, therefore, needs oneKind account login method, to simplify the login process of shared account.
Figure 1A is the signal of implementation environment involved in a kind of account login method shown according to an exemplary embodimentFigure, which includes: target terminal 110 and server 120, and target terminal 110 and server 120 can pass through wired companyIt connects or is wirelessly connected and communicated.Wherein, target terminal 110 can be tablet computer, smart phone, smart television, notesThis etc.;Server 120 can be a server, the server cluster consisted of several servers or oneA cloud computing service center.Target terminal 110 is used to send the first logging request to server 120, to request in target terminalTarget account is logged on 110.Server 120 is used to receive the first logging request of the transmission of target terminal 110, and steps on based on firstRecord requests to determine whether that target terminal 110 logs in target account.
Figure 1B is a kind of flow chart of account login method shown according to an exemplary embodiment, and this method is for servicingIn device.As shown in Figure 1B, this approach includes the following steps.
In a step 101, the first logging request that target terminal is sent is received, carries target account in the first logging requestIt is identified with target LAN, target LAN is the local area network that target terminal is currently accessed.
In a step 102, based on target LAN identify, judge target LAN whether be target account accredited netNetwork.
In step 103, when target LAN is the trusted network of target account, determine that target account is shared accountNumber, and sent to target terminal and log in confirmation message, it logs in confirmation message and is used to indicate login target account on a target terminal.
In the embodiments of the present disclosure, it when receiving the first logging request of target terminal transmission, can be stepped on based on firstThe target LAN mark carried in record request, judges whether target LAN is the target account carried in the first logging requestTrusted network.And when target LAN is the trusted network of target account, determine that target account is shared account, and to meshIt marks terminal and sends login confirmation message, to indicate to log in target account on a target terminal, to access target in target terminalIn the case where the trusted network of account, may be implemented target account on a target terminal exempt from close login.It that is to say, the disclosure is realIt applies in example, when a certain terminal accesses the trusted network of a certain shared account, user is shared with this without input on the terminalThe matched password of account, and only need to input the shared account and the login of the shared account can be realized, to simplify shared accountNumber login process, improve the login speed of shared account.
In another embodiment, it is identified based on target LAN, judges whether target LAN is the accredited of target accountNetwork, comprising:
Corresponding local is obtained from the corresponding relationship between the account and LAN ID of storage based on target accountNetwork mark is known;
When in the LAN ID of acquisition include target LAN mark when, determine target LAN be target account byCommunication network.
In another embodiment, target terminal mark is carried in the first logging request;
When target LAN is the trusted network of target account, determine that target account is shared account, and whole to targetEnd, which is sent, logs in confirmation message, comprising:
When target LAN is the trusted network of target account, determine that target account is shared account;
It is identified based on target terminal, judges whether target account is bound with target terminal;
When target account and target terminal are bound, is sent to target terminal and log in confirmation message.
In another embodiment, it is identified based on target terminal, judges whether target account is bound with target terminal, wrappedIt includes:
Based on target account, from the corresponding relationship between the account and terminal iidentification of storage, corresponding terminal mark is obtainedKnow;
When in the terminal iidentification of acquisition including target terminal mark, determine that target account is bound with target terminal.
In another embodiment, it is identified based on target LAN, judges whether target LAN is the accredited of target accountBefore network, further includes:
The second logging request is received, carries target account, password and LAN ID in the second logging request;
Judge whether target account matches with password;
When target account and password match, the corresponding local area network of LAN ID is determined as to the accredited net of target accountNetwork.
In another embodiment, at least one terminal iidentification is carried in the second logging request;
When target account and password match, the corresponding local area network of LAN ID is determined as to the accredited net of target accountAfter network, further includes:
For each terminal iidentification at least one terminal iidentification, by target account terminal corresponding with terminal iidentification intoRow binding.
All the above alternatives, can form the alternative embodiment of the disclosure according to any combination, and the disclosure is realIt applies example and this is no longer repeated one by one.
Fig. 2 is a kind of flow chart of account login method shown according to an exemplary embodiment, and this method is for servicingIn device.As shown in Fig. 2, this approach includes the following steps.
In step 201, the first logging request that target terminal is sent is received.
It should be noted that the first logging request logs in target account for requesting on a target terminal, the first login is askedMiddle carrying target account and target LAN is asked to identify, target LAN is the local area network that target terminal is currently accessed.
In addition, target account can be registered to obtain in the server, and target account can be made of letter, number etc.,Such as target account can be 123, ghkw.
Furthermore target LAN mark is used for unique identification target LAN, if target LAN mark can be targetIP (Internet Protocol, Internet protocol) address of the egress router of local area network etc..
In step 202, based on target LAN identify, judge target LAN whether be target account accredited netNetwork.
It should be noted that the trusted network of target account be shared local area network can be carried out to target account, namelyIt is that the multiple terminals for accessing the trusted network of target account are able to use target account.
Wherein, it is identified based on target LAN, it, can be with when judging whether target LAN is the trusted network of target accountCorresponding LAN ID is obtained from the corresponding relationship between the account and LAN ID of storage based on target account;WhenWhen including target LAN mark in the LAN ID of acquisition, determine that target LAN is the trusted network of target account;WhenWhen not including target LAN mark in the LAN ID of acquisition, target LAN is determined not and is the accredited net of target accountNetwork.Certainly, in practical application, can also based on target LAN identify, judge otherwise target LAN whether beThe trusted network of target account, the embodiment of the present disclosure are not specifically limited in this embodiment.
For example, target account is 123, target LAN is identified as LAN ID 1, then can be based on target account 123,From the corresponding relationship between account and LAN ID as shown in table 1 below, obtaining corresponding LAN ID is local area networkMark 1, LAN ID 2 and LAN ID 3.Due to including that target LAN identifies in the LAN ID of acquisition,It can determine that target LAN is the trusted network of target account.
Table 1
It should be noted that in the embodiment of the present disclosure, only with pair shown in above-mentioned table 1 between account and LAN IDIt is illustrated for should being related to, above-mentioned table 1 does not constitute the embodiment of the present disclosure and limits.
Further, based on target LAN identify, judge target LAN whether be target account trusted network itBefore, the second logging request can also be received, carries target account, password and LAN ID in the second logging request;Judge meshWhether mark account matches with the password;It is when target account and the password match, the corresponding local area network of the LAN ID is trueIt is set to the trusted network of target account;When target account and the password mismatch, not by the corresponding local of the LAN IDNet is determined as the trusted network of target account.
It should be noted that the second logging request is used to request to log in target account in the terminal for sending the second logging requestNumber.
Wherein, when judging whether target account matches with the password, target account can be based on, from the account of storage with it is closeIn corresponding relationship between code, corresponding password is obtained;When the password of acquisition is identical as the password, determines target account and be somebody's turn to doPassword match;When the password of acquisition and the password difference, determine that target account and the password mismatch.Certainly, practical applicationIn, it can also judge otherwise whether target account matches with the password, the embodiment of the present disclosure does not do specific limit to thisIt is fixed.
For example, target account is 123, which is ghloaa, then target account 123 can be based on, from as shown in table 2 belowAccount and password between corresponding relationship in, obtain corresponding password be ghloaa.Due to the password and the password phase of acquisitionTogether, hence, it can be determined that target account 123 is matched with password ghloaa.
Table 2
| Account | Password |
| 123 | ghloaa |
| 456 | Shiokk |
| …… | …… |
It should be noted that in the embodiment of the present disclosure, only with the corresponding relationship shown in above-mentioned table 2 between account and passwordFor be illustrated, above-mentioned table 2 not to the embodiment of the present disclosure constitute limit.
It wherein, can be by target when the corresponding local area network of the LAN ID being determined as the trusted network of target accountAccount and LAN ID storage are corresponding by the LAN ID into the corresponding relationship between account and LAN IDLocal area network be determined as the trusted network of target account.It certainly, can also be otherwise by the local area network in practical applicationThe trusted network that corresponding local area network is determined as target account is identified, the embodiment of the present disclosure is not specifically limited in this embodiment.
For example, target account is 123, which is LAN ID 1, then can be by target account 123 and officeDomain network mark knows 1 storage into the corresponding relationship between account and LAN ID as listed in Table 1, by LAN ID 1Corresponding local area network is determined as the trusted network of target account 123.
Further, before server receives the second logging request, the terminal for sending the second logging request be can be generatedSecond logging request.And the terminal is when generating the second logging request, which can be in the target account that receives input and closeWhen code, judge whether for the first time request logs in target account under the local area network being currently accessed;When being requested for the first time under the local area networkWhen logging in target account, prompting message is arranged in display trusted network, to prompt the user whether to set the local area network to target accountNumber trusted network;When receiving the confirmation instruction for trusted network setting prompt information, it is corresponding to obtain the local area networkLAN ID;Based on target account, the password and the LAN ID, the second logging request is generated.
It should be noted that trusted network setting prompt information is for prompting the user whether that the local area network that will be currently accessed is setIt is set to the trusted network of target account.
In addition, confirmation instruction is used to indicate the trusted network that the local area network that will be currently accessed is determined as target account, and shouldConfirm that instruction can be triggered by user, which can be by specifying operation triggering, and it can be single-click operation that this, which specifies operation, doubleHit operation, voice operating etc..
Further, when target account and the password match, the corresponding local area network of the LAN ID is determined asIt, can also be when carrying at least one terminal iidentification in the second logging request, extremely for this after the trusted network of target accountEach terminal iidentification in a few terminal iidentification, target account terminal corresponding with the terminal iidentification is bound.
It should be noted that terminal iidentification is used for unique identification terminal, if terminal iidentification can be the IMEI of terminal(International Mobile Equipment Identity, International Mobile Equipment Identity), MAC (Media AccessControl, media access control) address etc..
It wherein, can be by target account and the end when target account terminal corresponding with the terminal iidentification being boundEnd mark storage is into the corresponding relationship between account and terminal iidentification, by target account terminal corresponding with the terminal iidentificationIt is bound.Certainly, in practical application, can also otherwise by target account terminal corresponding with the terminal iidentification intoRow binding, the embodiment of the present disclosure are not specifically limited in this embodiment.
In step 203, when target LAN is the trusted network of target account, determine that target account is shared accountNumber, and sent to target terminal and log in confirmation message.
It should be noted that logging in confirmation message is used to indicate login target account on a target terminal.
In addition, that is to say due to the trusted network that target LAN is target account, accessing multiple ends of target LANEnd is able to use target account, hence, it can be determined that target account is shared account.
Wherein, when target LAN is the trusted network of target account, determine that target account is shared account, and to meshWhen marking terminal transmission login confirmation message, after being shared account determining target account, directly it be stepped on to target terminal transmissionRecord confirmation message;Alternatively, can determine that target account is shared account when carrying target terminal mark in the first logging requestAfter number, is identified based on target terminal, judge whether target account is bound with target terminal, when target account and target terminalWhen being bound, is sent to target terminal and log in confirmation message.
On the one hand, the embodiment of the present disclosure can directly be sent to target terminal after determining that target account is shared accountConfirmation message is logged in, so that all terminals for realizing the trusted network of access target account exempt from close login, and due at this timeServer no longer needs to carry out other operations after determining that target account is shared account, it is thus possible to improve logging in confirmation messageTransmission speed, and then improve the login speed of shared account.
On the other hand, the embodiment of the present disclosure, can be to target account and target after determining that target account is shared accountJudged whether the binding of terminal, and then when target account and target terminal are bound, sends and log in target terminalConfirmation message, to realize in multiple terminals of the trusted network of access target account, the end bound with target accountClose login is exempted from end, improves the login security of shared account.
Wherein, it is identified based on target terminal, when judging whether target account is bound with target terminal, mesh can be based onMark account obtains corresponding terminal iidentification from the corresponding relationship between the account and terminal iidentification of storage;When the terminal of acquisitionWhen including target terminal mark in mark, determine that target account is bound with target terminal;When in the terminal iidentification of acquisition notWhen including target terminal mark, determine that target account is not bound with target terminal.It certainly, can also be with base in practical applicationIt is identified in target terminal, judges whether target account is bound with target terminal otherwise, the embodiment of the present disclosure pairThis is not specifically limited.
For example, target account is 123, target terminal is identified as terminal iidentification 1, then target account 123 can be based on, from such asIn corresponding relationship between account and terminal iidentification shown in the following table 3, obtaining corresponding terminal iidentification is terminal iidentification 1, terminalMark 2 and terminal iidentification 3.Due in the terminal iidentification of acquisition include target terminal identify, hence, it can be determined that target account withTarget terminal is bound.
Table 3
It should be noted that in the embodiment of the present disclosure, only with corresponding between account and terminal iidentification shown in above-mentioned table 3It is illustrated for relationship, above-mentioned table 3 does not constitute the embodiment of the present disclosure and limits.
In the embodiments of the present disclosure, it when receiving the first logging request of target terminal transmission, can be stepped on based on firstThe target LAN mark carried in record request, judges whether target LAN is the target account carried in the first logging requestTrusted network.And when target LAN is the trusted network of target account, determine that target account is shared account, and to meshIt marks terminal and sends login confirmation message, to indicate to log in target account on a target terminal, to access target in target terminalIn the case where the trusted network of account, may be implemented target account on a target terminal exempt from close login.It that is to say, the disclosure is realIt applies in example, when a certain terminal accesses the trusted network of a certain shared account, user is shared with this without input on the terminalThe matched password of account, and only need to input the shared account and the login of the shared account can be realized, to simplify shared accountNumber login process, improve the login speed of shared account.
Fig. 3 A is a kind of block diagram of account entering device shown according to an exemplary embodiment.Referring to Fig. 3 A, the deviceIncluding the first receiving module 301, first judgment module 302 and sending module 303.
First receiving module 301 carries in the first logging request for receiving the first logging request of target terminal transmissionTarget account and target LAN mark, target LAN are the local area network that target terminal is currently accessed;
First judgment module 302 judges whether target LAN is target account for identifying based on target LANTrusted network;
Sending module 303, for determining that target account is shared when target LAN is the trusted network of target accountAccount, and sent to target terminal and log in confirmation message, it logs in confirmation message and is used to indicate login target account on a target terminalNumber.
In another embodiment, referring to Fig. 3 B, which includes:
Acquisition submodule 3021, for being based on target account, from the corresponding pass between the account and LAN ID of storageIn system, corresponding LAN ID is obtained;
First determines submodule 3022, for determining when in the LAN ID of acquisition including target LAN markTarget LAN is the trusted network of target account.
In another embodiment, target terminal mark is carried in the first logging request;Referring to Fig. 3 C, the sending module 303Include:
Second determines submodule 3031, for determining target account when target LAN is the trusted network of target accountNumber for shared account;
Judging submodule 3032 judges whether target account is tied up with target terminal for identifying based on target terminalIt is fixed;
Sending submodule 3033, for sending and logging in target terminal when target account is bound with target terminalConfirmation message.
In another embodiment, which is used for:
Based on target account, from the corresponding relationship between the account and terminal iidentification of storage, corresponding terminal mark is obtainedKnow;
When in the terminal iidentification of acquisition including target terminal mark, determine that target account is bound with target terminal.
In another embodiment, referring to Fig. 3 D, the device further include:
Second receiving module 304 carries target account, password in the second logging request for receiving the second logging requestAnd LAN ID;
Second judgment module 305, for judging whether target account matches with password;
Determining module 306, for when target account and password match, the corresponding local area network of LAN ID to be determined asThe trusted network of target account.
In another embodiment, at least one terminal iidentification is carried in the second logging request;Referring to Fig. 3 E, which is also wrappedIt includes:
Binding module 307, for for each terminal iidentification at least one terminal iidentification, by target account and terminalCorresponding terminal is identified to be bound.
In the embodiments of the present disclosure, it when receiving the first logging request of target terminal transmission, can be stepped on based on firstThe target LAN mark carried in record request, judges whether target LAN is the target account carried in the first logging requestTrusted network.And when target LAN is the trusted network of target account, determine that target account is shared account, and to meshIt marks terminal and sends login confirmation message, to indicate to log in target account on a target terminal, to access target in target terminalIn the case where the trusted network of account, may be implemented target account on a target terminal exempt from close login.It that is to say, the disclosure is realIt applies in example, when a certain terminal accesses the trusted network of a certain shared account, user is shared with this without input on the terminalThe matched password of account, and only need to input the shared account and the login of the shared account can be realized, to simplify shared accountNumber login process, improve the login speed of shared account.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this methodEmbodiment in be described in detail, no detailed explanation will be given here.
Fig. 4 is a kind of block diagram of account entering device 400 shown according to an exemplary embodiment.For example, device 400 canTo be provided as a server.Referring to Fig. 4, it further comprises one or more processing that device 400, which includes processing component 422,Device, and the memory resource as representated by memory 432, for store can by the instruction of the execution of processing component 422, such asApplication program.The application program stored in memory 432 may include it is one or more each correspond to one group refer toThe module of order.
Device 400 can also include the power management that a power supply module 426 is configured as executive device 400, and one hasLine or radio network interface 450 are configured as device 400 being connected to network and input and output (I/O) interface 458.DressSetting 400 can operate based on the operating system for being stored in memory 432, such as Windows ServerTM, Mac OS XTM,UnixTM,LinuxTM, FreeBSDTMOr it is similar.
In addition, processing component 422 is configured as executing instruction, to execute above-mentioned account login method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention itsIts embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes orPerson's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the disclosureOr conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by followingClaim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, andAnd various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.