CN116055197A - System login method, device, equipment and medium - Google Patents

System login method, device, equipment and medium Download PDF

Info

Publication number
CN116055197A
CN116055197A CN202310057888.1A CN202310057888A CN116055197A CN 116055197 A CN116055197 A CN 116055197A CN 202310057888 A CN202310057888 A CN 202310057888A CN 116055197 A CN116055197 A CN 116055197A
Authority
CN
China
Prior art keywords
login
terminal
dimensional code
information
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310057888.1A
Other languages
Chinese (zh)
Inventor
杨羽琛
周骥
杨杰
唐攀
吴曦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202310057888.1A priority Critical patent/CN116055197A/en
Publication of CN116055197A publication Critical patent/CN116055197A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/36User authentication by graphic or iconic representation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application relates to the field of data processing, and discloses a system login method, device, equipment and medium, which are used for solving the problems of complex operation, password leakage and the like of office system login in the prior art. The method comprises the steps that a first terminal responds to the operation that a user selects to scan a two-dimension code for logging in an office system, and sends a request for acquiring the logging-in two-dimension code to a server; the method comprises the steps that a receiving server sends a login two-dimensional code based on an acquisition request, and the login two-dimensional code is displayed on an office system login interface of a first terminal; and then the user uses the second terminal to scan the login two-dimensional code displayed on the login interface of the office system of the first terminal and confirms the login of the office system on the confirmation interface of the second terminal, and after receiving the login success information, the first terminal displays the operation interface of the office system corresponding to the office account associated with the second terminal, thereby ensuring that the user quickly logs in the office system in a safe and reliable environment, and solving the problems of complex login operation of the office system, easy password leakage and the like.

Description

System login method, device, equipment and medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a system login method, device, equipment, and medium.
Background
The login terminal of the office system in the financial field relates to a mobile phone APP (Application) end and a PC (Personal Computer) end website. The login mode of the mobile phone APP end is usually fingerprint login and face login, secondary login is convenient, but an office system of a PC end website needs to input information such as an account number and a password when logging in each time, so that the problem of complex operation exists, and the problem of password leakage is easy to cause under the condition that a browser stores the password. Therefore, a system login method is needed to solve the problems of complicated operation, password leakage and the like of the office system login.
Disclosure of Invention
The embodiment of the application provides a system login method, device, equipment and medium, which are used for solving the problems of complex operation, password leakage and the like of office system login in the prior art.
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 does not log in an office system, and the method includes:
responding to the operation of selecting scanning two-dimension code login by a user aiming at an office system, and sending an acquisition request of the login two-dimension code to a server;
receiving a login two-dimensional code sent by the server based on the acquisition request, and displaying the login two-dimensional code on an office system login interface of the first terminal so that a second terminal scans the login two-dimensional code to perform office system login;
Receiving information of successful login sent by the server, and displaying an operation interface of an office system corresponding to an office account associated with the second terminal; the information of successful login is sent to the first terminal when the server receives the information of confirming login to the office system sent by the second terminal.
According to the embodiment of the application, the first terminal responds to the operation of selecting and scanning the two-dimension code for the office system to log in, sends the acquisition request of the two-dimension code to the server, displays the acquired two-dimension code on the login interface, directly displays the operation interface of the office system corresponding to the office account associated with the second terminal after the second terminal confirms to log in the office system, does not need to input an account and a password, can ensure that the user logs in the office system quickly in a safe and reliable environment, greatly expands the safety of an office network section and a mobile internet terminal, is convenient to operate, and solves the problems that the operation of the office system login is complex, the password is easy to leak and the like.
In a possible embodiment, after the displaying the login two-dimensional code on the office system login interface of the first terminal, the method further includes:
Displaying prompt information on an office system login interface of the first terminal; the prompt information is used for prompting the user to scan the login two-dimensional code by using a second terminal associated with the office account.
In a second aspect, an embodiment of the present application provides a system login method, applied to a server, where the method includes:
receiving an acquisition request of a login two-dimensional code for an office system, which is sent by a first terminal;
generating the login two-dimensional code based on the acquisition request; the login two-dimensional code is sent to the first terminal;
receiving parameter information sent by the second terminal after scanning the login two-dimensional code; the parameter information is login information of an office account associated with the second terminal and a unique identifier of the login two-dimensional code; the second terminal is a terminal which is already logged in the office system;
and if the parameter information is the prestored login information of the office account associated with the second terminal, sending the confirmation information to the second terminal so as to display a confirmation interface for logging in the office system on a display interface of the second terminal.
In the embodiment of the application, after receiving the request for acquiring the login two-dimensional code of the office system sent by the first terminal, the server generates the login two-dimensional code; the login two-dimensional code is sent to the first terminal; and meanwhile, after receiving the parameter information sent by the second terminal after scanning the login two-dimensional code, carrying out information verification, and sending confirmation information to the second terminal after the verification is passed. Therefore, a login two-dimensional code can be provided for the first terminal to login the office system, and meanwhile, information verification can be carried out after the second terminal scans the login two-dimensional code, so that the office account logged in by the second terminal and the office account scanned with the login two-dimensional code are the same account, and the safety is ensured.
In a possible embodiment, the generating the login two-dimensional code for the acquisition request includes:
generating a unique identifier for the acquisition request; the unique identifier is used for representing the login two-dimensional code;
and generating the login two-dimensional code through a two-dimensional code generation interface based on the unique identifier.
In a possible embodiment, after the generating the login two-dimensional code through a two-dimensional code generating interface based on the unique identifier, the method further includes:
and setting an effective duration for the login two-dimensional code.
In a possible embodiment, after the sending of the acknowledgement information to the second terminal, the method further comprises:
after receiving the information confirming login to the office system sent by the second terminal, generating information of successful login; and sending the information of successful login to the first terminal.
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 an office system, and the method includes:
responding to the operation of scanning a login two-dimensional code displayed on an office system login interface of a first terminal by a user, and sending parameter information to a server so that the server performs login information verification; the parameter information is login information of an office account associated with the second terminal and a unique identifier of the login two-dimensional code;
Receiving confirmation information sent by the server based on the parameter information, and displaying a confirmation interface for logging in the office system on a display interface of the second terminal;
and responding to the operation of triggering the confirmation login on the confirmation interface by the user, and sending information for confirming the login of the office system to the server.
After the user uses the second terminal to scan the login two-dimensional code displayed by the first terminal, the user can confirm the login of the office system on the display interface of the second terminal, so that the user can log in the office system on the first terminal only by scanning the two-dimensional code without inputting an account and a password, and the problems that the login of the office system is complex in operation, the password is easy to leak and the like are solved.
In a fourth aspect, an embodiment of the present application provides a system login method, which is applied to an office system, where the office system includes a first terminal, a second terminal, and a server, and the method includes:
the first terminal is used for responding to the operation of selecting to scan the two-dimension code for logging in by a user aiming at the office system and sending an acquisition request of logging in the two-dimension code to the server;
the server is used for receiving an acquisition request of the login two-dimensional code sent by the first terminal; generating the login two-dimensional code based on the acquisition request; the login two-dimensional code is sent to the first terminal;
The first terminal is used for receiving the login two-dimensional code sent by the server based on the acquisition request and displaying the login two-dimensional code on an office system login interface of the first terminal;
the second terminal is used for responding to the operation of scanning the login two-dimensional code displayed on the office system login interface of the first terminal by the user and sending parameter information to the server;
the server is used for receiving the parameter information sent by the second terminal; if the parameter information is determined to be the prestored login information of the office account associated with the second terminal, sending confirmation information to the second terminal; the parameter information is login information of an office account associated with the second terminal and a unique identifier of the login two-dimensional code;
the second terminal is used for receiving the confirmation information sent by the server and displaying a confirmation interface for logging in the office system on a display interface of the second terminal; responding to the operation of triggering confirmation login on the confirmation interface by a user, and sending the information of confirming login to the server;
the server is used for generating information of successful login after receiving the information of confirming login to the office system sent by the second terminal and sending the information to the first terminal;
The first terminal is used for receiving the login success information sent by the server and displaying an operation interface of an office system corresponding to the office account associated with the second terminal.
In a fifth aspect, an embodiment of the present application provides a system login device, applied to a first terminal, where the device includes:
the sending unit is used for responding to the operation of selecting and scanning the two-dimension code login by a user aiming at the office system and sending an acquisition request of the login two-dimension code to the server;
the receiving unit is used for receiving the login two-dimensional code sent by the server based on the acquisition request and displaying the login two-dimensional code on an office system login interface of the first terminal so that a second terminal scans the login two-dimensional code to perform office system login;
the receiving unit is further configured to receive the login success information sent by the server, and display an operation interface of an office system corresponding to the office account associated with the second terminal; the information of successful login is sent to the first terminal when the server receives the information of confirming login to the office system sent by the second terminal.
In a sixth aspect, an embodiment of the present application provides a system login device, applied to a server, where the device includes:
The receiving unit is used for receiving an acquisition request of a login two-dimensional code for an office system, which is sent by the first terminal;
the generation unit is used for generating the login two-dimensional code based on the acquisition request; the login two-dimensional code is sent to the first terminal;
the receiving unit is further used for receiving parameter information sent by the second terminal after the second terminal scans the login two-dimensional code; the parameter information is login information of an office account associated with the second terminal and a unique identifier of the login two-dimensional code; the second terminal is a terminal which is already logged in the office system;
and the sending unit is used for sending confirmation information to the second terminal if the parameter information is determined to be the prestored login information of the office account associated with the second terminal, so that a confirmation interface for logging in the office system is displayed on a display interface of the second terminal.
In a seventh aspect, an embodiment of the present application provides a system login device, applied to a second terminal, where the device includes:
the sending unit is used for responding to the operation of scanning the login two-dimensional code displayed on the office system login interface of the first terminal by the user and sending parameter information to the server so as to enable the server to carry out login information verification; the parameter information is login information of an office account associated with the second terminal and a unique identifier of the login two-dimensional code;
The receiving unit is used for receiving the confirmation information sent by the server based on the parameter information, and displaying a confirmation interface for logging in the office system on the display interface of the second terminal;
and the sending unit is also used for responding to the operation of triggering the confirmation login on the confirmation interface by the user and sending the information for confirming the login of the office system to the server.
In an eighth aspect, an embodiment of the present application provides an electronic device, including:
a memory for storing program instructions;
and a processor, configured to call the program instructions stored in the memory, and execute 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 according to the obtained program instructions.
In a ninth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program, the computer program including program instructions that, when executed by a computer, cause the computer to perform the steps of the system login method according to any one of the first aspect, or the steps of the system login method according to any one of the second aspect, or the steps of the system login method according to the third aspect.
In a tenth aspect, embodiments of the present application provide a computer program product comprising: computer program code which, when run on a computer, causes the computer to perform the steps comprised by the system login method according to any of the first aspects, or the steps comprised by the system login method according to any of the second aspects, or the steps comprised by the system login method according to the third aspect.
The technical effects caused by any implementation manner of the fourth aspect to the tenth aspect may be referred to the technical effects caused by the implementation manner of the first aspect or the second aspect or the third aspect, and are not described herein.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a system login method according to an embodiment of the present application;
FIG. 2 is a flowchart of another system login method according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a confirmation interface for logging in an office system in a second terminal according to an embodiment of the present application;
FIG. 4 is a flowchart of another system login method according to an embodiment of the present disclosure;
fig. 5 is a complete flow diagram of a system login method according to an embodiment of the present application;
fig. 6 is a block diagram of a system login device according to an embodiment of the present application;
fig. 7 is a block diagram of a system login device according to an embodiment of the present application;
fig. 8 is a block diagram of a system login device according to an embodiment of the present application;
fig. 9 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by a person of ordinary skill in the art without inventive effort, are intended to be within the scope of the present application, based on the embodiments herein. Embodiments and features of embodiments in this application may be combined with each other arbitrarily without conflict. Also, while a logical order of illustration is depicted in the flowchart, in some cases the steps shown or described may be performed in a different order than presented.
The terms first and second in the description and claims of the present application and in the above-described figures are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the term "include" and any variations thereof is intended to cover non-exclusive protection. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus. The term "plurality" in the present application may mean at least two, for example, two, three or more, and embodiments of the present application are not limited.
In the technical scheme, the data are collected, transmitted, used and the like, and all meet the requirements of national related laws and regulations.
Before describing the system login method provided in the embodiments of the present application, for convenience of understanding, the following detailed description is first provided for the technical background of the embodiments of the present application.
The login terminal of the office system in the financial field relates to a mobile phone APP (Application) end and a PC (Personal Computer) end website. The login mode of the mobile phone APP end is usually fingerprint login and face login, secondary login is convenient, but an office system of a PC end website needs to input information such as an account number and a password when logging in each time, so that the problem of complex operation exists, and the problem of password leakage is easy to cause under the condition that a browser stores the password. Therefore, a system login method is needed to solve the problems of complicated operation, password leakage and the like of the office system login.
In view of this, the embodiments of the present application provide a system login method, device, apparatus, and medium, which are used to solve the problems of complicated operation and password leakage of office system login in the prior art.
The inventive concepts of the present application can be summarized as follows: the method comprises the steps that a first terminal responds to the operation that a user selects to scan a two-dimension code for logging in an office system, and sends a request for acquiring the logging-in two-dimension code to a server; the method comprises the steps that a receiving server sends a login two-dimensional code based on an acquisition request, and the login two-dimensional code is displayed on an office system login interface of a first terminal; and then the user uses the second terminal to scan the login two-dimensional code displayed on the login interface of the office system of the first terminal and confirms the login of the office system on the confirmation interface of the second terminal, and the first terminal receives the login success information and displays the operation interface of the office system corresponding to the office account associated with the second terminal. Therefore, the user can be ensured to quickly log in the office system under the safe and reliable environment, the safety of the office network section and the mobile internet terminal is greatly expanded, the operation is convenient, and the problems of complex operation, easy password leakage and the like of the office system login are solved.
Having described the inventive concepts of the present application, the preferred embodiments thereof will be described below with reference to the accompanying drawings of the specification, it is to be understood that the preferred embodiments described herein are for purposes of illustration and explanation only and are not intended to limit the present application, and that the embodiments of the present application and the features of the embodiments may be combined with one another without conflict.
The system login method provided in the embodiment of the present application is further explained below.
As shown in fig. 1, the system login method provided in the present application is applied to a first terminal, and includes the steps shown in fig. 1:
step S101, in response to the user selecting the operation of scanning the two-dimensional code for logging in with respect to the office system, an acquisition request of logging in the two-dimensional code is sent to the server.
The first terminal is a terminal which is not logged into an office system, and includes, but is not limited to, a notebook computer.
In the implementation, when a user selects to scan a two-dimension code to log in, the PC terminal directly sends a request for obtaining the two-dimension code to a server.
In one possible embodiment, before sending the request for obtaining the login two-dimensional code, a message middleware Openfire (instant messaging) may be connected in series between the first terminal and the second terminal, and by retrieving the Openfire service, an Openfire connection address is obtained, then a scan jump address is obtained, and the request for obtaining the login two-dimensional code is sent according to the scan jump address.
Step S102, receiving the login two-dimensional code sent by the server based on the acquisition request, and displaying the login two-dimensional code on an office system login interface of the first terminal so that the second terminal scans the login two-dimensional code to perform office system login.
In an embodiment of the present application, after the login two-dimensional code is displayed on the office system login interface of the first terminal, the method further includes: and displaying the prompt information on an office system login interface of the first terminal.
The prompting information is used for prompting a user to scan the login two-dimensional code by using a second terminal associated with the office account. For example, the prompt information is "open mobile phone APP and sweep one and can log in the system", so that the user can intuitively obtain the prompt of scanning the two-dimension code.
Step S103, receiving successful login information sent by the server and displaying an operation interface of an office system corresponding to an office account associated with the second terminal; the information of successful login is sent to the first terminal by the server when the information of confirmation of login to the office system sent by the second terminal is received.
Therefore, the user can be ensured to quickly log in the office system in a safe and reliable environment without inputting an account and a password on a login interface of the first terminal, the safety of an office network section and a mobile internet terminal is greatly improved, the operation is convenient, and the problems that the operation of logging in the office system is complex, the password is easy to leak and the like are solved.
As shown in fig. 2, the system login method provided in the present application is applied to a server, and the method includes the steps shown in fig. 2:
Step S201, receiving an acquisition request of a login two-dimensional code for an office system sent by a first terminal.
Step S202, generating a login two-dimensional code based on an acquisition request; and sending the login two-dimensional code to the first terminal.
In one possible embodiment, generating the login two-dimensional code for the acquisition request includes: generating a unique identifier for the acquisition request; the unique identifier is used for representing a login two-dimensional code; and generating a login two-dimensional code through the two-dimensional code generation interface based on the unique identification.
When the method is implemented, after receiving an acquisition request, the server randomly generates a unique identifier, the unique identifier is stored in the server as a key value, the unique identifier is used as identification information of a login two-dimensional code to be generated, a picture of the two-dimensional code is generated through a two-dimensional code generation interface and is sent to the first terminal, the picture is displayed on a login page of the first terminal, and then a user can be prompted to use a mobile phone office system to conduct code scanning operation on the login page.
When the server generates the login two-dimensional code, if the user has the two-dimensional code verification information set by self, the unique identifier and the two-dimensional code verification information set by self can be combined together, and then a picture of the two-dimensional code is generated through the two-dimensional code generation interface and sent to the first terminal.
In one possible embodiment, after the login two-dimensional code is generated through the two-dimensional code generation interface based on the unique identifier, an effective duration may be set for the login two-dimensional code in the embodiment of the present application.
In the implementation, the server can set an effective duration while generating the login two-dimensional code, which means that the login two-dimensional code can only be used in the effective duration, and the user needs to refresh and reacquire the login two-dimensional code when the user performs code scanning login.
Step S203, receiving parameter information sent by the second terminal after scanning and logging in the two-dimension code.
The parameter information is login information of an office account associated with the second terminal and unique identification of a login two-dimensional code.
The second terminal is a terminal which has logged into the office system, including but not limited to a smart phone.
Step S204, if the parameter information is determined to be the prestored login information of the office account associated with the second terminal, the confirmation information is sent to the second terminal, so that the confirmation interface for logging in the office system is displayed on the display interface of the second terminal.
In the implementation, after a second terminal which has logged in an office system scans a login two-dimensional code displayed by a first terminal, the second terminal can acquire a token (sign) of a login account on the second terminal, analyze user information, send a request for verifying login to a server by taking the analyzed user information and the token together as parameter information, and after receiving the request with the parameter information, the server firstly compares the parameter information with login information of an office account which is stored in advance by the second terminal when logging in the office system to determine whether the request interface is a login request interface of the same user. If so, a confirmation message is returned to the second terminal, and then a confirmation interface for logging in the office system is displayed on the display interface of the second terminal, and as shown in fig. 3, the user clicks a login button on the confirmation interface to confirm logging in the office system.
In a possible embodiment, after receiving the information for confirming login to the office system sent by the second terminal, the server in the embodiment of the present application may further generate information for successful login; and sending the information of successful login to the first terminal.
In practice, a means for communication, such as websocket, is maintained between the server and the second terminal for informing the second terminal of the login status. The server sends a message to the second terminal through the communication means that the login including the user information is successful.
The server may be an instant messaging server, for example, an Openfire server.
Therefore, a login two-dimensional code can be provided for the first terminal to login the office system, and meanwhile, information verification can be carried out after the second terminal scans the login two-dimensional code, so that the office account logged in by the second terminal and the office account scanned with the login two-dimensional code are the same account, and the safety is guaranteed.
As shown in fig. 4, the system login method provided in the present application is applied to a second terminal, and includes the steps shown in fig. 4:
in step S401, in response to the operation of the user scanning the login two-dimensional code displayed on the office system login interface of the first terminal, parameter information is sent to the server, so that the server performs login information verification.
The parameter information is login information of an office account associated with the second terminal and unique identification of a login two-dimensional code.
Step S402, the receiving server displays a confirmation interface for logging in the office system on the display interface of the second terminal based on the confirmation information sent by the parameter information.
Step S403, in response to the user triggering the operation of confirming login on the confirmation interface, sending information confirming login to the office system to the server.
In the implementation, after a second terminal which has logged in an office system scans a login two-dimensional code displayed by a first terminal, the second terminal can acquire a token (sign) of a login account on the second terminal, analyze user information, send a request for verifying login to a server by taking the analyzed user information and the token together as parameter information, and after receiving the request with the parameter information, the server firstly compares the parameter information with login information of an office account which is stored in advance by the second terminal when logging in the office system to determine whether the request interface is a login request interface of the same user. If so, a confirmation message is returned to the second terminal, and then a confirmation interface for logging in the office system is displayed on the display interface of the second terminal, and as shown in fig. 3, the user clicks a login button on the confirmation interface and sends the information for confirming logging in the office system to the server. The server then sends a message to the second terminal that the login including the user information was successful, via a communication means between the server and the second terminal.
Therefore, after the user scans the login two-dimensional code displayed by the first terminal by using the second terminal, the user can confirm to log in the office system on the display interface of the second terminal, so that an account and a password are not required to be input, and the user can log in the office system on the first terminal by only scanning the two-dimensional code, and the problems of complex operation of logging in the office system, easiness in password leakage and the like are solved.
For ease of understanding, a complete flow of the system login method provided in this application is described in connection with fig. 5. The method is applied to an office system, the office system comprises a first terminal, a second terminal and a server, and the method comprises the steps as shown in fig. 5:
in step 501, a first terminal sends an acquisition request for logging in a two-dimension code to a server in response to a user selecting an operation for scanning the two-dimension code for logging in an office system;
in step 502, a server receives an acquisition request of a login two-dimensional code sent by a first terminal; generating a login two-dimensional code based on the acquisition request; the login two-dimensional code is sent to a first terminal;
in step 503, the first terminal receives the login two-dimensional code sent by the server based on the acquisition request, and displays the login two-dimensional code on an office system login interface of the first terminal;
In step 504, the second terminal responds to the operation of the user scanning the login two-dimensional code displayed on the office system login interface of the first terminal, and sends parameter information to the server;
in step 505, the server receives parameter information sent by the second terminal; and if the parameter information is determined to be the prestored login information of the office account associated with the second terminal, sending the confirmation information to the second terminal.
The parameter information is login information of an office account associated with the second terminal and unique identification of a login two-dimensional code.
In step 506, the second terminal is configured to receive the confirmation information sent by the server, and display a confirmation interface for logging in the office system on a display interface of the second terminal; responding to the operation of triggering confirmation login on a confirmation interface by a user, and sending information for confirming login to a server;
in step 507, after receiving the information for confirming login to the office system sent by the second terminal, the server generates information for successful login and sends the information to the first terminal;
in step 508, the first terminal receives the login success information sent by the server, and displays an operation interface of the office system corresponding to the office account associated with the second terminal.
The first terminal is a terminal which does not log in an office system, such as a notebook computer; the second terminal is a terminal which has logged into an office system, such as a smart phone; the server may be an instant messaging server, such as an Openfire server.
When a user selects to scan a two-dimension code to log in, the PC terminal directly sends a request for obtaining the two-dimension code to a server.
After receiving the acquisition request, the server randomly generates a unique identifier, stores the unique identifier as a key value into the server, combines the unique identifier with the self-defined two-dimensional code verification information, generates a picture of a two-dimensional code through a two-dimensional code generation interface, sends the picture to the first terminal, displays a login page of the first terminal, and can prompt a user to use an office system of the second terminal to perform code scanning operation on the login page. In addition, the server can set an effective duration while generating the login two-dimension code, and the login two-dimension code needs to be refreshed and acquired again when the user performs code scanning login as soon as the effective duration is reached.
After the second terminal which has logged in the office system scans the login two-dimensional code displayed by the first terminal, the second terminal can acquire the token of the login account on the second terminal, analyze the user information, send the analyzed user information and token together as parameter information to the server to verify the login request, and after the server receives the request with the parameter information, firstly compare the parameter information with the login information of the office account prestored by the second terminal when logging in the office system, and determine whether the login request interface is the same user login request interface. If so, a confirmation message is returned to the second terminal, and then a confirmation interface for logging in the office system is displayed on the display interface of the second terminal. The user clicks the login button on the confirmation interface and sends information confirming the login to the office system to the server.
And then the server sends a message including the successful login of the user information to the second terminal through a communication tool between the server and the second terminal, and the second terminal displays an operation interface of an office system corresponding to the office account associated with the second terminal after receiving the message of the successful login sent by the server.
In this embodiment of the present application, a message middleware Openfire (instant messaging) may be connected in series between the first terminal and the second terminal, and an Openfire connection address may be obtained by invoking an Openfire service, then a scan jump address is obtained, and an obtaining request for logging in a two-dimensional code is sent according to the scan jump address. When the login two-dimensional code is generated, the unique identification of the login two-dimensional code, namely the temporary account and the password of the login two-dimensional code, can be registered through the Openfire service, finally after the second terminal scans the login two-dimensional code, the temporary account of the login two-dimensional code and the login account associated with the second terminal can be bound through the Openfire service to generate verification information, and then the verification information and the login information of the pre-stored office account are verified through the server.
Therefore, when the PC end loads the office system page, single connection with the instant messaging server can be established, then the instant messaging can authorize the user of the PC end by a single token, and meanwhile, the APP end can be connected with the temporary user. And finally, after the instant messaging is added, the PC end and the APP end can also exchange random numbers, and the instant messaging message is checked secondarily.
Based on the foregoing description, the method of the embodiment of the application is applied to an office system, which includes a first terminal, a second terminal and a server. According to the method, a user can log in the office system on the first terminal by only using the second terminal which is logged in the office system to scan the login two-dimensional code displayed by the first terminal which is not logged in the office system, an account and a password are not required to be input on a login interface of the first terminal, the user can be ensured to quickly log in the office system in a safe and reliable environment, the operation is convenient, and the problems that the login operation of the office system is complex, the password is easy to leak and the like are solved. Meanwhile, a message middleware Openfire (instant messaging) is connected in series between the first terminal and the second terminal, temporary users and session random numbers are integrated, and security of an office network segment and a mobile internet terminal is greatly improved.
Based on the same inventive concept, an embodiment of the present application provides a system login device, referring to fig. 6, which is applied to a first terminal, and includes: a transmitting unit 601 and a receiving unit 602; wherein:
a sending unit 601, configured to send, to a server, an acquisition request for logging in a two-dimensional code in response to a user selecting an operation for scanning the two-dimensional code for logging in an office system;
The receiving unit 602 is configured to receive a login two-dimensional code sent by the server based on the acquisition request, and display the login two-dimensional code on an office system login interface of the first terminal, so that a second terminal scans the login two-dimensional code to perform office system login;
the receiving unit 602 is further configured to receive the login success information sent by the server, and display an operation interface of an office system corresponding to the office account associated with the second terminal; the information of successful login is sent to the first terminal when the server receives the information of confirming login to the office system sent by the second terminal.
In one possible embodiment, the apparatus further comprises:
the display unit is used for displaying prompt information on an office system login interface of the first terminal; the prompt information is used for prompting the user to scan the login two-dimensional code by using a second terminal associated with the office account.
Based on the same inventive concept, an embodiment of the present application provides a system login device, referring to fig. 7, which is applied to a server, and includes: a receiving unit 701, a generating unit 702, and a transmitting unit 703, wherein:
A receiving unit 701, configured to receive an acquisition request for a login two-dimensional code of an office system sent by a first terminal;
a generating unit 702, configured to generate the login two-dimensional code based on the acquisition request; the login two-dimensional code is sent to the first terminal;
the receiving unit 701 is further configured to receive parameter information sent by the second terminal after scanning the login two-dimensional code; the parameter information is login information of an office account associated with the second terminal and a unique identifier of the login two-dimensional code; the second terminal is a terminal which is already logged in the office system;
and a sending unit 703, configured to send confirmation information to the second terminal so that a confirmation interface for logging in the office system is displayed on a display interface of the second terminal if the parameter information is determined to be the prestored login information of the office account associated with the second terminal.
In a possible embodiment, the generating unit 702 is specifically configured to:
generating a unique identifier for the acquisition request; the unique identifier is used for representing the login two-dimensional code;
and generating the login two-dimensional code through a two-dimensional code generation interface based on the unique identifier.
In one possible embodiment, the apparatus further comprises:
the limiting unit is used for setting an effective duration for the login two-dimensional code after the login two-dimensional code is generated through the two-dimensional code generation interface based on the unique identifier.
In a possible embodiment, the generating unit 702 is further configured to:
after receiving the information confirming login to the office system sent by the second terminal, generating information of successful login; and sending the information of successful login to the first terminal.
Based on the same inventive concept, an embodiment of the present application provides a system login device, referring to fig. 8, which is applied to a second terminal, including: a transmitting unit 801 and a receiving unit 802, wherein:
a sending unit 801, configured to send parameter information to a server in response to an operation that a user scans a login two-dimensional code displayed on an office system login interface of a first terminal, so that the server performs login information verification; the parameter information is login information of an office account associated with the second terminal and a unique identifier of the login two-dimensional code;
a receiving unit 802, configured to receive acknowledgement information sent by the server based on the parameter information, and display an acknowledgement interface for logging in the office system on a display interface of the second terminal;
The sending unit 801 is further configured to send information for confirming login to the server in response to the user triggering the operation for confirming login on the confirmation interface.
The system login device and the system login method provided by the embodiment of the application have the same beneficial effects, and are not described in detail herein.
Having described the system login method and the system login apparatus according to the exemplary embodiments of the present application, next, an electronic device provided according to the embodiments of the present application is described.
An embodiment of the present application provides an electronic device that may implement the system login method discussed above, and referring to fig. 9, the device includes a memory 901, one or more processors 902, and a bus 903.
A memory 901 for storing a computer program executed by the processor 902. The memory 901 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a program required for running an instant communication function, and the like; the storage data area can store various instant messaging information, operation instruction sets and the like.
The memory 901 may be a volatile memory (RAM) such as a random-access memory (RAM); the memory 901 may also be a nonvolatile memory (non-volatile memory), such as a read-only memory, a flash memory (flash memory), a Hard Disk Drive (HDD) or a Solid State Drive (SSD), or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto. The memory 901 may be a combination of the above memories.
The processor 902 may include one or more central processing units (central processing unit, CPU) or digital processing units, or the like. A processor 902 for implementing the system login method described above when calling the computer program stored in the memory 901.
The specific connection medium between the memory 901 and the processor 902 is not limited in the embodiments of the present application. In the embodiment of the present application, the memory 901 and the processor 902 are connected by a bus 903 in fig. 9, the bus 903 is shown by a thick line in fig. 9, and the connection manner between other components is only schematically illustrated, and is not limited thereto. The bus 903 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 9, but not only one bus or one type of bus.
In an exemplary embodiment, embodiments of the present application provide a computer-readable storage medium, the computer program product comprising: computer program code which, when run on a computer, causes the computer to perform any of the system login methods as previously discussed. Since the principle of the above-mentioned computer readable storage medium for solving the problem is similar to the system login method discussed above, the implementation of the above-mentioned computer readable storage medium may refer to the implementation of the method, and the repetition is not repeated.
In an exemplary embodiment, the present application further provides a computer program product comprising: computer program code which, when run on a computer, causes the computer to perform any of the system login methods as previously discussed. Since the principle of the solution of the problem of the computer program product is similar to that of the system login method discussed above, the implementation of the computer program product may refer to the implementation of the method, and the repetition is omitted.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of user operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (14)

1. A system login method, applied to a first terminal, comprising:
responding to the operation of selecting scanning two-dimension code login by a user aiming at an office system, and sending an acquisition request of the login two-dimension code to a server;
receiving a login two-dimensional code sent by the server based on the acquisition request, and displaying the login two-dimensional code on an office system login interface of the first terminal so that a second terminal scans the login two-dimensional code to perform office system login;
receiving information of successful login sent by the server, and displaying an operation interface of an office system corresponding to an office account associated with the second terminal; the information of successful login is sent to the first terminal when the server receives the information of confirming login to the office system sent by the second terminal.
2. The method of claim 1, wherein after the presenting the login two-dimensional code on the office system login interface of the first terminal, the method further comprises:
displaying prompt information on an office system login interface of the first terminal; the prompt information is used for prompting the user to scan the login two-dimensional code by using a second terminal associated with the office account.
3. A system login method, applied to a server, the method comprising:
receiving an acquisition request of a login two-dimensional code for an office system, which is sent by a first terminal;
generating the login two-dimensional code based on the acquisition request; the login two-dimensional code is sent to the first terminal;
receiving parameter information sent by the second terminal after scanning the login two-dimensional code; the parameter information is login information of an office account associated with the second terminal and a unique identifier of the login two-dimensional code; the second terminal is a terminal which is already logged in the office system;
and if the parameter information is the prestored login information of the office account associated with the second terminal, sending the confirmation information to the second terminal so as to display a confirmation interface for logging in the office system on a display interface of the second terminal.
4. The method of claim 3, wherein generating the login two-dimensional code for the acquisition request comprises:
generating a unique identifier for the acquisition request; the unique identifier is used for representing the login two-dimensional code;
and generating the login two-dimensional code through a two-dimensional code generation interface based on the unique identifier.
5. The method of claim 4, wherein after generating the login two-dimensional code through a two-dimensional code generation interface based on the unique identification, the method further comprises:
and setting an effective duration for the login two-dimensional code.
6. A method according to claim 3, wherein after said sending of the acknowledgement information to the second terminal, the method further comprises:
after receiving the information confirming login to the office system sent by the second terminal, generating information of successful login; and sending the information of successful login to the first terminal.
7. A system login method, applied to a second terminal, comprising:
responding to the operation of scanning a login two-dimensional code displayed on an office system login interface of a first terminal by a user, and sending parameter information to a server so that the server performs login information verification; the parameter information is login information of an office account associated with the second terminal and a unique identifier of the login two-dimensional code;
receiving confirmation information sent by the server based on the parameter information, and displaying a confirmation interface for logging in the office system on a display interface of the second terminal;
And responding to the operation of triggering the confirmation login on the confirmation interface by the user, and sending information for confirming the login of the office system to the server.
8. A system login method, applied to an office system, the office system including a first terminal, a second terminal, and a server, the method comprising:
the first terminal is used for responding to the operation of selecting to scan the two-dimension code for logging in by a user aiming at the office system and sending an acquisition request of logging in the two-dimension code to the server;
the server is used for receiving an acquisition request of the login two-dimensional code sent by the first terminal; generating the login two-dimensional code based on the acquisition request; the login two-dimensional code is sent to the first terminal;
the first terminal is used for receiving the login two-dimensional code sent by the server based on the acquisition request and displaying the login two-dimensional code on an office system login interface of the first terminal;
the second terminal is used for responding to the operation of scanning the login two-dimensional code displayed on the office system login interface of the first terminal by the user and sending parameter information to the server;
the server is used for receiving the parameter information sent by the second terminal; if the parameter information is determined to be the prestored login information of the office account associated with the second terminal, sending confirmation information to the second terminal; the parameter information is login information of an office account associated with the second terminal and a unique identifier of the login two-dimensional code;
The second terminal is used for receiving the confirmation information sent by the server and displaying a confirmation interface for logging in the office system on a display interface of the second terminal; responding to the operation of triggering confirmation login on the confirmation interface by a user, and sending the information of confirming login to the server;
the server is used for generating information of successful login after receiving the information of confirming login to the office system sent by the second terminal and sending the information to the first terminal;
the first terminal is used for receiving the login success information sent by the server and displaying an operation interface of an office system corresponding to the office account associated with the second terminal.
9. A system login device for use with a first terminal, the device comprising:
the sending unit is used for responding to the operation of selecting and scanning the two-dimension code login by a user aiming at the office system and sending an acquisition request of the login two-dimension code to the server;
the receiving unit is used for receiving the login two-dimensional code sent by the server based on the acquisition request and displaying the login two-dimensional code on an office system login interface of the first terminal so that a second terminal scans the login two-dimensional code to perform office system login;
The receiving unit is further configured to receive the login success information sent by the server, and display an operation interface of an office system corresponding to the office account associated with the second terminal; the information of successful login is sent to the first terminal when the server receives the information of confirming login to the office system sent by the second terminal.
10. A system login device for use with a server, the device comprising:
the receiving unit is used for receiving an acquisition request of a login two-dimensional code for an office system, which is sent by the first terminal;
the generation unit is used for generating the login two-dimensional code based on the acquisition request; the login two-dimensional code is sent to the first terminal;
the receiving unit is further used for receiving parameter information sent by the second terminal after the second terminal scans the login two-dimensional code; the parameter information is login information of an office account associated with the second terminal and a unique identifier of the login two-dimensional code; the second terminal is a terminal which is already logged in the office system;
and the sending unit is used for sending confirmation information to the second terminal if the parameter information is determined to be the prestored login information of the office account associated with the second terminal, so that a confirmation interface for logging in the office system is displayed on a display interface of the second terminal.
11. A system login device for use with a second terminal, the device comprising:
the sending unit is used for responding to the operation of scanning the login two-dimensional code displayed on the office system login interface of the first terminal by the user and sending parameter information to the server so as to enable the server to carry out login information verification; the parameter information is login information of an office account associated with the second terminal and a unique identifier of the login two-dimensional code;
the receiving unit is used for receiving the confirmation information sent by the server based on the parameter information, and displaying a confirmation interface for logging in the office system on the display interface of the second terminal;
and the sending unit is also used for responding to the operation of triggering the confirmation login on the confirmation interface by the user and sending the information for confirming the login of the office system to the server.
12. An electronic device, comprising:
a memory for storing program instructions;
a processor for invoking program instructions stored in said memory and executing the system login method according to any of claims 1-2, or the system login method according to any of claims 3-6, or the system login method according to claim 7, in accordance with the obtained program instructions.
13. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a computer, cause the computer to perform the system login method according to any one of claims 1-2, or the system login method according to any one of claims 3-6, or the system login method according to claim 7.
14. A computer program product, the computer program product comprising: computer program code which, when run on a computer, causes the computer to perform the system login method according to any of the preceding claims 1-2, or the system login method according to any of the claims 3-6, or the system login method according to claim 7.
CN202310057888.1A 2023-01-17 2023-01-17 System login method, device, equipment and medium Pending CN116055197A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310057888.1A CN116055197A (en) 2023-01-17 2023-01-17 System login method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310057888.1A CN116055197A (en) 2023-01-17 2023-01-17 System login method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN116055197A true CN116055197A (en) 2023-05-02

Family

ID=86132893

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310057888.1A Pending CN116055197A (en) 2023-01-17 2023-01-17 System login method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN116055197A (en)

Similar Documents

Publication Publication Date Title
US11252203B2 (en) Method for processing message in group session, storage medium, and computer device
US10462118B2 (en) Systems and methods for login and authorization
US20210165686A1 (en) Task processing method, system, device, and storage medium
CN107070945B (en) Identity login method and equipment
CN109544135B (en) Bank card binding method and device, storage medium and mobile terminal
CN104092811B (en) Mobile terminal information download method, system, terminal device and server
CN103020687B (en) Quick Response Code sharing method and system
CN109873805B (en) Cloud desktop login method, device, equipment and storage medium based on cloud security
CN109583181B (en) Authentication method, authentication device and machine-readable storage medium
CN103065178B (en) A kind of Quick Response Code sharing apparatus, access means and sharing method
CN108989291B (en) Login verification method, automatic login verification method, server side and client side
CN103001974A (en) Method, system and device used for controlling login and based on two-dimensional code
CN103067378A (en) Log-in control method and system based on two-dimension code
CN104125485B (en) A kind of user profile shared method, equipment and system
CN103036902A (en) Login control method and login control system based on two-dimension code
CN114491436A (en) Contract signing method and device, electronic equipment and storage medium
CN113824628A (en) User identity authentication method, device, server and storage medium based on IM
CN114266033A (en) Verification code generation method and device, verification code login system and electronic equipment
CN109992940B (en) Identity verification method, device and system and identity verification server
CN104468486A (en) Information processing method and system and electronic device
CN107231358B (en) Questionnaire data acquisition method, server and mobile terminal
CN113438264B (en) Wearable massager connection method, device, computer equipment and storage medium
JP2019512984A (en) Method, apparatus and system for checking change of telephone number
CN107566422B (en) Third-party user verification method
CN108600242B (en) Account registration method, device and equipment of application software and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination