A system login method, device, equipment and medium
By displaying the QR code on the first terminal and having the second terminal scan and confirm the login, quick login is achieved without entering the account and password, solving the problems of cumbersome operation and password leakage of the PC office system, and improving security and convenience.
Patent Information
- Application Number
- CN202310057888.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-17
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2043-01-17
AI Technical Summary
In the existing technology, the login operation of PC-side office systems in the financial field is cumbersome and the problem of password leakage is serious.
The first terminal sends a QR code acquisition request to the server, receives and displays the login QR code, and the second terminal scans and confirms the login, achieving quick login without entering an account and password.
It improves the security and convenience of logging into the office system and solves the problems of cumbersome operations and password leakage.
Smart Images

Figure CN116055197B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and specifically to a system login method, device, equipment and medium. Background Art
[0002] The login terminals for office systems in the financial sector involve mobile APPs (Application Programs) and PC (Personal Computer) websites. Mobile APP login methods typically include fingerprint and face recognition, which are convenient for secondary logins. However, office systems on PC websites require entering account information, passwords, and other information each time you log in, which is cumbersome and prone to password leaks when the browser saves passwords. Therefore, there is an urgent need for a system login method that addresses the cumbersome login operations and password leaks associated with office system logins. Summary of the Invention
[0003] The embodiments of the present application provide a system login method, apparatus, device and medium for solving the problems of cumbersome office system login operation and password leakage in the prior art.
[0004] In a first aspect, an embodiment of the present application provides a system login method, which is applied to a first terminal, where the first terminal is a terminal that is not logged into the office system. The method includes:
[0005] In response to the user selecting to scan a QR code to log in to the office system, a request for obtaining a login QR code is sent to the server;
[0006] receiving a login QR code sent by the server based on the acquisition request, and displaying the login QR code on the office system login interface of the first terminal, so that the second terminal scans the login QR code to log in to the office system;
[0007] Receive the successful login information sent by the server and display the operation interface of the office system corresponding to the office account associated with the second terminal; the successful login information is sent by the server to the first terminal when it receives the information sent by the second terminal confirming the login to the office system.
[0008] In the embodiment of the present application, in response to the user's operation of scanning the QR code to log in to the office system, the first terminal sends a request to the server to obtain the login QR code, and then displays the login QR code on the login interface after obtaining it. After the second terminal confirms the login to the office system, the operation interface of the office system corresponding to the office account associated with the second terminal is directly displayed. There is no need to enter the account and password, which can ensure that the user can quickly log in to the office system in a safe and reliable environment, greatly expand the security of the office network segment and the mobile Internet terminal, and is easy to operate, solving the problems of cumbersome operation of office system login and easy leakage of passwords.
[0009] In a possible embodiment, after displaying the login QR code on the office system login interface of the first terminal, the method further includes:
[0010] A prompt message is displayed on the office system login interface of the first terminal; the prompt message is used to prompt the user to use the second terminal associated with the office account to scan the login QR code.
[0011] In a second aspect, an embodiment of the present application provides a system login method, applied to a server, the method comprising:
[0012] Receiving a request for obtaining a login QR code for an office system sent by the first terminal;
[0013] Based on the acquisition request, generate the login QR code; and send the login QR code to the first terminal;
[0014] Receiving parameter information sent by the second terminal after scanning the login QR code; the parameter information is the login information of the office account associated with the second terminal and the unique identifier of the login QR code; the second terminal is a terminal that has logged into the office system;
[0015] If it is determined that the parameter information is pre-stored login information of an office account associated with the second terminal, a confirmation message is sent to the second terminal, so that a confirmation interface for logging into the office system is displayed on a display interface of the second terminal.
[0016] In the embodiment of the present application, after receiving a request from a first terminal to obtain a login QR code for an office system, the server generates a login QR code and sends the login QR code to the first terminal. Simultaneously, after receiving parameter information sent by a second terminal after scanning the login QR code, the server performs information verification and, upon successful verification, sends a confirmation message to the second terminal. This allows the first terminal to be provided with a login QR code for logging into the office system, while also performing information verification after the second terminal scans the login QR code. This ensures that the office account logged into by the second terminal is the same as the office account that scanned the login QR code, thus ensuring security.
[0017] In a possible embodiment, generating the login QR code in response to the acquisition request includes:
[0018] Generate a unique identifier for the acquisition request; the unique identifier is used to represent the login QR code;
[0019] Based on the unique identifier, the login QR code is generated through a QR code generation interface.
[0020] In a possible embodiment, after generating the login QR code through the QR code generation interface based on the unique identifier, the method further includes:
[0021] Set a validity period for the login QR code.
[0022] In a possible embodiment, after sending the confirmation information to the second terminal, the method further includes:
[0023] After receiving the information sent by the second terminal confirming the login to the office system, a successful login information is generated; and the successful login information is sent to the first terminal.
[0024] In a third aspect, an embodiment of the present application provides a system login method, which is applied to a second terminal, where the second terminal is a terminal that has logged into the office system. The method includes:
[0025] In response to a user scanning a login QR code displayed on an office system login interface of a first terminal, parameter information is sent to a server so that the server verifies the login information; the parameter information is the login information of the office account associated with the second terminal and a unique identifier of the login QR code;
[0026] receiving confirmation information sent by the server based on the parameter information, and displaying a confirmation interface for logging into the office system on a display interface of the second terminal;
[0027] In response to the user triggering a login confirmation operation on the confirmation interface, information confirming the login to the office system is sent to the server.
[0028] In the embodiment of the present application, after the user uses the second terminal to scan the login QR code displayed on the first terminal, the user will also confirm the login to the office system on the display interface of the second terminal. Therefore, there is no need to enter the account and password. The office system can be logged in on the first terminal simply by scanning the QR code, which solves the problems of cumbersome office system login operations and easy password leakage.
[0029] In a fourth aspect, an embodiment of the present application provides a system login method, which is applied to an office system, wherein the office system includes a first terminal, a second terminal, and a server, and the method includes:
[0030] The first terminal is configured to send a request to the server for obtaining a login QR code in response to a user selecting to scan a QR code to log in to the office system;
[0031] The server is configured to receive a request for obtaining a login QR code from the first terminal; generate the login QR code based on the request; and send the login QR code to the first terminal;
[0032] The first terminal is configured to receive the login QR code sent by the server based on the acquisition request, and display the login QR code on the office system login interface of the first terminal;
[0033] The second terminal is configured to send parameter information to the server in response to a user scanning a login QR code displayed on the office system login interface of the first terminal;
[0034] The server is configured to receive parameter information sent by the second terminal; if it is determined that the parameter information is pre-stored login information of an office account associated with the second terminal, then send a confirmation message to the second terminal; the parameter information is the login information of the office account associated with the second terminal and a unique identifier of the login QR code;
[0035] The second terminal is configured to receive the confirmation information sent by the server, display a confirmation interface for logging into the office system on a display interface of the second terminal, and send a login confirmation message to the server in response to a user triggering a login confirmation operation on the confirmation interface;
[0036] The server is configured to generate a successful login message and send it to the first terminal after receiving the information sent by the second terminal confirming the login to the office system;
[0037] The first terminal is configured to receive the successful login information sent by the server and display an operation interface of the office system corresponding to the office account associated with the second terminal.
[0038] In a fifth aspect, an embodiment of the present application provides a system login device, applied to a first terminal, the device comprising:
[0039] A sending unit, configured to send a request to the server for obtaining a login QR code in response to a user selecting to scan a QR code to log in to the office system;
[0040] a receiving unit, configured to receive a login QR code sent by the server based on the acquisition request, and display the login QR code on the office system login interface of the first terminal, so that the second terminal scans the login QR code to log in to the office system;
[0041] The receiving unit is also used to receive the successful login information sent by the server and display the operation interface of the office system corresponding to the office account associated with the second terminal; the successful login information is sent by the server to the first terminal when it receives the information sent by the second terminal confirming the login to the office system.
[0042] In a sixth aspect, an embodiment of the present application provides a system login device, applied to a server, the device comprising:
[0043] A receiving unit, configured to receive a request for obtaining a login QR code for an office system sent by a first terminal;
[0044] a generating unit, configured to generate the login QR code based on the acquisition request; and send the login QR code to the first terminal;
[0045] The receiving unit is further configured to receive parameter information sent by a second terminal after scanning the login QR code; the parameter information is the login information of the office account associated with the second terminal and the unique identifier of the login QR code; the second terminal is a terminal that has logged into the office system;
[0046] The sending unit is configured to send confirmation information to the second terminal if it is determined that the parameter information is pre-stored login information of the office account associated with the second terminal, so that a confirmation interface for logging into the office system is displayed on the display interface of the second terminal.
[0047] In a seventh aspect, an embodiment of the present application provides a system login device, applied to a second terminal, the device comprising:
[0048] a sending unit, configured to send parameter information to a server in response to a user scanning a login QR code displayed on an office system login interface of a first terminal, so that the server verifies the login information; the parameter information being the login information of the office account associated with the second terminal and a unique identifier of the login QR code;
[0049] a receiving unit, configured to receive confirmation information sent by the server based on the parameter information, and display a confirmation interface for logging into the office system on a display interface of the second terminal;
[0050] The sending unit is further configured to send information for confirming login of the office system to the server in response to the user triggering the operation of confirming login on the confirmation interface.
[0051] In an eighth aspect, an electronic device is provided, including:
[0052] a memory configured to store program instructions;
[0053] a processor configured to invoke the program instructions stored in the memory and perform the steps included in the system login method according to any one of the first aspect, or the steps included in the system login method according to any one of the second aspect, or the steps included in the system login method according to the third aspect.
[0054] In a ninth aspect, a computer readable storage medium is provided, which stores a computer program including program instructions, and the program instructions, when executed by a computer, cause the computer to perform the steps included in the system login method according to any one of the first aspect, or the steps included in the system login method according to any one of the second aspect, or the steps included in the system login method according to the third aspect.
[0055] In a tenth aspect, a computer program product is provided, which includes computer program code, and when the computer program code is run on a computer, causes the computer to perform the steps included in the system login method according to any one of the first aspect, or the steps included in the system login method according to any one of the second aspect, or the steps included in the system login method according to the third aspect.
[0056] The technical effects brought by any one of the implementation manners of the fourth aspect to the tenth aspect can refer to the technical effects brought by the implementation manners of the first aspect or the second aspect or the third aspect, which will not be described here again. BRIEF DESCRIPTION OF DRAWINGS
[0057] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0058] Figure 1 A flowchart of a system login method provided by an embodiment of the present application is shown in the figure;
[0059] Figure 2 A flowchart of another system login method provided by an embodiment of the present application is shown in the figure;
[0060] Figure 3 A schematic diagram of a confirmation interface for logging into an office system in a second terminal provided in an embodiment of the present application;
[0061] Figure 4 A flowchart of another system login method provided in an embodiment of the present application;
[0062] Figure 5 A complete flowchart of a system login method provided in an embodiment of the present application;
[0063] Figure 6 A structural diagram of a system login device provided in an embodiment of the present application;
[0064] Figure 7 A structural diagram of a system login device provided in an embodiment of the present application;
[0065] Figure 8 A structural diagram of a system login device provided in an embodiment of the present application;
[0066] Figure 9 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0067] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technical personnel in this field without making creative work are within the scope of protection of this application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be arbitrarily combined with each other. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.
[0068] The terms "first" and "second" in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of its variations are intended to cover non-exclusive protection. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. "Multiple" in this application can mean at least two, for example, two, three or more, and the embodiments of this application are not limited thereto.
[0069] In the technical solution of this application, the collection, dissemination, and use of data comply with the requirements of relevant national laws and regulations.
[0070] Before introducing the system login method provided in the embodiment of the present application, in order to facilitate understanding, the technical background of the embodiment of the present application is first introduced in detail below.
[0071] The login terminals for office systems in the financial sector involve mobile APPs (Application Programs) and PC (Personal Computer) websites. Mobile APP login methods typically include fingerprint and face recognition, which are convenient for secondary logins. However, office systems on PC websites require entering account information, passwords, and other information each time you log in, which is cumbersome and prone to password leaks when the browser saves passwords. Therefore, there is an urgent need for a system login method that addresses the cumbersome login operations and password leaks associated with office system logins.
[0072] In view of this, embodiments of the present application provide a system login method, apparatus, device, and medium for solving the problems of cumbersome office system login operations and password leakage in the prior art.
[0073] The inventive concept of the present application can be summarized as follows: the first terminal responds to the user's operation of scanning a QR code to log in to the office system, and sends a request to the server to obtain the login QR code; the server receives the login QR code sent based on the acquisition request, and displays the login QR code on the office system login interface of the first terminal; the user then uses the second terminal to scan the login QR code displayed on the office system login interface of the first terminal and confirms the login to the office system on the confirmation interface of the second terminal. After receiving the successful login information, the first terminal will display the operation interface of the office system corresponding to the office account associated with the second terminal. In this way, users can quickly log in to the office system in a safe and reliable environment, greatly expand the security of the office network segment and mobile Internet terminal, and are easy to operate, solving the problems of cumbersome operation of office system login and easy leakage of passwords.
[0074] After introducing the inventive concept of the present application, the preferred embodiments of the present application will be described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application and are not used to limit the present application. In addition, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other.
[0075] The following further explains the system login method provided in the embodiment of the present application.
[0076] like Figure 1As shown, the system login method provided by this application is applied to the first terminal, including the following Figure 1 Steps shown:
[0077] Step S101 : In response to a user selecting to scan a QR code to log in to an office system, a request for obtaining a login QR code is sent to a server.
[0078] The first terminal is a terminal that is not logged into the office system, including but not limited to a laptop computer.
[0079] In specific implementation, when the user chooses to scan the QR code to log in on the PC web page, the PC will directly send a request to the server to obtain the login QR code.
[0080] In a possible embodiment, before sending a request to obtain the login QR code, a message middleware Openfire (instant messaging) can be connected in series between the first terminal and the second terminal. By calling the Openfire service, the Openfire connection address is obtained, and then the scan jump address is obtained, and the login QR code acquisition request is sent according to the scan jump address.
[0081] Step S102: receiving a login QR code sent by the server based on the acquisition request, and displaying the login QR code on the office system login interface of the first terminal, so that the second terminal scans the login QR code to log in to the office system.
[0082] In an embodiment of the present application, after displaying the login QR code on the office system login interface of the first terminal, the method further includes: displaying prompt information on the office system login interface of the first terminal.
[0083] The prompt information is used to prompt the user to use the second terminal associated with the office account to scan the login QR code. For example, the prompt information is "Open the mobile phone APP and scan to log in to the system", so that the user can get the prompt to scan the QR code very intuitively.
[0084] Step S103, receiving the successful login information sent by the server, and displaying the operation interface of the office system corresponding to the office account associated with the second terminal; the successful login information is sent by the server to the first terminal when receiving the confirmation information sent by the second terminal to log in to the office system.
[0085] As a result, there is no need to enter the account and password on the login interface of the first terminal, which can ensure that users can quickly log in to the office system in a safe and reliable environment, greatly expanding the security of the office network segment and mobile Internet terminal, and is easy to operate, solving the problems of cumbersome office system login operations and easy password leakage.
[0086] like Figure 2As shown, the system login method provided by this application is applied to the server, and the method includes the following steps: Figure 2 Steps shown:
[0087] Step S201: receiving a request for obtaining a login QR code for an office system sent by a first terminal.
[0088] Step S202: Generate a login QR code based on the acquisition request; and send the login QR code to the first terminal.
[0089] In a possible embodiment, generating a login QR code in response to an acquisition request includes: generating a unique identifier in response to the acquisition request; the unique identifier is used to represent the login QR code; and generating a login QR code through a QR code generation interface based on the unique identifier.
[0090] In specific implementation, after receiving the acquisition request, the server will randomly generate a unique identifier, store this unique identifier as the key value in the server, and then use the unique identifier as the identification information of the login QR code to be generated. Then, a QR code image is generated through the QR code generation interface and sent to the first terminal, and then displayed on the login page of the first terminal. After that, the user can be prompted to use the mobile office system to scan the code on the login page.
[0091] When the server generates the login QR code, if the user has customized QR code verification information, it can also combine the unique identifier and the customized QR code verification information, generate a QR code image through the QR code generation interface and send it to the first terminal.
[0092] In a possible embodiment, after generating a login QR code through a QR code generation interface based on a unique identifier, a validity period can also be set for the login QR code in the embodiment of the present application.
[0093] In specific implementation, when the server generates the login QR code, it can also set a validity period, indicating that the login QR code can only be used within the validity period. Once the validity period expires, the user needs to refresh and obtain the login QR code again when scanning the code to log in.
[0094] Step S203: Receive parameter information sent by the second terminal after scanning the login QR code.
[0095] The parameter information is the login information of the office account associated with the second terminal and the unique identifier of the login QR code.
[0096] The second terminal is a terminal that has logged into the office system, including but not limited to a smart phone.
[0097] Step S204: If it is determined that the parameter information is pre-stored login information of an office account associated with the second terminal, a confirmation message is sent to the second terminal, so that a confirmation interface for logging into the office system is displayed on a display interface of the second terminal.
[0098] In specific implementation, after the second terminal that has logged into the office system scans the login QR code displayed by the first terminal, the second terminal will obtain the token (login) of the login account on the second terminal and parse out the user information. After that, the parsed user information and token will be used as parameter information to send a verification login request to the server. After receiving the request with parameter information, the server will first compare the parameter information with the login information of the office account pre-stored by the second terminal when logging into the office system to determine whether it is the same user login request interface. If so, a confirmation message will be returned to the second terminal, and then the confirmation interface for logging into the office system will be displayed on the display interface of the second terminal, such as Figure 3 As shown, the user clicks the login button on the confirmation interface to confirm the login to the office system.
[0099] In a possible embodiment, after receiving the information sent by the second terminal confirming the login to the office system, the server in the embodiment of the present application may further generate a successful login message; and send the successful login message to the first terminal.
[0100] In a specific implementation, a communication tool, such as websocket, is maintained between the server and the second terminal to notify the second terminal of the login status. The server sends a login success message including user information to the second terminal through the communication tool.
[0101] The server may be an instant messaging server, for example, an Openfire server.
[0102] In this way, a login QR code can be provided for the first terminal to log in to the office system. At the same time, information verification will be performed after the second terminal scans the login QR code, ensuring that the office account logged in by the second terminal and the office account scanned by the login QR code are the same account, thereby ensuring security.
[0103] like Figure 4 As shown, the system login method provided by this application is applied to the second terminal, including the following Figure 4 Steps shown:
[0104] Step S401 : In response to a user scanning a login QR code displayed on an office system login interface of a first terminal, parameter information is sent to a server so that the server performs login information verification.
[0105] The parameter information is the login information of the office account associated with the second terminal and the unique identifier of the login QR code.
[0106] Step S402: receiving confirmation information sent by the server based on the parameter information, and displaying a confirmation interface for logging into the office system on the display interface of the second terminal.
[0107] Step S403: In response to the user triggering the login confirmation operation on the confirmation interface, a message confirming the login to the office system is sent to the server.
[0108] In specific implementation, after the second terminal that has logged into the office system scans the login QR code displayed by the first terminal, the second terminal will obtain the token (login) of the login account on the second terminal and parse out the user information. After that, the parsed user information and token will be used as parameter information to send a verification login request to the server. After receiving the request with parameter information, the server will first compare the parameter information with the login information of the office account pre-stored by the second terminal when logging into the office system to determine whether it is the same user login request interface. If so, a confirmation message will be returned to the second terminal, and then the confirmation interface for logging into the office system will be displayed on the display interface of the second terminal, such as Figure 3 As shown, the user clicks the login button on the confirmation interface, and the information confirming the login to the office system is sent to the server. The server then sends a message including the login success of the user information to the second terminal through the communication tool between the server and the second terminal.
[0109] Therefore, after the user uses the second terminal to scan the login QR code displayed on the first terminal, he will also confirm the login to the office system on the display interface of the second terminal, so that there is no need to enter the account and password. He can log in to the office system on the first terminal just by scanning the QR code, which solves the problems of cumbersome office system login operation and easy password leakage.
[0110] For ease of understanding, combined Figure 5 The complete process of the system login method provided by this application is described. The method is applied to an office system, which includes a first terminal, a second terminal and a server. The method includes the following steps: Figure 5 Steps shown:
[0111] In step 501, in response to a user selecting to scan a QR code to log in to an office system, the first terminal sends a request to the server for obtaining a login QR code.
[0112] In step 502, the server receives a request for obtaining a login QR code from the first terminal; generates a login QR code based on the request; and sends the login QR code to the first terminal;
[0113] In step 503, the first terminal receives the login QR code sent by the server based on the acquisition request, and displays the login QR code on the office system login interface of the first terminal;
[0114] In step 504, the second terminal sends parameter information to the server in response to the user scanning the login QR code displayed on the office system login interface of the first terminal;
[0115] In step 505 , the server receives the parameter information sent by the second terminal; if it is determined that the parameter information is pre-stored login information of an office account associated with the second terminal, a confirmation message is sent to the second terminal.
[0116] The parameter information is the login information of the office account associated with the second terminal and the unique identifier of the login QR code.
[0117] In step 506, the second terminal is configured to receive the confirmation information sent by the server and display a confirmation interface for logging into the office system on the display interface of the second terminal; in response to the user triggering the login confirmation operation on the confirmation interface, the second terminal sends the login confirmation information to the server;
[0118] In step 507, after receiving the information sent by the second terminal confirming the login to the office system, the server generates a successful login message and sends it to the first terminal;
[0119] In step 508 , the first terminal receives the successful login information sent by the server, and displays the operation interface of the office system corresponding to the office account associated with the second terminal.
[0120] The first terminal is a terminal that has not logged into the office system, such as a laptop; the second terminal is a terminal that has logged into the office system, such as a smart phone; the server may be an instant messaging server, such as an Openfire server.
[0121] The specific implementation is that when the user chooses to scan the QR code to log in on the PC web page, the PC will directly send a request to the server to obtain the login QR code.
[0122] After receiving the request, the server randomly generates a unique identifier and stores it as a key value. It then combines the unique identifier with the custom QR code verification information, generates a QR code image through the QR code generation interface, and sends it to the first terminal. The image is then displayed on the first terminal's login page, where the user can be prompted to scan the code using the office system on the second terminal. Furthermore, the server can also set a validity period when generating the login QR code. Once the validity period expires, the user will need to refresh and retrieve the login QR code again when scanning the code to log in.
[0123] After the second terminal that has logged into the office system scans the login QR code displayed by the first terminal, the second terminal will obtain the token (logo) of the login account on the second terminal and parse out the user information. After that, the parsed user information and token will be used as parameter information to send a verification login request to the server. After receiving the request with parameter information, the server will first compare the parameter information with the login information of the office account pre-stored by the second terminal when logging into the office system to determine whether it is the same user login request interface. If so, a confirmation message will be returned to the second terminal, and then the confirmation interface for logging into the office system will be displayed on the display interface of the second terminal. When the user clicks the login button on the confirmation interface, the information confirming the login to the office system will be sent to the server.
[0124] The server then sends a successful login message including user information to the second terminal through the communication tool between the server and the second terminal. After receiving the successful login message sent by the server, the second terminal will display the operation interface of the office system corresponding to the office account associated with the second terminal.
[0125] Among them, in the embodiment of the present application, a message middleware Openfire (instant messaging) can be connected in series between the first terminal and the second terminal. By calling the Openfire service, the Openfire connection address can be obtained, and then the scan jump address can be obtained, and a request for obtaining the login QR code can be sent according to the scan jump address. When generating the login QR code, the unique identifier of the login QR code, that is, the temporary account and password of the login QR code can also be registered through the Openfire service. Finally, after the second terminal scans the login QR code, the temporary account of the login QR code and the login account associated with the second terminal can be bound through the Openfire service to generate verification information. Then, the server verifies the verification information and the login information of the pre-stored office account.
[0126] This allows a single connection to be established with the instant messaging server when loading an office system page on the PC. The instant messaging service can then authorize the PC user with a single token, while also allowing the app to establish a connection with the temporary user. Finally, after joining the instant messaging service, the PC and app can exchange random numbers to perform a secondary verification of the instant messaging message.
[0127] Based on the foregoing description, the method of the embodiment of the present application is applied to an office system, which includes a first terminal, a second terminal and a server. Through this method, the user only needs to use the second terminal that has logged into the office system to scan the login QR code displayed by the first terminal that has not logged into the office system, and can log in to the office system on the first terminal. There is no need to enter the account and password on the login interface of the first terminal. It can ensure that the user can quickly log in to the office system in a safe and reliable environment, which is easy to operate and solves the problems of cumbersome operation of office system login and easy leakage of passwords. At the same time, a message middleware Openfire (instant messaging) is connected in series between the first terminal and the second terminal, which integrates temporary users and session random numbers and greatly expands the security of the office network segment and mobile Internet terminal.
[0128] Based on the same inventive concept, the embodiment of the present application provides a system login device, referring to Figure 6 , the device is applied to the first terminal, and the device includes: a sending unit 601 and a receiving unit 602; wherein:
[0129] The sending unit 601 is configured to send a request for obtaining a login QR code to a server in response to a user selecting to scan a QR code to log in to the office system;
[0130] The receiving unit 602 is configured to receive a login QR code sent by the server based on the acquisition request, and display the login QR code on the office system login interface of the first terminal, so that the second terminal scans the login QR code to log in to the office system;
[0131] The receiving unit 602 is also used to receive the successful login information sent by the server and display the operation interface of the office system corresponding to the office account associated with the second terminal; the successful login information is sent by the server to the first terminal when the server receives the information sent by the second terminal confirming the login to the office system.
[0132] In a possible embodiment, the device further includes:
[0133] The display unit is used to display prompt information on the office system login interface of the first terminal; the prompt information is used to prompt the user to use the second terminal associated with the office account to scan the login QR code.
[0134] Based on the same inventive concept, the present application embodiment provides a system login device, referring to Figure 7 The device is applied to a server and includes a receiving unit 701, a generating unit 702 and a sending unit 703, wherein:
[0135] The receiving unit 701 is configured to receive a request for obtaining a login QR code for an office system sent by a first terminal;
[0136] A generating unit 702 is configured to generate the login QR code based on the acquisition request, and send the login QR code to the first terminal;
[0137] The receiving unit 701 is further configured to receive parameter information sent by a second terminal after scanning the login QR code; the parameter information is the login information of the office account associated with the second terminal and the unique identifier of the login QR code; the second terminal is a terminal that has logged into the office system;
[0138] The sending unit 703 is configured to send confirmation information to the second terminal if it is determined that the parameter information is pre-stored login information of the office account associated with the second terminal, so that a confirmation interface for logging into the office system is displayed on the display interface of the second terminal.
[0139] In a possible embodiment, the generating unit 702 is specifically configured to:
[0140] Generate a unique identifier for the acquisition request; the unique identifier is used to represent the login QR code;
[0141] Based on the unique identifier, the login QR code is generated through a QR code generation interface.
[0142] In a possible embodiment, the device further includes:
[0143] The restriction unit is used to set a valid time period for the login QR code after the login QR code is generated through the QR code generation interface based on the unique identifier.
[0144] In a possible embodiment, the generating unit 702 is further configured to:
[0145] After receiving the information sent by the second terminal confirming the login to the office system, a successful login information is generated; and the successful login information is sent to the first terminal.
[0146] Based on the same inventive concept, the present application embodiment provides a system login device, referring to Figure 8 The device is applied to the second terminal and includes: a sending unit 801 and a receiving unit 802, wherein:
[0147] A sending unit 801 is configured to send parameter information to a server in response to a user scanning a login QR code displayed on an office system login interface of a first terminal, so that the server can verify the login information; the parameter information includes login information of an office account associated with the second terminal and a unique identifier of the login QR code;
[0148] The receiving unit 802 is configured to receive confirmation information sent by the server based on the parameter information, and display a confirmation interface for logging into the office system on the display interface of the second terminal;
[0149] The sending unit 801 is further configured to send a message confirming the login to the office system to the server in response to the user triggering a login confirmation operation on the confirmation interface.
[0150] The system login device and system login method provided in the embodiments of the present application have the same beneficial effects, which will not be described one by one here.
[0151] After introducing the system login method and system login device according to the exemplary embodiments of the present application, the electronic device provided according to the embodiment of the present application is introduced next.
[0152] The present application embodiment provides an electronic device that can implement the system login method discussed above. Figure 9 , the device includes a memory 901 , one or more processors 902 , and a bus 903 .
[0153] Memory 901 is used to store computer programs executed by processor 902. Memory 901 may primarily include a program storage area and a data storage area. The program storage area may store an operating system and programs required for running instant messaging functions, while the data storage area may store various instant messaging messages and operating instruction sets.
[0154] Memory 901 may be a volatile memory, such as random-access memory (RAM); or a non-volatile memory, such as read-only memory, flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); or memory 801 may be any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. Memory 901 may be a combination of the above memories.
[0155] The processor 902 may include one or more central processing units (CPUs) or digital processing units, etc. The processor 902 is configured to implement the above-mentioned system login method when calling the computer program stored in the memory 901 .
[0156] The specific connection medium between the memory 901 and the processor 902 is not limited in the embodiment of the present application. Figure 9 In the embodiment, the memory 901 and the processor 902 are connected via a bus 903. The bus 903 is connected to the processor 902 via a bus 903. Figure 9 The connections between the other components are shown in bold lines, which are only for illustration and are not intended to be limiting. The bus 903 can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, Figure 9 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0157] In an exemplary embodiment, the present application provides a computer-readable storage medium, and a computer program product comprising: computer program code. When the computer program code is executed on a computer, the computer executes any of the system login methods discussed above. Because the principles for solving the problem solved by the computer-readable storage medium are similar to those of the system login method discussed above, the implementation of the computer-readable storage medium can be referred to as the implementation of the method, and any repetitions are not repeated here.
[0158] In an exemplary embodiment, the present application also provides a computer program product comprising: computer program code, which, when executed on a computer, causes the computer to execute any of the system login methods discussed above. Because the principles underlying the problems solved by the computer program product are similar to those of the system login methods discussed above, the implementation of the computer program product can be referenced to the implementation of the method, and any repetitions will not be repeated.
[0159] It will be understood by those skilled in the art that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0160] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0161] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0162] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of user-operated steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0163] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.
Claims
1. A system login method, characterized in that: Applied to a first terminal, the method includes: In response to the user selecting to scan a QR code to log in to the office system, the instant messaging Openfire service is called to obtain an instant messaging Openfire connection address, then a scan jump address is obtained, and a request to obtain a login QR code is sent to a server according to the scan jump address; wherein the instant messaging Openfire is connected in series between the first terminal and the second terminal; Receiving a login QR code sent by the server based on the acquisition request, and displaying the login QR code on the office system login interface of the first terminal, so that the second terminal scans the login QR code to log in to the office system; the login QR code is a unique identifier of the login QR code registered by the server through the instant messaging Openfire service based on the acquisition request, and is then generated through a QR code generation interface based on the unique identifier; Receive the successful login information sent by the server and display the operation interface of the office system corresponding to the office account associated with the second terminal; the successful login information is sent by the server to the first terminal when it receives the information sent by the second terminal confirming the login to the office system.
2. The method according to claim 1, characterized in that After displaying the login QR code on the office system login interface of the first terminal, the method further includes: A prompt message is displayed on the office system login interface of the first terminal; the prompt message is used to prompt the user to use the second terminal associated with the office account to scan the login QR code.
3. A system login method, characterized in that: Applied to a server, the method includes: Receiving a request for obtaining a login QR code for an office system sent by the first terminal; Based on the acquisition request, register the unique identifier of the login QR code through the instant messaging Openfire service; the unique identifier is used to represent the login QR code; wherein, the instant messaging Openfire is connected in series between the first terminal and the second terminal; the unique identifier is a temporary account and password for the login QR code; Based on the unique identifier, generate the login QR code through a QR code generation interface; and send the login QR code to the first terminal; Receiving parameter information sent by the second terminal after scanning the login QR code; the parameter information is the login information of the office account associated with the second terminal and the unique identifier of the login QR code; the second terminal is a terminal that has logged into the office system; If it is determined that the parameter information is pre-stored login information of an office account associated with the second terminal, a confirmation message is sent to the second terminal, so that a confirmation interface for logging into the office system is displayed on a display interface of the second terminal.
4. The method according to claim 3, characterized in that After generating the login QR code through the QR code generation interface based on the unique identifier, the method further includes: Set a validity period for the login QR code.
5. The method according to claim 3, characterized in that After sending the confirmation information to the second terminal, the method further includes: After receiving the information sent by the second terminal confirming the login to the office system, a successful login information is generated; and the successful login information is sent to the first terminal.
6. A system login method, characterized in that: Applied to the second terminal, the method includes: In response to a user scanning a login QR code displayed on an office system login interface of a first terminal, parameter information is sent to a server via an instant messaging Openfire service, so that the server verifies the login information; the parameter information is the login information of an office account associated with the second terminal and a unique identifier of the login QR code; wherein, the instant messaging Openfire is connected in series between the first terminal and the second terminal; the unique identifier of the login QR code is registered by the server via the instant messaging Openfire service based on a request for obtaining a login QR code for the office system sent by the first terminal; the unique identifier is a temporary account and password for the login QR code; receiving confirmation information sent by the server based on the parameter information, and displaying a confirmation interface for logging into the office system on a display interface of the second terminal; In response to the user triggering a login confirmation operation on the confirmation interface, information confirming the login to the office system is sent to the server.
7. A system login method, characterized in that: Applied to an office system, the office system includes a first terminal, a second terminal, and a server, and the method includes: The first terminal is configured to, in response to a user selecting a scan QR code to log in to the office system, obtain an instant messaging Openfire connection address by invoking an instant messaging Openfire service, then obtain a scan jump address, and send a request to obtain a login QR code to a server according to the scan jump address; wherein the instant messaging Openfire is connected in series between the first terminal and the second terminal; The server is configured to receive a request for obtaining a login QR code sent by the first terminal; and based on the acquisition request, register a unique identifier for the login QR code through the instant messaging Openfire service; the unique identifier is used to represent the login QR code; based on the unique identifier, generate the login QR code through a QR code generation interface; and send the login QR code to the first terminal; the unique identifier is a temporary account and password for the login QR code; The first terminal is configured to receive the login QR code sent by the server based on the acquisition request, and display the login QR code on the office system login interface of the first terminal; The second terminal is configured to send parameter information to the server via the instant messaging Openfire service in response to a user scanning a login QR code displayed on the office system login interface of the first terminal; The server is configured to receive parameter information sent by the second terminal; if it is determined that the parameter information is pre-stored login information of an office account associated with the second terminal, then send a confirmation message to the second terminal; the parameter information is the login information of the office account associated with the second terminal and a unique identifier of the login QR code; The second terminal is configured to receive the confirmation information sent by the server, display a confirmation interface for logging into the office system on a display interface of the second terminal, and send a login confirmation message to the server in response to a user triggering a login confirmation operation on the confirmation interface; The server is configured to generate a successful login message and send it to the first terminal after receiving the information sent by the second terminal confirming the login to the office system; The first terminal is configured to receive the successful login information sent by the server and display an operation interface of the office system corresponding to the office account associated with the second terminal.
8. A system login device, characterized in that: Applied to a first terminal, the apparatus includes: A sending unit is configured to, in response to a user selecting a scan QR code to log in to the office system, obtain an instant messaging Openfire connection address by calling an instant messaging Openfire service, then obtain a scan jump address, and send a request to obtain a login QR code to a server according to the scan jump address; wherein the instant messaging Openfire is connected in series between the first terminal and the second terminal; a receiving unit, configured to receive a login QR code sent by the server based on the acquisition request, and display the login QR code on the office system login interface of the first terminal, so that the second terminal scans the login QR code to log in to the office system; the login QR code is a unique identifier of the login QR code registered by the server through the instant messaging Openfire service based on the acquisition request, and is generated through a QR code generation interface based on the unique identifier; The receiving unit is also used to receive the successful login information sent by the server and display the operation interface of the office system corresponding to the office account associated with the second terminal; the successful login information is sent by the server to the first terminal when it receives the information sent by the second terminal confirming the login to the office system.
9. A system login device, characterized in that: Applied to a server, the device includes: A receiving unit, configured to receive a request for obtaining a login QR code for an office system sent by a first terminal; A generating unit is configured to register a unique identifier of the login QR code through an instant messaging Openfire service based on the acquisition request; the unique identifier is used to represent the login QR code; wherein the instant messaging Openfire is connected in series between the first terminal and the second terminal; the unique identifier is a temporary account and password for the login QR code; Based on the unique identifier, generate the login QR code through a QR code generation interface; and send the login QR code to the first terminal; The receiving unit is further configured to receive parameter information sent by a second terminal after scanning the login QR code; the parameter information is the login information of the office account associated with the second terminal and the unique identifier of the login QR code; the second terminal is a terminal that has logged into the office system; The sending unit is configured to send confirmation information to the second terminal if it is determined that the parameter information is pre-stored login information of the office account associated with the second terminal, so that a confirmation interface for logging into the office system is displayed on the display interface of the second terminal.
10. A system login device, characterized in that: Applied to a second terminal, the apparatus includes: A sending unit, configured to send parameter information to a server through an instant messaging Openfire service in response to a user scanning a login QR code displayed on an office system login interface of a first terminal, so that the server performs login information verification; the parameter information is the login information of an office account associated with the second terminal and a unique identifier of the login QR code; wherein, the instant messaging Openfire is connected in series between the first terminal and the second terminal; the unique identifier of the login QR code is registered by the server through the instant messaging Openfire service based on a request for obtaining a login QR code for the office system sent by the first terminal; the unique identifier is a temporary account and password for the login QR code; a receiving unit, configured to receive confirmation information sent by the server based on the parameter information, and display a confirmation interface for logging into the office system on a display interface of the second terminal; The sending unit is further configured to send information confirming the login to the office system to the server in response to the user triggering a login confirmation operation on the confirmation interface.
11. An electronic device, characterized in that: include: a memory for storing program instructions; A processor is used to call the program instructions stored in the memory and execute the system login method according to any one of claims 1-2, or the system login method according to any one of claims 3-5, or the system login method described in claim 6 according to the obtained program instructions.
12. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which includes program instructions. When the program instructions are executed by a computer, the computer executes the system login method as described in any one of claims 1-2, or the system login method as described in any one of claims 3-5, or the system login method described in claim 6.
13. A computer program product, characterized in that The computer program product includes: computer program code, which, when running on a computer, enables the computer to execute the system login method described in any one of claims 1-2, or the system login method described in any one of claims 3-5, or the system login method described in claim 6.
Citation Information
Patent Citations
Logging and authorization method and system
CN104253784A
System login method
CN114944946A