Account login method and device
By establishing a wireless connection between the user terminal and the login device, and using the user terminal identification and session identification for authentication, automatic login and logout of the account is realized, which solves the problems of cumbersome account login operations and insufficient security in the existing technology. , improving user experience and login efficiency.
Patent Information
- Application Number
- CN202010398357.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-12
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-05-12
AI Technical Summary
The existing account login method is cumbersome, has poor user experience, and has a low degree of automation, making it difficult to achieve imperceptible account login and logout.
By establishing a wireless connection between the user terminal and the login device, the user terminal ID and session ID are obtained, and this information is used for authentication and automatic login to the account, and automatically logs out of the account when the connection is disconnected to achieve imperceptible account login and login. out.
It greatly improves account login efficiency and user experience, ensures the security and reliability of login behavior, and handles automatic account logout in a timely manner to avoid illegal operations.
Smart Images

Figure CN113657884B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to an account login method and device. Background Art
[0002] Account login is usually a necessary operation for users to use devices or applications. After successful login, users can use the account to perform subsequent operations to achieve corresponding functions.
[0003] With the development of Internet technology and the popularization of smart devices, users may need to log in to their accounts on a variety of different devices. For example, users can log in to an application on mobile phones, tablet computers, computers and other devices and perform subsequent operations; there are sales terminals (POS, Point of Sale) in retail scenes such as convenience stores and supermarkets, and users can log in to their accounts on the sales terminals and perform subsequent shopping activities; and so on.
[0004] The current account login method is usually for the user to enter the account number and password on the device. The input method is not user-friendly, the operation is cumbersome, and the user experience is poor. Another login method is to use a mobile terminal (such as a mobile phone, tablet computer, etc.) that has completed the login to scan the QR code on the device to be logged in, so as to log in to the account on the device to be logged in. This login method does not require entering the account number and password, and optimizes the input method, but there are still many operation steps (including opening the QR code interface on the device to be logged in, opening the QR code scanning interface on the mobile terminal and scanning, confirming the login, etc.), and the degree of automation is low.
[0005] Therefore, it is necessary to provide an automated account login solution that can free the user's hands. Summary of the invention
[0006] To this end, the present invention provides an account login method and device to try to solve or at least alleviate the above problems.
[0007] According to a first aspect of the present invention, there is provided an account login method, which is executed in a login device, and the method comprises: when a wireless connection is established with a user terminal, obtaining a user terminal identifier and a session identifier from the user terminal; authenticating the user terminal according to the login device identifier, the user terminal identifier and the session identifier, and logging into the account corresponding to the user terminal after the authentication is passed.
[0008] According to a second aspect of the present invention, there is provided an account login method, which is executed in a user terminal, and the method comprises: establishing a wireless connection with a login device; sending a user terminal identifier and a session identifier to the login device, so that the login device completes authentication and account login according to the login device identifier, the user terminal identifier and the session identifier.
[0009] According to a third aspect of the present invention, there is provided an account login method, which is executed in a server, and the method comprises: receiving a login request sent by a login device, the login request comprising a login device identifier, a user terminal identifier and a session identifier; authenticating the user terminal according to the session identifier, and after the authentication is passed, logging into the account corresponding to the user terminal; and returning the account login result to the login device.
[0010] According to a fourth aspect of the present invention, there is provided a login device, comprising: at least one processor and a memory storing program instructions; when the program instructions are read and executed by the processor, the computing device executes the above-mentioned first account login method.
[0011] According to a fifth aspect of the present invention, there is provided a user terminal, comprising: at least one processor and a memory storing program instructions; when the program instructions are read and executed by the processor, the user terminal executes the above-mentioned second account login method.
[0012] According to a sixth aspect of the present invention, there is provided a server, comprising: at least one processor and a memory storing program instructions; when the program instructions are read and executed by the processor, the server executes the third account login method mentioned above.
[0013] According to a seventh aspect of the present invention, there is provided an account login system, comprising the above-mentioned login device, a user terminal and a server.
[0014] According to an eighth aspect of the present invention, a readable storage medium storing program instructions is provided. When the program instructions are read and executed by a computing device, the computing device executes any one of the above-mentioned account login methods.
[0015] According to a ninth aspect of the present invention, there is provided an account login and sales method, which is executed in a sales terminal, and the method comprises: when establishing a wireless connection with a user terminal, obtaining a user terminal identifier and a session identifier from the user terminal; authenticating the user terminal according to the sales terminal identifier, the user terminal identifier and the session identifier, and logging into the account corresponding to the user terminal after the authentication is passed; and in the account login state, receiving a shopping request, and performing a sales operation in response to the shopping request.
[0016] According to the tenth aspect of the present invention, there is provided an account login and ticket selling method, which is executed in a ticket selling terminal, and the method comprises: when establishing a wireless connection with a user terminal, obtaining a user terminal identifier and a session identifier from the user terminal; authenticating the user terminal according to the ticket selling terminal identifier, the user terminal identifier and the session identifier, and logging into the account corresponding to the user terminal after the authentication is passed; and in the account login state, receiving a ticket purchase request, and performing a ticket selling operation in response to the ticket purchase request.
[0017] According to the eleventh aspect of the present invention, there is provided an account login and service processing method, which is executed in a service terminal, and the method comprises: when establishing a wireless connection with a user terminal, obtaining a user terminal identifier and a session identifier from the user terminal; authenticating the user terminal according to the service terminal identifier, the user terminal identifier and the session identifier, and logging into the account corresponding to the user terminal after the authentication is passed; and in the account login state, receiving a service request, and executing a corresponding service operation in response to the service request.
[0018] According to a twelfth aspect of the present invention, there is provided an account login method, which is executed in an account login system, wherein the account login system includes a login device, a user terminal and a server, and the method includes: logging in to an account on a user terminal; the user terminal scans a QR code on the login device, wherein a login device identifier is stored in the QR code; the user terminal sends a migration login request to the server, wherein the migration login request includes a login device identifier, a user terminal identifier and account information; the server responds to the migration login request, binds the login device to the user terminal, allocates a session identifier seed to the user terminal, and logs in to the account on the login device.
[0019] According to the account login scheme of the present invention, when the user terminal establishes a wireless connection with the login device, the user terminal sends the user terminal identifier and the session identifier for account authentication to the login device, and the login device sends a login request to the server based on the user terminal identifier and the session identifier. The server responds to the login request sent by the login device, authenticates the user terminal according to the session identifier, logs in the corresponding account after the authentication login, and returns the account login result to the login device.
[0020] The account login solution of the present invention can automatically log in the user's account on the login device when the user terminal is close to the login device, without the user having to perform additional operations, thus achieving user-unaware account login, greatly improving account login efficiency and user experience. In addition, authentication is achieved through session identification, ensuring the security and reliability of login behavior.
[0021] Furthermore, according to the account login scheme of the present invention, after completing the account login, the login device periodically detects whether it maintains a wireless connection with the user terminal. If so, the account login state is maintained; if not, the account is logged out. In this way, the account can be automatically logged out when the user terminal is away from the login device, achieving timely and imperceptible account logout and ensuring the security of the account.
[0022] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] To achieve the above and related purposes, certain illustrative aspects are described herein in conjunction with the following description and accompanying drawings, which indicate various ways in which the principles disclosed herein can be practiced, and all aspects and their equivalents are intended to fall within the scope of the claimed subject matter. The above and other purposes, features and advantages of the present disclosure will become more apparent by reading the following detailed description in conjunction with the accompanying drawings. Throughout the present disclosure, the same reference numerals generally refer to the same parts or elements.
[0024] Figure 1 A schematic diagram of an account login system 100 according to an embodiment of the present invention is shown;
[0025] Figure 2 A flowchart of logging into an account for the first time on a login device according to an embodiment of the present invention is shown;
[0026] Figure 3 A flowchart of logging into an account again on a login device according to an embodiment of the present invention is shown;
[0027] Figure 4 A flowchart of an account login method 400 executed on a login device side according to an embodiment of the present invention is shown;
[0028] Figure 5 A flowchart of an account login method 500 executed on a user terminal side according to an embodiment of the present invention is shown;
[0029] Figure 6 A flowchart of an account login method 600 executed on a server side according to an embodiment of the present invention is shown;
[0030] Figure 7 A schematic diagram of a computing device 700 according to one embodiment of the present invention is shown. DETAILED DESCRIPTION
[0031] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0032] In view of the problems existing in the prior art, the present invention provides an account login solution, which realizes automatic account login and greatly improves the account login efficiency and user experience. The account login solution of the present invention includes an account login system, an account login method and corresponding equipment.
[0033] Figure 1FIG. 1 is a schematic diagram of an account login system 100 according to an embodiment of the present invention. Figure 1 As shown, the account login system 100 includes a login device 110 , a user terminal 120 and a server 130 .
[0034] It should be pointed out that Figure 1 The account login system shown is only an example. Figure 1 Only one login device 110, one user terminal 120 and one server 130 are shown, but those skilled in the art will appreciate that in practice, the account login system may include multiple login devices, user terminals and servers. The present invention does not limit the number of login devices, user terminals and servers included in the account login system.
[0035] The user terminal 120 is a portable mobile terminal used by the user, including but not limited to a mobile phone, a tablet computer, a smart wearable device, etc.
[0036] The login device 110 is a terminal device with poor portability and a relatively fixed location (relative to the user terminal 120). It can be, for example, a personal computer such as a desktop computer or a laptop computer, a sales terminal deployed in retail scenarios such as convenience stores and supermarkets, a ticket terminal deployed in airports, railway stations, cinemas, etc., and a business terminal deployed in public places such as banks, operator business halls, and municipal halls, etc., but is not limited to these.
[0037] An operating system and some applications are installed in the login device 110 and the user terminal 120, respectively. In some embodiments, the operating system and applications installed in the login device 110 are customized according to the application scenario of the login device 110. The server 130 is a service end corresponding to the operating system or application installed in the login device 110 and the user terminal 120, and is used to provide methods and data calls to the corresponding operating system or application. The server 130 can be, for example, a cloud server.
[0038] The user can log in to the operating system or application on the login device 110 or the user terminal 120 to use the functions provided by the operating system or each application. For the login device 110, there are generally two existing methods for logging in to a user account on the login device 110. One method is that the user enters the account number and password on the login device 110 to log in, such as Figure 1 Another method is to use the user terminal 120 to scan the QR code on the login device 110 to log in, such as Figure 1 Both of these login methods require the user to perform many steps, which is inefficient and provides a poor user experience.
[0039] To this end, the present invention provides a new account login method, which is executed in the account login system 100, specifically, by the login device 110, the user terminal 120 and the server 130 in the account login system 100, and is used to automatically log in to the user account on the login device 110, so as to achieve account login without user perception, greatly improving the account login efficiency and user experience. In addition, authentication can be achieved through session identification, ensuring the security and reliability of login behavior.
[0040] The account login method of the present invention includes two stages:
[0041] The first stage is when the user logs in to his account for the first time on the login device 110. During the first login process, the account login system 100 needs to perform corresponding configuration operations so that the login device 110 is bound to the user terminal 120, and the user terminal 120 obtains the session identification seed for authentication issued by the server 130. After the configuration is completed, the account on the login device 110 can be automatically logged in during each subsequent login process.
[0042] The second stage is that the user logs in to his account again (including the second time and each subsequent time, not limited to the second time) on the login device 110. The re-login process is completed automatically, and no additional operation is required from the user. Specifically, when the user terminal 120 is close to the login device 110 and a wireless connection is established with the login device 110, the login device 110 sends a login request to the server, and the user's account is automatically logged in on the login device 110, such as Figure 1 As shown in process ③; when the user terminal 120 is away from the login device 110 and the wireless connection with the login device 110 is disconnected, the login device 110 automatically logs out of the account, realizing timely and imperceptible account login and logout, improving login efficiency and user experience, and ensuring the security of the account.
[0043] According to one embodiment, the account login method of the present invention is performed with the authorization of the user. That is, when the user logs in to the account on the login device 110 for the first time, or when the user does not authorize the login device 110 to automatically log in to the account, each time the user manually logs in to the account on the login device 110, a corresponding prompt message will pop up on the login device 110 or the user terminal 120 to ask the user whether to allow the automatic login and logout function of the account to be enabled, so as to realize automatic and imperceptible account login and logout on the login device 110 next time.
[0044] If the user authorization is obtained, that is, the user agrees to enable the automatic login and logout function of the account, the user needs to perform the corresponding binding according to the steps of the first stage mentioned above, so that when the user terminal 120 is close to the login device 110 next time and establishes a wireless connection with the login device 110, the login device 110 will automatically log in to the user's account; when the user terminal 120 is away from the login device 110 and the wireless connection with the login device 110 is disconnected, the login device 110 will automatically log out of the user account, thereby realizing automatic login and logout of the account.
[0045] If the user does not authorize, that is, the user does not agree to enable the automatic login and logout function, then the user does not need to perform the binding steps in the first stage above. Subsequent users can only use the traditional method ( Figure 1 In the process ① or ②) of logging into the account on the login device 110, the technical solution of the present invention will not be used to realize automatic login and logout of the account. The following is a detailed description of the first account login process and the second account login process on the login device 110.
[0046] Figure 2 The flowchart of the first login to an account on the login device 110 according to one embodiment of the present invention is shown. During the first login to an account, the login device 110 establishes a short-range wireless connection with the user terminal 120, such wireless connection includes but is not limited to the two being connected to the same wireless local area network (such as a Wi-Fi local area network, etc.), the two establishing a point-to-point wireless communication connection such as Bluetooth, ZigBee, etc.
[0047] like Figure 2 As shown, the first login process starts at step S202.
[0048] In step S202, the user terminal 120 sends an initial login request to the server 130, and the initial login request includes account information. Generally, the account information includes an account number and a password.
[0049] In the embodiment of the present invention, the initial login request refers to a request initiated by the user terminal 120 to the server 130 for logging into an account on the user terminal 120 itself.
[0050] In some embodiments, in addition to the account number and password, the initial login request also includes a verification code (CAPTCHA, Completely Automated Public Turing test to tell Computers and Humans Apart) for distinguishing whether the user is a human or a computer program. The verification code includes multiple types such as character verification code, image verification code, voice verification code, video verification code, etc.
[0051] In response to the initial login request sent by the user terminal 120, the server 130 verifies the account and password sent by the user terminal 120 (verifies whether the account and password match). If the verification is successful, the account is logged in; if the verification fails, the account login is rejected.
[0052] In step S204 , the server 130 returns the account login result to the user terminal 120 . Accordingly, the user terminal 120 receives the account login result returned by the server 130 .
[0053] After the user terminal 120 successfully logs into the account, step S206 is executed.
[0054] In step S206, the user terminal 120 obtains the relevant information of the login device 110 from the login device 110. The relevant information of the login device 110 includes the login device identifier (the login device identifier is used to uniquely identify the login device), the MAC address of the login device, the IP address, etc., but is not limited thereto.
[0055] According to an embodiment, a QR code is displayed on the screen of the login device 110, and the QR code stores information such as the login device identification. In step S206, the user terminal 120 scans the QR code on the login device screen, so that in step S208, the information in the QR code, i.e., the login device identification and other information, is sent to the user terminal 120, and accordingly, the user terminal 120 obtains the login device identification.
[0056] Subsequently, in step S210, the user terminal 120 sends a migration login request to the server 130, where the migration login request includes a login device identifier, a user terminal identifier (used to uniquely identify the user terminal) and account information.
[0057] In the embodiment of the present invention, the migration login request refers to a request initiated by the user terminal 120 to the server 130 for logging into an account on another device (ie, the login device 110).
[0058] According to an embodiment, the migration login request may also include login device information such as the MAC address and IP address of the login device.
[0059] In step S212, the server 130 receives the migration login request sent by the user terminal 120, allocates a session identification seed to the user terminal, and associates and stores the login device identification, the user terminal identification, the account information, and the session identification seed.
[0060] The session identifier seed is a preset initial value used to generate a session identifier, and the generated session identifier is used to authenticate the login behavior in the subsequent process of logging into the user account by the login device 110 to ensure the security and reliability of the login behavior. According to an embodiment, the session identifier is generated by processing the session identifier seed according to a preset algorithm, and the session identifier is dynamic.
[0061] According to an embodiment, the session identification seed may be an OTP (One-time Password) seed, which includes a 128-bit initial value. The session identification seed and the current time are combined and calculated using a hash algorithm such as MD5 or SHA to generate a session identification. Since the current time information is combined in the session identification, different session identifications are generated at different times, and the session identification changes dynamically over time.
[0062] After the server 130 allocates the session identification seed to the user terminal 120, it stores the login device identification, the user terminal identification, the account information and the session identification seed in association. In some embodiments, in addition to storing these four pieces of information in association, the server 130 may also store the device information of the login device 110 in association, such as the MAC address and IP address of the login device 110.
[0063] It should be noted that in an embodiment of the present invention, the server 130 performs one-to-one binding of the user terminal identifier and the account information. In practice, sometimes there are situations where multiple different accounts are logged in on a user terminal. In this case, if you want to realize automatic login of different accounts on the login device 110, you need to unbind the account information bound to the user terminal, and then rebind the new account. This is for account security considerations, that is, the user terminal can only enable the account currently bound to it to automatically log in on the login device 110, and the account can only complete the login on the login device through the user terminal currently bound to it.
[0064] For example, the user terminal first logs in to account A, and then binds the login device identifier, user terminal identifier, account A information and session identifier seed on the server 130 side according to the method of the present invention, thereby realizing automatic login and logout on the login device 110. If the user wants to automatically log in to account B on the login device next time, it is necessary to perform corresponding operations to enable the server 130 to unbind the user terminal from account A and bind the login device identifier, user terminal identifier, account B information and session identifier seed. When the server 130 allocates a session identifier seed to the user terminal 120, and stores the login device identifier, user terminal identifier, account information and session identifier seed in association, the login status of the login device 110 is marked as logged in, and the currently logged in account information is recorded. In this way, the account migration from the user terminal 120 to the login device 110 is completed, that is, the user account is logged in on the login device 110.
[0065] Subsequently, in step S214, the server 130 returns the session identification seed to the user terminal 120, and the user terminal 120 stores the session identification seed locally.
[0066] In step S216, the login device 110 sends a query request to the server 130 to query whether the current login device 110 has successfully logged into the account. The query request includes a login device identifier.
[0067] In response to the query request, the server 130 queries whether the login device 110 has successfully logged into the account, and in step S218, returns the query result to the login device 110.
[0068] Specifically, if the login device 110 currently successfully logs into the account, then in step S218, the server 130 returns a message of successful account login and the corresponding user terminal identifier (i.e., the identifier of the user terminal 120) to the login device 110, so that the login device 110 adds the user terminal identifier to the associated terminal list. The associated terminal list is stored at the login device 110, and the associated terminal list stores the user terminal identifiers that have completed the account migration, that is, the user terminal identifiers corresponding to the accounts that have been logged in on the login device 110 are stored.
[0069] If the login device 110 has not successfully logged into the account, then in step S218 , the server 130 returns a message to the login device 110 indicating that the account has not been logged in.
[0070] It should be noted that although Figure 2In the flowchart shown, steps S216 to S218 are executed after steps S210 to S214, but steps S216 to S218 may actually be executed in parallel, and steps 216 to S218 may be executed repeatedly. After the login device 110 sends the login device identifier to the user terminal 120 in step S208, the login device 110 begins to send query requests to the server 130 at regular intervals (for example, once per second) to query the current account login status until a return message indicating successful account login is received.
[0071] When the login device 110 successfully logs into the account, steps S220 to S224 are executed.
[0072] In step S220 , a detection message is sent to the user terminal 120 to detect whether the login device 110 and the user terminal 120 maintain a wireless connection.
[0073] It should be noted that the specific steps of the login device 110 sending the detection message to the user terminal 120 vary according to the type of wireless connection between the two. For example, if the user terminal 120 and the login device 110 are connected to the same wireless local area network, then in step S220, the login device 110 broadcasts the detection message in the wireless local area network, and accordingly, the user terminal 120 receives the detection message broadcast by the login device 110; if the user terminal 120 establishes a point-to-point wireless communication connection with the login device 110, then in step S220, the login device 110 sends the detection message to the user terminal 120 in a targeted manner (i.e., the login device 110 only sends the detection message to the user terminal 120, and not to other devices), and accordingly, the user terminal 120 receives the detection message sent by the login device 110 in a targeted manner.
[0074] If in step S222, the login device 110 receives a feedback message from the user terminal 120, it indicates that the user terminal 120 is still near the login device 110. Since the user terminal 120 is carried by the user, the user is still near the login device 110. In this case, in step S224, the account login status is maintained.
[0075] If in step S222, the login device 110 does not receive a feedback message from the user terminal 120, that is, the user terminal 120 times out without a response, it indicates that the user terminal 120 has moved away from the login device 110, and accordingly, the user has also left and will not operate on the login device 110. In this case, in step S224, the login device 110 actively logs out of the account.
[0076] It should be noted that steps S220 to S224 may be repeatedly executed multiple times. When the login device 110 successfully logs into the account, the login device 110 begins to send detection messages to the user terminal 120 at regular intervals (for example, once per second) to determine whether a wireless connection is maintained with the user terminal 120, that is, to determine whether the user terminal 120 is still nearby. If so, the account login status is maintained; if not, the account is actively logged out. According to one embodiment, in order to avoid false detection of the wireless connection status due to signal problems, the user terminal 120 temporarily moving out of the wireless communication area, and other problems, the login device 110 does not immediately log out of the account when it detects that there is no wireless connection with the user terminal 120, but actively logs out of the account when the duration of no wireless connection with the user terminal 120 reaches a preset threshold. The specific value of the preset threshold can be set by a person skilled in the art, and the present invention does not limit this.
[0077] Figure 3 The flowchart of logging in to an account again on the login device 110 according to one embodiment of the present invention is shown. It should be noted that "again" refers to the second time and the third time, the third time, and each subsequent time, rather than specifically the second time.
[0078] like Figure 3 As shown, the re-login process starts at step S302.
[0079] In step S302 , the user terminal 120 enters the communication range of the login device 110 and establishes a wireless connection with the login device 110 .
[0080] The wireless connection includes but is not limited to connecting the two devices to the same wireless local area network (such as a Wi-Fi local area network, etc.), establishing a point-to-point wireless communication connection such as Bluetooth, ZigBee, etc. between the two devices, and so on.
[0081] It should be noted that the process of establishing a wireless connection between the user terminal 120 and the login device 110 is usually not perceived by the user. For example, the user terminal 120 turns on the wireless LAN switch, and when the user terminal 120 enters the coverage range of the wireless LAN to which the login device 110 is connected, it will automatically connect to the wireless LAN, thereby establishing a wireless connection with the login device 110.
[0082] For another example, the user terminal 120 turns on the Bluetooth switch. When the user terminal 120 enters the Bluetooth signal coverage range of the login device 110, a Bluetooth connection will be automatically established with the login device 110.
[0083] After the user terminal 120 establishes a wireless connection with the login device 110, step S304 is executed.
[0084] In step S304 , the user terminal 120 sends the user terminal identification to the login device 110 , and correspondingly, the login device 110 receives the user terminal identification.
[0085] The specific steps of the user terminal 120 sending the user terminal identification to the login device 110 vary according to the wireless connection type between the two. For example, if the user terminal 120 and the login device 110 are connected to the same wireless local area network, then in step S304, the user terminal 120 broadcasts the user terminal identification in the wireless local area network, and accordingly, the login device 110 receives the user terminal identification broadcast by the user terminal 120; if the user terminal 120 establishes a point-to-point wireless communication connection with the login device 110, the user terminal 120 sends the user terminal identification to the login device 110 in a targeted manner (that is, the user terminal 120 only sends the user terminal identification to the login device 110, and not to other devices), and accordingly, the login device 110 receives the user terminal identification sent by the user terminal 120.
[0086] Then, the login device 110 determines whether the user terminal identifier is in the preset associated terminal list. If yes, step S306 is executed to send a password acquisition request to the user terminal 120 to request to acquire the session identifier; if no, no operation is performed.
[0087] After receiving the password acquisition request sent by the login device 110 , the user terminal 120 generates a session identifier, and returns the session identifier to the login device 110 in step S308 .
[0088] According to an embodiment, the session identifier is generated by the user terminal processing the session identifier seed according to a preset algorithm. For example, a hash algorithm such as MD5 or SHA can be used to combine and calculate the session identifier seed and the current time to generate the session identifier. Since the session identifier is combined with the current time information, the session identifiers generated at different times are different, and the session identifier changes dynamically over time.
[0089] After the login device 110 receives the session identifier sent by the user terminal 120, step S310 is executed.
[0090] In step S310, the login device 110 and the server 130 send a login request, which includes a login device identifier, a user terminal identifier, and a session identifier.
[0091] In step S312 , the server 130 authenticates the user terminal according to the session identifier to determine whether the user terminal can automatically log into the account on the login device 110 .
[0092] Specifically, the server 130 determines the session identification seed corresponding to the user terminal identification in the login request based on the association relationship among the stored login device identification, user terminal identification, account information, and session identification seed. Subsequently, the session identification seed is processed according to a preset algorithm to generate an authentication session identification (the authentication session identification is a session identification used for authentication). For example, the server 130 uses the same algorithm as the user terminal 120 to combine and calculate the session identification seed and time information to generate the authentication session identification.
[0093] If the authentication session identifier is consistent with the session identifier in the login request, the authentication is successful; if the authentication session identifier is inconsistent with the session identifier in the login request, the authentication is unsuccessful.
[0094] When the authentication is successful, the server 130 determines the account corresponding to the user terminal identifier in the login request according to the stored association relationship among the login device identifier, the user terminal identifier, the account information and the session identifier seed, and logs in the account. Subsequently, in step S314, a message indicating that the account login is successful is returned to the login device 110.
[0095] If the authentication fails, the server 130 returns a message indicating that the account login has failed to the login device 110 in step S314 .
[0096] When the login device 110 successfully logs into the account, steps S316 to S320 are executed. Steps S316 to S320 are Figure 2 The steps S220 to S224 are similar.
[0097] In step S316 , a detection message is sent to the user terminal 120 to detect whether the login device 110 and the user terminal 120 maintain a wireless connection.
[0098] The specific steps of the login device 110 sending the detection message to the user terminal 120 vary according to the wireless connection type between the two. For example, if the user terminal 120 and the login device 110 are connected to the same wireless local area network, then in step S316, the login device 110 broadcasts the detection message in the wireless local area network, and accordingly, the user terminal 120 receives the detection message broadcast by the login device 110; if the user terminal 120 establishes a point-to-point wireless communication connection with the login device 110, then in step S316, the login device 110 sends the detection message to the user terminal 120 in a targeted manner (that is, the login device 110 only sends the detection message to the user terminal 120, and not to other devices), and accordingly, the user terminal 120 receives the detection message sent by the login device 110 in a targeted manner.
[0099] If in step S318, the login device 110 receives a feedback message from the user terminal 120, it indicates that the user terminal 120 is still near the login device 110. Since the user terminal 120 is carried by the user, the user is still near the login device 110. In this case, in step S320, the account login status is maintained.
[0100] If, in step S318, the login device 110 does not receive a feedback message from the user terminal 120, that is, the user terminal 120 times out without a response, it indicates that the user terminal 120 has moved away from the login device 110, and accordingly, the user has also left and will not operate on the login device 110. In this case, in step S320, the login device 110 actively logs out of the account.
[0101] It should be noted that steps S316 to S320 may be repeatedly executed multiple times. When the login device 110 successfully logs into the account, the login device 110 begins to send detection messages to the user terminal 120 at regular intervals (for example, once per second) to determine whether a wireless connection is maintained with the user terminal 120, that is, to determine whether the user terminal 120 is still nearby. If so, the account login status is maintained; if not, the account is actively logged out. According to one embodiment, in order to avoid false detection of the wireless connection status due to signal problems, the user terminal 120 temporarily moving out of the wireless communication area, and other problems, the login device 110 does not immediately log out of the account when it detects that there is no wireless connection with the user terminal 120, but actively logs out of the account when the duration of no wireless connection with the user terminal 120 reaches a preset threshold. The specific value of the preset threshold can be set by a person skilled in the art, and the present invention does not limit this.
[0102] According to the account login scheme of the present invention, when a user logs in to an account for the first time on the login device 110, corresponding configuration operations can be performed to bind the login device 110 to the user terminal 120, and the user terminal 120 obtains the session identification seed for authentication issued by the service end 130. Later, whenever the user carries the user terminal 120 into the wireless communication range of the login device 110, the login device 110 can automatically log in to the user account, realizing user-unaware account login, freeing the user's hands, and greatly improving account login efficiency and user experience. In addition, when logging in to an account, authentication is achieved through the session identification, ensuring the security and reliability of the login behavior. When the user carries the user terminal 120 and leaves the wireless communication range of the login device, the login device 110 can automatically log out of the account, realizing timely, user-unaware account logout, preventing others from illegally operating their account in the absence of the user, thereby ensuring the security of the account.
[0103] The following describes the account login method of the present invention from the perspectives of the login device 110 , the user terminal 120 , and the server 130 .
[0104] Figure 4 A flowchart of an account login method 400 executed on the login device 110 side is shown. Figure 4 The account login method 400 shown is used to implement automatic login of an account when the login device 110 has logged into the account before and logs into the account again. Figure 4 As shown, the method 400 starts at step S410 .
[0105] In step S410, when a wireless connection is established with a user terminal, a user terminal identifier and a session identifier are obtained from the user terminal.
[0106] Wireless connection includes but is not limited to the login device and the user terminal being connected to the same wireless local area network (such as a Wi-Fi local area network, etc.), the login device and the user terminal establishing a point-to-point wireless communication connection such as Bluetooth, ZigBee, etc.
[0107] According to an embodiment, the step of obtaining the user terminal identifier and the session identifier includes: receiving the user terminal identifier; determining whether the user terminal identifier is in a preset associated terminal list, and if so, requesting the session identifier from the user terminal, and receiving the session identifier returned by the user terminal.
[0108] It should be noted that the specific steps for the login device to receive the user terminal identifier vary depending on the type of wireless connection between the login device and the user terminal. For example, if the user terminal and the login device are connected to the same wireless local area network, the user terminal broadcasts the user terminal identifier in the wireless local area network after connecting to the wireless local area network, and accordingly, the login device receives the user terminal identifier broadcast by the user terminal; if the user terminal establishes a point-to-point wireless communication connection with the login device, the user terminal sends the user terminal identifier to the login device in a directed manner (that is, the user terminal only sends the user terminal identifier to the login device, and not to other devices), and accordingly, the login device receives the user terminal identifier directedly sent by the user terminal.
[0109] The login device stores an associated terminal list, which stores user terminals corresponding to accounts that have logged in on the login device. When a user terminal logs in to an account on the login device for the first time, the identifier of the user terminal is added to the associated terminal list.
[0110] Specifically, when the user terminal logs in to the account on the login device for the first time, the step of adding the identifier of the user terminal to the associated terminal list includes the following steps S440 and S450:
[0111] In step S440, the login device identifier is sent to the user terminal so that the user terminal sends the login device identifier, the user terminal identifier, and the account information to the server so that the server binds the login device to the user terminal and logs in the account on the login device (see the aforementioned steps S206 to S214). According to one embodiment, the step of sending the login device identifier to the user terminal includes: displaying a QR code on the screen of the login device, in which the login device identifier is stored; when the user terminal scans the QR code, the login device identifier is sent to the user terminal (see the aforementioned steps S206 and S208).
[0112] In step S450, a query request is sent to the server, the query request includes the login device identifier (see the aforementioned step S216); and, a message indicating successful account login and the corresponding user terminal identifier returned by the server is received, and the user terminal identifier is added to the associated terminal list (see the aforementioned step S218).
[0113] According to an embodiment, a session identification seed is stored at the user terminal, and the session identification in step S410 is generated by the user terminal processing the session identification seed according to a preset algorithm. Referring to the aforementioned steps S210 to S214, the session identification seed is allocated by the server to the user terminal when the user terminal logs in to the account on the login device for the first time.
[0114] The preset algorithm for generating a session identifier based on the session identifier seed can be set by those skilled in the art, and the present invention does not limit this. For example, a hash algorithm such as MD5 or SHA can be used to combine and calculate the session identifier seed and the current time to generate a session identifier.
[0115] After the user terminal identifier and the session identifier are acquired in step S410, step S420 is executed.
[0116] In step S420, the user terminal is authenticated according to the login device identifier, the user terminal identifier and the session identifier, and the account corresponding to the user terminal is logged in after the authentication is passed.
[0117] According to an embodiment, in step S420, the login device authenticates the user terminal by sending a login request to the server, and logs in to the corresponding account after the authentication is passed. That is, the login device sends a login request to the server, and the login request includes a login device identifier, a user terminal identifier, and a session identifier, so that the server authenticates the user terminal according to the session identifier, logs in to the account corresponding to the user terminal after the authentication is passed, and receives the account login result returned by the server.
[0118] Step S420 may refer to the aforementioned steps S310 to S314.
[0119] In step S420, the login device sends a login request to the server, which includes a login device identifier, a user terminal identifier, and a session identifier. The server responds to the login request, authenticates the user terminal according to the session identifier, and logs in to the account corresponding to the user terminal after the authentication is passed.
[0120] Specifically, the server determines the session identification seed corresponding to the user terminal identification in the login request based on the association relationship among the stored login device identification, user terminal identification, account information, and session identification seed. Subsequently, the session identification seed is processed according to a preset algorithm to generate an authentication session identification (the authentication session identification is a session identification used for authentication). For example, the server uses the same algorithm as the user terminal to combine and calculate the session identification seed and time information to generate the authentication session identification.
[0121] If the authentication session identifier is consistent with the session identifier in the login request, the authentication is successful; if the authentication session identifier is inconsistent with the session identifier in the login request, the authentication is unsuccessful.
[0122] When the authentication is successful, the server determines the account corresponding to the user terminal identifier in the login request based on the stored association between the login device identifier, user terminal identifier, account information and session identifier seed, and logs in the account. Subsequently, a message indicating successful account login is returned to the login device.
[0123] If the authentication fails, the server returns a message indicating that the account login failed to the login device.
[0124] According to an embodiment, the method 400 further includes step S460. Step S460 is performed after the login device successfully logs into the account.
[0125] In step S460, it is detected whether the wireless connection with the user terminal is maintained. If yes, the account login state is maintained; if no, the account is logged out (see the above steps S316 to S320).
[0126] It should be noted that step S460 may be repeatedly executed multiple times. When the login device successfully logs into the account, it starts to send detection messages to the user terminal at regular intervals (for example, once per second) to determine whether a wireless connection is maintained with the user terminal, that is, to determine whether the user terminal 120 is still nearby. If so, keep the account logged in; if not, actively log out of the account. According to one embodiment, in order to avoid false detection of the wireless connection status due to signal problems, the user terminal temporarily moving out of the wireless communication area, and other problems, the login device does not immediately log out of the account when it detects that there is no wireless connection with the user terminal, but actively logs out of the account when the duration of no wireless connection with the user terminal reaches a preset threshold. The specific value of the preset threshold can be set by a person skilled in the art, and the present invention does not limit this.
[0127] Figure 5 A flow chart of an account login method 500 executed on the user terminal 120 side is shown. Figure 5 The account login method 500 shown is used to implement automatic account login when the user terminal 120 logs in to the account on the login device 110 again. Figure 5 As shown, the method 500 starts at step S510 .
[0128] In step S510, a wireless connection is established with the login device.
[0129] When the user terminal enters the communication range of the login device, a wireless connection is established with the login device. Establishing a wireless connection with the login device includes but is not limited to connecting to the same wireless local area network (such as a Wi-Fi local area network, etc.) as the login device, establishing a point-to-point wireless communication connection such as Bluetooth, ZigBee, etc. with the login device, etc.
[0130] It should be noted that the process of establishing a wireless connection between the user terminal and the login device is usually unaware of the user. For example, when the user terminal turns on the wireless LAN switch, when the user terminal enters the coverage range of the wireless LAN to which the login device is connected, it will automatically connect to the wireless LAN, thereby establishing a wireless connection with the login device.
[0131] For another example, when the user terminal turns on the Bluetooth switch, when the user terminal enters the Bluetooth signal coverage range of the login device, a Bluetooth connection will be automatically established with the login device.
[0132] After the user terminal establishes a wireless connection with the login device, step S520 is executed.
[0133] In step S520, the user terminal identifier and the session identifier are sent to the login device, so that the login device completes authentication and account login according to the login device identifier, the user terminal identifier and the session identifier.
[0134] According to one embodiment, the login device sends the login device identifier, the user terminal identifier and the session identifier to the server so that the server can complete the authentication and account login.
[0135] The specific process of step S520 may refer to the aforementioned steps S304 to S314.
[0136] According to one embodiment, the step of sending the user terminal identifier and the session identifier to the login device includes: sending the user terminal identifier to the login device; when the user terminal identifier is in the associated terminal list of the login device, receiving a password acquisition request sent by the login device, and returning the session identifier to the login device.
[0137] The specific steps for the user terminal to send the user terminal identification to the login device vary depending on the type of wireless connection between the two. For example, if the user terminal and the login device are connected to the same wireless local area network, the user terminal broadcasts the user terminal identification in the wireless local area network after connecting to the wireless local area network; if the user terminal establishes a point-to-point wireless communication connection with the login device, the user terminal sends the user terminal identification to the login device in a targeted manner (i.e., the user terminal only sends the user terminal identification to the login device, and not to other devices).
[0138] According to an embodiment, a session identification seed is stored at the user terminal, and the session identification in step S520 is generated by the user terminal processing the session identification seed according to a preset algorithm. The preset algorithm for generating the session identification according to the session identification seed can be set by a person skilled in the art, and the present invention does not limit this. For example, a hash algorithm such as MD5 or SHA can be used to combine and calculate the session identification seed and the current time to generate the session identification.
[0139] Referring to the aforementioned steps S210 to S214, the session identification seed is assigned by the server to the user terminal when the user terminal logs in to the account on the login device for the first time. Accordingly, the user terminal obtains the session identification seed from the server. According to one embodiment, the session identification seed is obtained from the server according to the following steps:
[0140] First, log in to the account on the user terminal. Referring to the aforementioned steps S202 and S204, the step of logging in to the account on the user terminal includes: sending an initial login request to the server, the initial login request including account information; and receiving the account login result returned by the server.
[0141] Subsequently, the login device identifier is obtained (for example, by scanning a QR code on the login device), and a migration login request is sent to the server, the migration login request including the login device identifier, the user terminal identifier, and the account information, so that the server can bind the login device to the user terminal, allocate a session identifier seed to the user terminal, and log in the account on the login device; and receive the session identifier seed returned by the server. The specific implementation process of this step can refer to the aforementioned steps S206 to S214, which will not be repeated here.
[0142] In step S520, after the user terminal sends the terminal device identifier and the session identifier to the login device, the login device sends a login request to the server, which includes the login device identifier, the user terminal identifier and the session identifier. After receiving the login request from the login device, the server authenticates the user terminal according to the session identifier, and logs in to the account corresponding to the user terminal after the authentication is passed.
[0143] The specific process of the login device sending a login request to the server and the server performing authentication and logging into the account can be found in the aforementioned steps S310 to S314, which will not be repeated here.
[0144] When the user terminal successfully logs in to the account on the login device, the user terminal will receive a detection message from the login device, which is used to detect whether the login device maintains a wireless connection with the user terminal. If so, the user terminal sends a feedback message to the login device, and the login device will maintain the account login status after receiving the feedback message; if not, the user terminal does not send a feedback message to the login device, that is, the user terminal times out without response, in which case the login device will log out of the account (see the aforementioned steps S316 to S320).
[0145] According to an embodiment, in order to avoid misdetection of the wireless connection status due to signal problems, the user terminal temporarily moving out of the wireless communication area, etc., the login device does not immediately log out of the account when it detects that there is no wireless connection with the user terminal, but actively logs out of the account when the duration of no wireless connection with the user terminal reaches a preset threshold. The specific value of the preset threshold can be set by those skilled in the art, and the present invention does not limit this.
[0146] Figure 6 A flowchart of an account login method 600 executed on the server 130 side is shown. Figure 6 The account login method 600 shown is used to implement automatic login of an account when the login device 110 has logged into the account before and logs into the account again. Figure 6 As shown, the method 600 starts at step S610 .
[0147] In step S610, a login request sent by a login device is received, where the login request includes a login device identifier, a user terminal identifier, and a session identifier.
[0148] Referring to the aforementioned steps S304 to S308, the user terminal identifier and the session identifier are obtained from the user terminal when the login device establishes a wireless connection with the user terminal. According to one embodiment, the session identifier is generated by the user terminal processing the session identifier seed according to a preset algorithm. The session identifier seed is assigned by the server when the user terminal logs in to the account on the login device for the first time.
[0149] According to an embodiment, the server allocates a session identification seed to the user terminal according to the following steps: when the user terminal has logged into the account, receiving a migration login request from the user terminal, the migration login request including a login device identifier, a user terminal identifier and account information; allocating a session identification seed to the user terminal; storing the login device identifier, the user terminal identifier, the account information and the session identification seed in association, marking the current state of the login device as having successfully logged into the account; and returning the session identification seed to the user terminal. The specific process of the server allocating the session identification seed to the user terminal is referred to the aforementioned steps S210 to S214, which will not be repeated here.
[0150] According to one embodiment, during the process of allocating session identification seeds to user terminals, the server also receives a query request from a login device, the query request including a login device identification; in response to the query request, it queries whether the login device has successfully logged into the account; when the login device has successfully logged into the account, it returns a message of successful account login and the corresponding user terminal identification to the login device, so that the login device can add the user terminal identification to the associated terminal list.
[0151] The specific process of the server querying the login status and returning the login status to the login device refers to the aforementioned steps S216 to S218, which will not be repeated here.
[0152] The login device initiates a login request to the server according to the acquired user terminal identifier and session identifier. Accordingly, in step S610, the server receives the login request sent by the login device. Subsequently, the server executes step S620.
[0153] In step S620, the user terminal is authenticated according to the session identifier, and after the authentication is passed, the account corresponding to the user terminal is logged in.
[0154] Then, in step S630, the account login result is returned to the login device.
[0155] According to one embodiment, the server authenticates the user terminal according to the following steps: determining the session identification seed corresponding to the user terminal identification in the login request according to the stored association relationship between the user terminal identification and the session identification seed; processing the session identification seed according to a preset algorithm to generate an authentication session identification; if the authentication session identification is consistent with the session identification in the login request, the authentication is successful; if the authentication session identification is inconsistent with the session identification in the login request, the authentication is unsuccessful.
[0156] When the authentication is successful, the server determines the account corresponding to the user terminal identifier in the login request according to the stored association relationship between the user terminal identifier and the account information, and logs in the account. Subsequently, in step S630, a message indicating successful account login is returned to the login device.
[0157] If the authentication fails, the server returns a message indicating that the account login failed to the login device in step S630.
[0158] Figure 7 FIG. 7 is a schematic diagram of a computing device 700 according to an embodiment of the present invention. Figure 7 As shown, the computing device 700 includes at least one processor 710 and a memory 720 storing program instructions. Depending on the program instructions stored in the memory 720, the computing device 700 can be implemented as the login device 110, the user terminal 120 or the server 130 in the account login system of the present invention.
[0159] When the memory 720 stores program instructions for executing the account login method 400, the computing device 700 is implemented as the login device 110 of the present invention, which can execute the account login method 400 of the present invention. As mentioned above, the login device 110 can be, for example, a personal computer such as a desktop computer or a notebook computer, a sales terminal deployed in retail scenarios such as convenience stores and supermarkets, a ticket terminal deployed in airports, railway stations, cinemas, etc., and a business terminal deployed in public places such as banks, operator business halls, and municipal halls, etc., but is not limited thereto.
[0160] When the memory 720 stores program instructions for executing the account login method 500, the computing device 700 is implemented as the user terminal 120 of the present invention, which can execute the account login method 500 of the present invention. As mentioned above, the user terminal 120 can be, for example, a portable mobile terminal such as a mobile phone, a tablet computer, or a smart wearable device.
[0161] When the memory 720 stores program instructions for executing the account login method 600, the computing device 700 is implemented as the server 130 of the present invention, which can execute the account login method 600 of the present invention. As mentioned above, the server 130 can be, for example, a cloud server.
[0162] The present invention also provides a readable storage medium storing program instructions. When the program instructions are read and executed by a computing device, the computing device executes the account login method 400, 500 or 600 of the present invention.
[0163] Specifically, if program instructions for executing the account login method 400 are stored in a readable storage medium, when the program instructions are read and executed by a computing device, the computing device executes the account login method 400 of the present invention. At this time, the computing device is implemented as the login device 110 of the present invention.
[0164] If program instructions for executing the account login method 500 are stored in the readable storage medium, when the program instructions are read and executed by the computing device, the computing device executes the account login method 500 of the present invention. At this time, the computing device is implemented as the user terminal 120 of the present invention.
[0165] If program instructions for executing the account login method 600 are stored in the readable storage medium, when the program instructions are read and executed by the computing device, the computing device executes the account login method 600 of the present invention. At this time, the computing device is implemented as the server 130 of the present invention.
[0166] The above describes the account login method of the present invention from the perspective of the single-side subject of the login device 110, the user terminal 120, and the server 130. To facilitate understanding of the technical solution of the present invention, the account login method of the present invention is described from the perspective of the system. That is, the present invention also provides an account login method 800, which is executed in an account login system, and the account login system includes a login device, a user terminal, and a server. The method 800 starts at step S810.
[0167] In step S810, the account is logged in on the user terminal.
[0168] The specific implementation process of step S810 can refer to the aforementioned steps S202 and S204, which will not be repeated here.
[0169] Then, in step S820, the user terminal scans the QR code on the login device, in which the login device identifier is stored.
[0170] The specific implementation process of step S820 can refer to the aforementioned steps S206 and S208, which will not be repeated here.
[0171] Subsequently, in step S830, the user terminal sends a migration login request to the server, where the migration login request includes a login device identifier, a user terminal identifier, and account information.
[0172] The specific implementation process of step S830 can refer to the aforementioned step S210 and will not be repeated here.
[0173] Subsequently, in step S840, the server binds the login device to the user terminal in response to the migration login request, allocates a session identification seed to the user terminal, and logs in the account on the login device.
[0174] The specific implementation process of step S840 can refer to the aforementioned steps S212 and S214, which will not be repeated here.
[0175] According to an embodiment, the method 800 further includes the following steps S850 to S870:
[0176] In step S850, when the login device establishes a wireless connection with the user terminal, the login device obtains a user terminal identifier and a session identifier from the user terminal.
[0177] The specific implementation process of step S850 may refer to the aforementioned steps S302 to S308, which will not be repeated here.
[0178] Subsequently, in step S860, the login device sends a login request to the server, where the login request includes a login device identifier, a user terminal identifier, and a session identifier.
[0179] The specific implementation process of step S860 can refer to the aforementioned step S310 and will not be repeated here.
[0180] Subsequently, in step S870, the server responds to the login request and authenticates the user terminal according to the session identifier. After the authentication is successful, the server logs in to the account corresponding to the user terminal and returns the account login result to the login device.
[0181] The specific implementation process of step S870 can refer to the aforementioned steps S312 and S314, which will not be repeated here.
[0182] In the account login method of the present invention, the login device can be, for example, a sales terminal deployed in retail scenarios such as convenience stores and supermarkets, a ticket terminal deployed in airports, railway stations, cinemas, etc., and a business terminal deployed in public places such as banks, operator business halls, and municipal halls, etc., but is not limited to these.
[0183] When the login device is implemented as a sales terminal deployed in a retail scene such as a convenience store or a supermarket, the present invention provides an account login and sales method 900. The method 900 is executed in the sales terminal and starts at step S910.
[0184] In step S910, when a wireless connection is established with a user terminal, a user terminal identifier and a session identifier are obtained from the user terminal.
[0185] Then, in step S920, the user terminal is authenticated according to the sales terminal identifier, the user terminal identifier and the session identifier, and the account corresponding to the user terminal is logged in after the authentication is passed.
[0186] Then, in step S930, in the account login state, a shopping request is received, and a sales operation is performed in response to the shopping request.
[0187] When the login device is implemented as a ticketing terminal deployed in an airport, a railway station, a cinema, etc., the present invention provides an account login and ticketing method 1000. The method 1000 is executed in the ticketing terminal and starts at step S1010.
[0188] In step S1010, when a wireless connection is established with a user terminal, a user terminal identifier and a session identifier are obtained from the user terminal.
[0189] Then, in step S1020, the user terminal is authenticated according to the ticket terminal identifier, the user terminal identifier and the session identifier, and the account corresponding to the user terminal is logged in after the authentication is passed.
[0190] Subsequently, in step S1030, in the account login state, a ticket purchase request is received, and in response to the ticket purchase request, a ticket selling operation is performed.
[0191] When the login device is implemented as a business terminal deployed in public places such as banks, operator business halls, and municipal halls, the present invention provides an account login and business handling method 1100. The method 1100 is executed in the business terminal and starts at step S1110.
[0192] In step S1110, when a wireless connection is established with a user terminal, a user terminal identifier and a session identifier are obtained from the user terminal.
[0193] Then, in step S1120, the user terminal is authenticated according to the service terminal identifier, the user terminal identifier and the session identifier, and the account corresponding to the user terminal is logged in after the authentication is passed.
[0194] Then, in step S1130, in the account login state, a service request is received, and in response to the service request, a corresponding service operation is performed.
[0195] The various techniques described herein may be implemented in combination with hardware or software, or a combination thereof. Thus, the method and apparatus of the present invention, or some aspects or parts of the method and apparatus of the present invention may be in the form of program codes (i.e., instructions) embedded in a tangible medium, such as a removable hard disk, a USB flash drive, a floppy disk, a CD-ROM, or any other machine-readable storage medium, wherein when the program is loaded into a machine such as a computer and executed by the machine, the machine becomes a device for practicing the present invention.
[0196] In the case where the program code is executed on a programmable computer, the computing device generally includes a processor, a storage medium readable by the processor (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device. The memory is configured to store the program code; the processor is configured to execute the account login method of the present invention according to the instructions in the program code stored in the memory.
[0197] By way of example and not limitation, readable media include readable storage media and communication media. Readable storage media stores information such as computer readable instructions, data structures, program modules or other data. Communication media generally embody computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and include any information transfer medium. Any combination of the above is also included within the scope of readable media.
[0198] In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with examples of the present invention. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to implement the content of the present invention described herein, and the above description of specific languages is for disclosing preferred embodiments of the present invention.
[0199] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0200] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.
[0201] Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in the devices described in the embodiment, or alternatively may be located in one or more devices different from the devices in the examples. The modules in the foregoing examples may be combined into one module or may be divided into multiple submodules.
[0202] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0203] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0204] In addition, some of the embodiments are described herein as methods or combinations of method elements that can be implemented by a processor of a computer system or by other devices that perform the functions. Therefore, a processor with necessary instructions for implementing the method or method elements forms a device for implementing the method or method elements. In addition, the elements described herein of the device embodiments are examples of devices for implementing the functions performed by the elements for the purpose of implementing the invention.
[0205] As used herein, unless otherwise specified, the use of ordinal numbers "first," "second," "third," etc. to describe common objects merely indicates that different instances of similar objects are involved, and is not intended to imply that the objects so described must have a given order in time, space, order, or in any other manner.
[0206] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments may be envisioned within the scope of the invention thus described. In addition, it should be noted that the language used in this specification is selected primarily for readability and teaching purposes, rather than for explaining or defining the subject matter of the present invention. Therefore, many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is illustrative and not restrictive with respect to the scope of the present invention, and the scope of the present invention is defined by the appended claims.
Claims
1. An account login method, executed in a login device, comprising: When establishing a wireless connection with a user terminal, obtaining a user terminal identifier and a session identifier from the user terminal; The user terminal is authenticated according to the login device identifier, the user terminal identifier and the session identifier, and the account corresponding to the user terminal is logged in after the authentication is passed.
2. The method of claim 1, wherein: The step of authenticating the user terminal according to the login device identifier, the user terminal identifier and the session identifier, and logging into the account corresponding to the user terminal after the authentication is passed includes: Sending a login request to a server, the login request including a login device identifier, a user terminal identifier and a session identifier, so that the server authenticates the user terminal according to the session identifier and logs in to the account corresponding to the user terminal after the authentication is passed; Receive the account login result returned by the server.
3. The method of claim 1, wherein: The steps of establishing a wireless connection include: The login device and the user terminal are connected to the same wireless local area network; The login device establishes a point-to-point wireless communication connection with the user terminal.
4. The method of claim 1, wherein: The step of obtaining the user terminal identifier and the session identifier comprises: receiving a user terminal identification; It is determined whether the user terminal identifier is in a preset associated terminal list. If so, a session identifier is requested from the user terminal, and the session identifier returned by the user terminal is received.
5. The method of claim 4, wherein: When the login device and the user terminal are connected to the same wireless local area network, the step of receiving the user terminal identification includes: Receive the user terminal identifier broadcast by the user terminal.
6. The method of claim 4, wherein: When the login device establishes a point-to-point wireless communication connection with the user terminal, the step of receiving the user terminal identification includes: Receive a user terminal identifier sent by a user terminal.
7. The method according to any one of claims 1 to 6, wherein: The session identifier is generated by the user terminal processing a session identifier seed according to a preset algorithm.
8. The method of claim 2, wherein: After the step of receiving the account login result returned by the server, the method further includes the following steps: Detecting whether a wireless connection is maintained with the user terminal; If yes, keep the account logged in; If not, log out of the account.
9. The method of claim 8, wherein: The steps of logging out of the account include: When the duration of no wireless connection with the user terminal reaches a preset threshold, log out of the account.
10. The method of claim 1, wherein: The login device stores a list of associated terminals. When a user terminal logs in to an account on the login device for the first time, the identifier of the user terminal is added to the list of associated terminals.
11. The method of claim 10, wherein: When the user terminal logs in to the account on the login device for the first time, the step of adding the identifier of the user terminal to the associated terminal list includes: Sending the login device identifier to the user terminal, so that the user terminal sends the login device identifier, the user terminal identifier, and the account information to the server so that the server binds the login device with the user terminal and logs in the account on the login device; Sending a query request to a server, wherein the query request includes a login device identifier; and Receive a message indicating successful account login and a corresponding user terminal identifier returned by the server, and add the user terminal identifier to the associated terminal list.
12. The method of claim 11, wherein: The step of sending the login device identification to the user terminal comprises: Displaying a QR code on the screen of the login device, wherein the QR code stores the login device identification; When the user terminal scans the QR code, the login device identifier is sent to the user terminal.
13. An account login method, executed in a user terminal, comprising: Establish a wireless connection with the login device; The user terminal identifier and the session identifier are sent to the login device so that the login device completes the authentication and account login according to the login device identifier, the user terminal identifier and the session identifier.
14. The method of claim 13, wherein: The login device sends the login device identifier, the user terminal identifier and the session identifier to the server so that the server can complete the authentication and account login.
15. The method of claim 13, wherein: The step of establishing a wireless connection with the login device includes: Connecting to the wireless local area network where the login device is located; Establish a point-to-point wireless communication connection with the login device.
16. The method according to any one of claims 13 to 15, wherein: The step of sending the user terminal identifier and the session identifier to the login device comprises: Sending the user terminal identification to the login device; When the user terminal identifier is in the associated terminal list of the login device, a password acquisition request sent by the login device is received, and a session identifier is returned to the login device.
17. The method of claim 16, wherein: When the user terminal is connected to the wireless local area network where the login device is located, the step of sending the user terminal identifier to the login device includes: The user terminal identifier is broadcasted in the wireless local area network.
18. The method of claim 16, wherein: When the user terminal establishes a point-to-point wireless communication connection with the login device, the step of sending the user terminal identifier to the login device includes: The user terminal identification is sent to the login device in a targeted manner.
19. The method according to any one of claims 13-15, 17-18, wherein: The session identifier is generated by processing the session identifier seed according to a preset algorithm.
20. The method of claim 19, wherein: The session identification seed is obtained from the server when the user terminal logs in to an account on the login device for the first time.
21. The method of claim 20, wherein: The session identification seed is obtained from the server according to the following steps: Log in to your account on the user terminal; Obtaining a login device identifier, and sending a migration login request to a server, wherein the migration login request includes a login device identifier, a user terminal identifier, and account information, so that the server binds the login device to the user terminal, allocates a session identifier seed to the user terminal, and logs in the account on the login device; Receive the session ID seed returned by the server.
22. The method of claim 21, wherein: The step of logging into an account on a user terminal includes: Sending an initial login request to a server, wherein the initial login request includes account information; and Receive the account login result returned by the server.
23. The method of claim 21, wherein: The login device identifier is obtained by scanning the QR code on the login device.
24. An account login method, executed on a server, comprising: Receive a login request sent by a login device, wherein the login request includes a login device identifier, a user terminal identifier, and a session identifier; Authenticating the user terminal according to the session identifier, and after the authentication is passed, logging into the account corresponding to the user terminal; The account login result is returned to the login device.
25. The method of claim 24, wherein: The session identifier is generated by the user terminal processing a session identifier seed according to a preset algorithm.
26. The method of claim 25, wherein: The session identification seed is allocated when the user terminal logs in to an account on the login device for the first time.
27. The method of claim 26, wherein: The session identification seed is allocated according to the following steps: When the user terminal has logged into the account, receiving a migration login request sent by the user terminal, the migration login request including a login device identifier, a user terminal identifier and account information; Allocating a session identification seed to the user terminal; The login device identifier, the user terminal identifier, the account information and the session identifier seed are stored in association, and the current state of the login device is marked as having successfully logged into the account; as well as The session identification seed is returned to the user terminal.
28. The method of claim 27, further comprising the steps of: Receiving a query request sent by a login device, wherein the query request includes a login device identifier; In response to the query request, query whether the login device currently successfully logs into the account; When the login device successfully logs into the account, a message indicating successful account login and a corresponding user terminal identifier are returned to the login device so that the login device can add the user terminal identifier to the associated terminal list.
29. The method of any one of claims 24 to 28, wherein: The step of authenticating the user terminal according to the session identifier comprises: Determining the session identification seed corresponding to the user terminal identification in the login request according to the stored association relationship between the user terminal identification and the session identification seed; Processing the session identifier seed according to a preset algorithm to generate an authentication session identifier; If the authentication session identifier is consistent with the session identifier in the login request, the authentication is successful.
30. The method of any one of claims 24 to 28, wherein: After the authentication is passed, the step of logging into the account corresponding to the user terminal includes: According to the stored association relationship between the user terminal identifier and the account information, the account corresponding to the user terminal identifier in the login request is determined, and the account is logged in.
31. A logging device, comprising: at least one processor and a memory storing program instructions; When the program instructions are read and executed by the processor, the login device executes the account login method as described in any one of claims 1-12.
32. A user terminal, comprising: at least one processor and a memory storing program instructions; When the program instructions are read and executed by the processor, the user terminal executes the account login method as described in any one of claims 13-23.
33. A server, comprising: at least one processor and a memory storing program instructions; When the program instructions are read and executed by the processor, the server executes the account login method as described in any one of claims 24-30.
34. An account login system, comprising: The logging device as claimed in claim 31; The user terminal as claimed in claim 32; as well as A server as claimed in claim 33.
35. A readable storage medium storing program instructions, which, when read and executed by a computing device, enables the computing device to execute the account login method as described in any one of claims 1-12, 13-23, and 24-30.
36. An account login and sales method, executed in a sales terminal, comprising: When establishing a wireless connection with a user terminal, obtaining a user terminal identifier and a session identifier from the user terminal; Authenticating the user terminal according to the sales terminal identifier, the user terminal identifier and the session identifier, and logging into the account corresponding to the user terminal after the authentication is passed; as well as In the account login state, a shopping request is received, and a sales operation is performed in response to the shopping request.
37. An account login and ticketing method, executed in a ticketing terminal, comprising: When establishing a wireless connection with a user terminal, obtaining a user terminal identifier and a session identifier from the user terminal; Authenticate the user terminal according to the ticket terminal identifier, the user terminal identifier and the session identifier, and log in to the account corresponding to the user terminal after the authentication is passed; as well as When the account is logged in, a ticket purchase request is received, and in response to the ticket purchase request, a ticket selling operation is performed.
38. A method for account login and business handling, executed in a business terminal, the method comprising: When establishing a wireless connection with a user terminal, obtaining a user terminal identifier and a session identifier from the user terminal; Authenticate the user terminal according to the service terminal identifier, the user terminal identifier and the session identifier, and log in to the account corresponding to the user terminal after the authentication is passed; as well as When the account is logged in, a service request is received, and corresponding service operations are performed in response to the service request.
39. An account login method, executed in an account login system, the account login system comprising a login device, a user terminal and a server, the method comprising: Logging into the account on the user terminal; The user terminal scans the QR code on the login device, where the login device identifier is stored; The user terminal sends a migration login request to the server, wherein the migration login request includes a login device identifier, a user terminal identifier, and account information; The server, in response to the migration login request, binds the login device to the user terminal, allocates a session identification seed to the user terminal, and logs in the account on the login device; And, the method further comprises the steps of: When the login device establishes a wireless connection with the user terminal, the login device obtains the user terminal identifier and the session identifier from the user terminal; The login device sends a login request to the server, wherein the login request includes a login device identifier, a user terminal identifier, and a session identifier; The server responds to the login request and authenticates the user terminal according to the session identifier. After the authentication is successful, the server logs into the account corresponding to the user terminal and returns the account login result to the login device.
