Login method, electronic device, storage medium and computer program product

By rendering the one-click login management panel in the browser and combining the verification code plug-in, the two-factor login process is simplified, and the cumbersome login methods in the existing technology are solved, improving efficiency and security.

CN118944936APending Publication Date: 2024-11-12CHENGDU NEW HOPE FINANCIAL INFORMATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411027404.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

During the login process of two-factor authentication, the existing technology has led to the login method being too cumbersome, and users need to enter the first and second factors one after another, affecting the login efficiency.

Method used

By obtaining the destination web page address in the browser, matching keywords and preset page rules, rendering a one-click login management panel, and logging in with the verification code and password generated by the verification code plug-in, simplifying the login process.

Benefits of technology

One-click login in the context of two-factor login, simplifying login operations, improving login efficiency and security, and reducing the impact of the one-click login panel on the landing page.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118944936A_ABST
    Figure CN118944936A_ABST
Patent Text Reader

Abstract

The invention provides a login method, electronic equipment, a storage medium and a computer program product, and relates to the technical field of computers. The method comprises the following steps: acquiring a target webpage address in a browser; the target webpage address comprises keywords; if the keyword is matched with a keyword in a preset page matching rule, rendering a one-key login management panel on a webpage corresponding to the target webpage address; the one-key login management panel comprises an account number, a password and a one-key login button; after it is monitored that the one-key login button is triggered, a verification code generated by a verification code plug-in preset in the browser is obtained; and splicing the verification code and the password, and carrying out login in combination with an account. According to the application, whether the one-key login management panel needs to be rendered on the current page is determined by using the pre-configured page matching rule, and if so, one-key login is realized on the rendered one-key login management panel, so that the login operation is simplified, and the login efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a login method, electronic device, storage medium and computer program product. Background Art

[0002] In the field of identity authentication, there are some security risks due to the authentication method of username and password. For example, if an attacker obtains the user's password, whether through guessing, social engineering or other means, the attacker can easily impersonate the legitimate user and access the system. To solve this problem, the concept of two-factor authentication was introduced. Two-factor authentication requires users to provide a second independent factor to verify their identity in addition to providing a username and password (the first factor).

[0003] Although two-factor authentication is currently available, it is too cumbersome to log in to different systems because both the first factor and the second factor need to be entered in order. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a login method, an electronic device, a storage medium and a computer program product, so as to realize one-click login in the context of two-factor login, simplify the login operation and improve the login efficiency.

[0005] In the first aspect, an embodiment of the present application provides a login method, which includes: obtaining a target web page address in a browser; the target web page address includes a keyword; if the keyword matches the keyword in a preset page matching rule, rendering a one-click login management panel on the web page corresponding to the target web page address; the one-click login management panel includes an account, a password, and a one-click login button; after monitoring that the one-click login button is triggered, obtaining a verification code generated by a verification code plug-in preset in the browser; splicing the verification code and the password, and logging in with the combined account.

[0006] The embodiment of the present application matches the keywords in the target web page address with the keywords in the preset page matching rules. When the match is successful, a one-key login management panel is rendered on the web page corresponding to the target web page address, so that the user can log in with one key by clicking the one-key login button on the one-key login management panel, without the user having to enter the account password first, then obtain the verification code, and finally perform the login operation. The login process is simplified and the login efficiency is improved.

[0007] In some embodiments, before obtaining the target login address in the browser, the method further includes: receiving identity information input by the user through a verification code plug-in to bind the verification code plug-in to the user; and using the verification code plug-in to periodically generate a verification code based on the identity information.

[0008] The embodiment of the present application binds the verification code plug-in to the user identity so that the verification code plug-in generates verification codes regularly and obtains the verification code related thereto when the user needs to perform one-key login, thereby improving the security of the verification code.

[0009] In some embodiments, before rendering the one-click login management panel on the web page corresponding to the target web page address, the method also includes: monitoring the loading status of the web page corresponding to the target web page address; if the loading status is that loading has been completed, executing the step of rendering the one-click login management panel on the web page corresponding to the target login address.

[0010] The embodiment of the present application monitors the loading status of the web page corresponding to the target web page address, so that the one-key login management panel is rendered only when the target web page address is loaded, thereby reducing the impact of the one-key login panel on the web page corresponding to the target web page address.

[0011] In some embodiments, before the step of rendering the one-click login management panel on the web page corresponding to the target login address, the method also includes: determining whether a one-click login management panel already exists on the web page; if the one-click login management panel does not exist on the web page, then executing the step of rendering the one-click login management panel on the web page corresponding to the target login address.

[0012] Before rendering the one-click login management panel, the embodiment of the present application also determines whether the one-click login management panel already exists on the web page, and only renders it if it does not exist. This ensures that there is always only one one-click login management panel rendered on the web page, thereby improving the accuracy of the one-click login.

[0013] In some embodiments, the verification code and password are concatenated and logged in with the account, including: concatenating the verification code and password to generate a new password; sending the account number and the new password to the verification server so that the verification server verifies the account number and the new password, and when the verification is successful, the login is achieved.

[0014] The embodiment of the present application concatenates the password and the verification code, and sends them together with the account to the verification server for verification. Login is achieved only when the verification is successful. The verification process improves the security of the login process.

[0015] In some embodiments, the one-click login management panel includes a filtering module, an add account module, a page rule module, a clear rule module and an account management module; wherein the account management module is used to manage account information; the filtering module is used to filter account information managed by the account management module; the add account module is used to add new account information; the page rule module is used to enter page matching rules; and the clear rule module is used to clear page matching rules entered through the page rule module.

[0016] The embodiment of the present application facilitates user operation by setting a screening module, an account adding module, a page rule module, a clear rule module and an account management module on the one-click login management panel.

[0017] In some embodiments, the account management module includes an account information display module, a one-click login button, an editing module, a top module and a deletion module; wherein the account information display module is used to display the account information; the one-click login button is used to implement one-click login; the editing module is used to change the account information; the top module is used to display the account information at the top in the account information display module; the deletion module is used to delete the account information.

[0018] The embodiment of the present application further provides an account information display module, a one-key login button, an editing module, a pinning module and a deletion module in the account management module to facilitate users to manage their account information.

[0019] In the second aspect, an embodiment of the present application provides a login device, which includes: an acquisition module, used to acquire a target web page address in a browser; the target web page address includes a keyword; a rendering module, used to render a one-key login management panel on a web page corresponding to the target web page address if the keyword matches the keyword in a preset page matching rule; the one-key login management panel includes an account, a password and a one-key login button; a monitoring module, used to acquire a verification code generated by a verification code plug-in preset in the browser after monitoring that the one-key login button is triggered; a login module, used to splice the verification code and the password, and log in with the combined account.

[0020] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory, a storage medium and a bus, wherein the processor and the memory communicate with each other through the bus; the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the method steps of the first aspect.

[0021] In a fourth aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium, comprising: the computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the method steps of the first aspect.

[0022] In a fifth aspect, an embodiment of the present application provides a computer program product, including: a computer program, which executes the method steps of the first aspect when executed by a processor.

[0023] Other features and advantages of the present application will be described in the subsequent description, and in part will become apparent from the description, or will be understood by implementing the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0025] Figure 1 A flowchart of a login method provided in an embodiment of the present application;

[0026] Figure 2 A schematic diagram of a one-click login management panel provided in an embodiment of the present application;

[0027] Figure 3 A flowchart of another login method provided in an embodiment of the present application;

[0028] Figure 4 A schematic diagram of the structure of a login device provided in an embodiment of the present application;

[0029] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.

[0031] It should be noted that all technical and scientific terms used in this document have the same meanings as those generally understood by technicians in the technical field to which this application belongs; the terms used in this document are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.

[0032] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.

[0033] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0034] Figure 1 The flowchart of a login method provided in the embodiment of the present application is shown in FIG. It can be understood that the login method provided in the embodiment of the present application is applied to a server; wherein the server can be an application server or a Web server. Figure 1 As shown, the method includes:

[0035] Step S101, the server obtains a target web page address in a browser; the target web page address includes a keyword.

[0036] Optionally, a browser is a client application used to retrieve, present and browse information resources transmitted over the Internet. It is mainly used to access and browse web pages on the World Wide Web. The browser renders web pages by parsing HTML (HyperText Markup Language) documents, executing JavaScript code and processing CSS (Cascading Style Sheets).

[0037] The browser includes but is not limited to Chrome browser, Firefox browser or Microsoft Edge browser.

[0038] The target web page address refers to the address that needs to be logged in with one click, such as the address for logging in to the web version of QQ mailbox.

[0039] Keywords are specific words or phrases used to identify or classify a target web page address.

[0040] It should be known that the keyword can be not only a specific word or phrase in the target web page address, but also the target web page address.

[0041] When the keyword is a specific word or phrase in the target web page address, it means that as long as the web page address contains the specific word or phrase, the subsequent one-key login panel rendering step can be executed. This method has a wider matching range and does not require the user to know the exact web page address during configuration, which simplifies the user's configuration process and improves configuration efficiency.

[0042] However, in order to avoid rendering the one-click login management panel for a large number of web page addresses that do not require login, the keyword can also be set as the target web page address. In this case, the one-click login management panel will be rendered only when the target web page address and the keyword in the page matching rule are completely matched. This method is more targeted and improves the user experience of visiting other web pages.

[0043] Exemplarily, the target webpage address is https: / / www.bbb.com.xxxx, wherein "bbb" can be used as a keyword, or "https: / / www.bbb.com.xxxx" can be used as a keyword.

[0044] Step S102, if the keyword matches the keyword in the preset page matching rule, the server renders a one-key login management panel on the web page corresponding to the target web page address; the one-key login management panel includes an account number, a password and a one-key login button.

[0045] Optionally, in order to implement one-click login, it is necessary to pre-write the page code of the one-click login management panel and the function code that implements the one-click login function, and embed them into the browser so that when the web page corresponding to the target web page address is opened, the one-click login management panel can be correctly rendered and logged in normally.

[0046] Figure 2 A schematic diagram of a one-key login management panel provided in an embodiment of the present application, such as Figure 2 As shown, the one-click login management panel includes a filtering module, an account adding module, a page rule module, a clear rule module and an account management module; wherein the account management module is used to manage account information; the filtering module is used to filter the account information managed by the account management module, for example, filtering the account information by fuzzy matching; the account adding module is used to add new account information; the page rule module is used to enter page matching rules and view the entered page matching rules; the clear rule module is used to clear the page matching rules entered through the page rule module.

[0047] Among them, the account management module includes an account information display module, a one-click login button, an editing module, a top module and a deletion module; among them, the account information display module is used to display the account information, wherein the account information can be one or more. When the account information is multiple, each account logs in to a different address; the one-click login button is used to realize one-click login; the editing module is used to change the account information; the top module is used to display the account information at the top in the account information display module; the deletion module is used to delete the account information.

[0048] In addition, the one-click login management panel also includes a closing module for closing the one-click login management panel. Furthermore, when adding account information through the account adding module, when there is data in the account password box of the webpage corresponding to the target webpage address, the account password is automatically captured and stored, or the account password is manually entered.

[0049] It should be noted that account information includes account number and password.

[0050] Optionally, use the umi framework to write the page code (css code) for the one-click login management panel.

[0051] It should be noted that in order to avoid the impact of the CSS code of the one-click login management panel on the web page corresponding to the target web page address, at this time, it is necessary to change the CSS class name of the CSS code of the one-click login management panel written by the umi framework.

[0052] For example, modify antd.config.perfixCls = my_login, lessloader.modifyVars = {'@ant-prefix':'my_login','@iconfont-css-prefix':'my_login-acticon'}. Among them, @ant-prefix indicates the modification of the default class name prefix of the component, and @iconfont-css-prefix indicates the modification of the default class name prefix of the antd icon component.

[0053] The code of the one-click login management panel includes not only the CSS page code, but also the JS code that implements the one-click login function.

[0054] The functions implemented by several key js codes are as follows:

[0055] 1) Web page loading status monitoring function: monitor the loading status of the target web page address. For example, use the monitoring function document.addEventListener in js to monitor the readystatechange event of the web page loading status change. When document.readystatechang === 'complete', the one-key login management panel will be rendered. This monitoring function prevents the one-key login management panel from rendering too early.

[0056] 2) Matching function: match the keywords of the target web page address with the existing page matching rules. If the match is successful, the one-key login management panel is rendered, otherwise it is not rendered.

[0057] 3) Judgment function: judge whether the page corresponding to the target web page address has rendered the one-key login management panel. If the one-key login management panel has been rendered, it will not be rendered again; if the one-key login management panel has not been rendered, it will be rendered again.

[0058] 4) Web page route change monitoring function: monitor whether the target web page address has changed. When the target web page address is detected to have changed, re-execute the rendering logic of the one-click login management panel page.

[0059] Step S103, after monitoring that the one-key login button is triggered, the server obtains a verification code generated by a verification code plug-in preset in the browser.

[0060] Step S104, the server combines the verification code and the password and logs in with the combined account.

[0061] Optionally, after rendering the one-click login management panel, since the one-click login management panel contains the account, password and one-click login button that require one-click login, at this time, the user can select the corresponding account and password based on the actual situation to achieve one-click login.

[0062] In order to improve the security of login, the embodiment of the present application considers using two-factor login. In this case, it is necessary to obtain an additional verification code and combine the account and password to achieve two-factor login.

[0063] In order to achieve two-factor one-click login, it is also necessary to integrate a verification code plug-in in the browser that automatically generates verification codes without the need for users to add them manually.

[0064] To achieve this function, the developers pre-developed a verification code plug-in. At the same time, in order to combine the one-click login management panel with the verification code plug-in, the developers pre-packaged the relevant code of the one-click login management panel into the root directory of the verification code plug-in, and finally integrated the verification code plug-in into the browser to achieve the two-factor one-click login function.

[0065] Exemplarily, the verification code plug-in is obtained by secondary development based on the Authenticator browser plug-in. The process of obtaining the verification code plug-in based on the Authenticator browser plug-in is as follows:

[0066] First, download the Authenticator browser plug-in source code, package the relevant code of the one-click login management panel into the root directory of the plug-in; then, add the content_scripts configuration in the manifest.json file of the plug-in source code, and the content_scripts configuration is used to introduce the relevant code of the one-click login management panel, so that the function of the relevant code of the one-click login management panel can be enabled through the verification code plug-in; finally, modify the code in the background.ts of the plug-in, specifically, add a message listening function in the background.ts file, use the chrome.runtime.onMessage method to listen, and if the message key = returnEntries, call the EntryStorage.get() method to obtain the verification code generated by the verification code plug-in.

[0067] After the verification code plug-in is developed, it is installed in the browser to implement the one-click login function of two factors.

[0068] After monitoring that the one-key login button is triggered, obtain the verification code generated by the verification code plug-in preset in the browser. The trigger can be triggered by the user clicking the one-key login button with a mouse, or by the user manually clicking the one-key login button displayed on the touch screen.

[0069] After obtaining the verification code, the server will concatenate the verification code with the password in the account selected by the user, and combine it with the corresponding account to achieve one-click login.

[0070] It should be noted that when the verification code and the password are spliced, the verification code can be spliced ​​after the password, or before the password, or inserted at a fixed position in the middle of the password. The specific setting can be made according to the actual situation.

[0071] The embodiment of the present application matches the keywords in the target web page address with the keywords in the preset page matching rules. When the match is successful, a one-key login management panel is rendered on the web page corresponding to the target web page address, so that the user can log in with one key by clicking the one-key login button on the one-key login management panel, without the user having to enter the account password first, then obtain the verification code, and finally perform the login operation. The login process is simplified and the login efficiency is improved.

[0072] In some embodiments, before obtaining the target login address in the browser, the method further includes: receiving identity information input by the user through a verification code plug-in to bind the verification code plug-in to the user; and using the verification code plug-in to periodically generate a verification code based on the identity information.

[0073] Optionally, before implementing the one-click login function, in order to automatically obtain the verification code and complete the splicing of the verification code and the password, it is necessary to bind the verification code plug-in with the user's identity information so that the verification code plug-in can periodically generate a verification code based on the identity information.

[0074] It should be noted that after the verification code plug-in is installed in the browser and bound to the user's identity information, it means that the verification code plug-in with one-click login function has the ability to generate verification codes.

[0075] In order to ensure the security of the verification code, the verification code plug-in generates verification codes regularly, and the verification code generated in each period is only valid within the corresponding period. After the corresponding period ends, the verification code becomes invalid.

[0076] The verification code may be generated periodically every one minute, every two minutes, or every 30 seconds. The specific time period may be set according to actual needs.

[0077] Optionally, the process of generating a two-factor verification code based on a verification code plug-in developed by Authenticator and verifying the verification code generally includes the following steps:

[0078] 1. Seed Key: A secret seed key is shared between the verification code plug-in and the server that performs verification code authentication. The seed key is usually exchanged by scanning a QR code or manually entering a serial number and key when the user sets up two-factor authentication for the first time. For example, the verification code plug-in binds to the user through the identity information entered by the user, and obtains the seed key based on the identity information.

[0079] 2. Encryption algorithm: Use a seed key and a standard encryption algorithm, such as HMAC (Hash-based Message Authentication Code) combined with a hash algorithm such as SHA-1, SHA-256 or SHA-512.

[0080] 3. Time synchronization: The Time-based One-Time Password (TOTP) standard requires time synchronization between the verification code plug-in and the server. The verification code is usually generated based on the current time.

[0081] 4. Time step: The verification code plug-in divides the current time by a fixed time step (for example: 30 seconds). This step is part of the TOTP algorithm and is used to determine the frequency of generating verification codes.

[0082] 5. Counter: Use the obtained quotient (without remainder) as a counter, combined with the seed key and the selected hash algorithm, to generate an encrypted hash value.

[0083] 6. Key generation: Convert the generated hash value into a number and extract a certain number of digits from it as a one-time key. Usually, the one-time key is 6 or 8 digits.

[0084] 7. Display verification code: The verification code plug-in will display the generated one-time password to the user, and the user needs to enter it to the server for verification within a specific time.

[0085] 8. Verification code verification: After receiving the verification code entered by the user, the server uses the same seed key and algorithm to regenerate a verification code and compare it with the verification code entered by the user. If the two are consistent and the time entered by the user is within the allowed time window, the verification is passed.

[0086] The embodiment of the present application binds the verification code plug-in to the user identity so that the verification code plug-in generates verification codes regularly and obtains the verification code related thereto when the user needs to perform one-key login, thereby improving the security of the verification code.

[0087] In some embodiments, before rendering the one-click login management panel on the web page corresponding to the target web page address, the method also includes: monitoring the loading status of the web page corresponding to the target web page address; if the loading status is that loading has been completed, executing the step of rendering the one-click login management panel on the web page corresponding to the target login address.

[0088] Optionally, since the one-click login management panel is rendered on the web page corresponding to the target web page address, if the web page corresponding to the target web page address has not been loaded yet, the one-click login management panel will be rendered, which will affect the display effect of the original web page. Therefore, before rendering the one-click login management panel, the loading status of the web page corresponding to the target web page address is monitored; the one-click login management panel is rendered only when the loading status of the web page is that the loading has been completed.

[0089] The embodiment of the present application monitors the loading status of the web page corresponding to the target web page address, so that the one-key login management panel is rendered only when the target web page address is loaded, thereby reducing the impact of the one-key login panel on the web page corresponding to the target web page address.

[0090] In some embodiments, before the step of rendering the one-click login management panel on the web page corresponding to the target login address, the method also includes: determining whether a one-click login management panel already exists on the web page; if the one-click login management panel does not exist on the web page, then executing the step of rendering the one-click login management panel on the web page corresponding to the target login address.

[0091] Optionally, considering that some target web page addresses are not very different, the page layout loaded by the corresponding web pages is not very different, so there may be multiple one-click login management panels. To avoid the occurrence of multiple one-click login management panels, before rendering the one-click login management panel, it is judged whether there is a one-click login management panel on the web page corresponding to the target web page address. If there is a one-click login management panel, it will not be rendered again. If there is no one-click login management panel, the one-click login management panel will be rendered.

[0092] Before rendering the one-click login management panel, the embodiment of the present application also determines whether the one-click login management panel already exists on the web page, and only renders it if it does not exist. This ensures that there is always only one one-click login management panel rendered on the web page, thereby improving the accuracy of the one-click login.

[0093] In some embodiments, the verification code and password are concatenated and logged in with the account, including: concatenating the verification code and password to generate a new password; sending the account number and the new password to the verification server so that the verification server verifies the account number and the new password, and when the verification is successful, the login is achieved.

[0094] Optionally, in the process of implementing one-click login through the one-click login management panel, after obtaining the verification code generated in the verification code plug-in, the verification code is concatenated with the password to generate a new password, and the account number and the new password are sent to the verification server for verification.

[0095] During the verification process, the verification server compares the account with the account pre-stored in the database, splits the new password into the original password and the verification code, and verifies the original password and the verification code respectively. When the account, original password and verification code are all verified successfully, login is achieved.

[0096] It should be noted that in order to ensure the security of the account number and new password during transmission, the account number and new password need to be encrypted for transmission. After the encrypted account number and new password arrive at the verification server, the verification server decrypts them and verifies the decrypted account number and new password respectively.

[0097] The embodiment of the present application concatenates the password and the verification code, and sends them together with the account to the verification server for verification. Login is achieved only when the verification is successful. The verification process improves the security of the login process.

[0098] Figure 3 A flowchart of another login method provided in an embodiment of the present application is shown as follows: Figure 3 As shown, the method includes:

[0099] S1. Install the modified Authenticator plugin;

[0100] S2. Enter the page path address in the browser, where the page path address is the target web page address described in the above embodiment;

[0101] S3. When the page is initialized, the plug-in monitors the event to trigger the page domain name matching rule; the page domain name matching rule is the page matching rule described in the above embodiment; if the match fails, S3.1. The page remains unchanged;

[0102] If the match is successful, then S4 is executed, and the account management related code is injected. The account management related code is the related code of the one-key login management panel described in the above embodiment; if there is no account password on the one-key login management panel, then S4.1 is executed, and the account password is entered in the management interface, that is, the account password is entered on the one-key login management panel;

[0103] S5. Click the one-key login button; S5.1. The injected management page sends a message to the browser backend; S5.2. The backend monitors the message and returns the current verification code;

[0104] S6. Fill in the account number and the result of concatenating the password and the verification code; for example: document.querySelector finds the account number and password form box instance on the page, and uses the new Event('input',{bubbles:true}) method to fill the account number and the concatenated password verification code into the form box;

[0105] S7. js simulates a click event to complete the login; for example, the document.querySelector method obtains the login button instance of the page, and executes the onclick method to trigger the button click event to log in.

[0106] Figure 4 A schematic diagram of a login device provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the device includes: an acquisition module 401, a rendering module 402, a monitoring module 403 and a login module 404; wherein,

[0107] The acquisition module 401 is used to obtain the target web page address in the browser; the target web page address includes keywords; the rendering module 402 is used to render the one-key login management panel on the web page corresponding to the target web page address if the keyword matches the keyword in the preset page matching rule; the one-key login management panel includes an account, a password and a one-key login button; the monitoring module 403 is used to obtain the verification code generated by the verification code plug-in preset in the browser after monitoring that the one-key login button is triggered; the login module 404 is used to splice the verification code and the password, and log in with the combined account.

[0108] Based on the above embodiment, the device also includes a verification code acquisition module, which is used to receive identity information input by the user through the verification code plug-in to bind the verification code plug-in with the user; and use the verification code plug-in to periodically generate verification codes based on the identity information.

[0109] Based on the above embodiment, the rendering module 402 is specifically used to: monitor the loading status of the web page corresponding to the target web page address; if the loading status is completed, execute the step of rendering the one-key login management panel on the web page corresponding to the target login address.

[0110] Based on the above embodiment, the rendering module 402 is specifically used to: determine whether a one-key login management panel already exists on the web page; if the one-key login management panel does not exist on the web page, execute the step of rendering the one-key login management panel on the web page corresponding to the target login address.

[0111] Based on the above embodiment, the login module 404 is specifically used to: concatenate the verification code and the password to generate a new password; send the account number and the new password to the verification server so that the verification server verifies the account number and the new password, and when the verification is successful, login is realized.

[0112] It should be understood that the device corresponds to the above-mentioned login method embodiment and can execute the various steps involved in the above-mentioned method embodiment. The specific functions of the device can be found in the above description. To avoid repetition, the detailed description is appropriately omitted here. The device includes at least one software function module that can be stored in a memory in the form of software or firmware or solidified in the operating system (OS) of the device.

[0113] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 5 As shown, the electronic device includes a processor 501 (processor), a memory 502 (memory) and a bus 503; wherein the processor 501 and the memory 502 communicate with each other through the bus 503. The processor 501 is used to call the program instructions in the memory 502 to execute the methods provided by the above-mentioned method embodiments.

[0114] The processor 501 can be an integrated circuit chip with signal processing capabilities. The above-mentioned processor 501 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. It can implement or execute various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0115] The memory 502 may include but is not limited to random access memory (RAM), read only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable read-only memory (EEPROM), etc.

[0116] This embodiment discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments.

[0117] This embodiment provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions enable the computer to execute the methods provided by the above-mentioned method embodiments.

[0118] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0119] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0120] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0121] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A login method, characterized in that: The method comprises: Obtaining a target web page address in a browser; the target web page address includes keywords; If the keyword matches a keyword in a preset page matching rule, a one-key login management panel is rendered on the web page corresponding to the target web page address; the one-key login management panel includes an account number, a password, and a one-key login button; After monitoring that the one-key login button is triggered, obtaining a verification code generated by a verification code plug-in preset in the browser; The verification code and the password are combined and used together to log in with the account.

2. The method according to claim 1, characterized in that Before obtaining the target login address in the browser, the method further includes: Receiving identity information input by a user through the verification code plug-in, so that the verification code plug-in is bound to the user; The verification code plug-in is used to periodically generate a verification code based on the identity information.

3. The method according to claim 1, characterized in that Before rendering the one-key login management panel on the web page corresponding to the target web page address, the method further includes: Monitoring the loading status of the web page corresponding to the target web page address; If the loading status is that loading has been completed, the step of rendering a one-key login management panel on the web page corresponding to the target login address is executed.

4. The method according to claim 3, characterized in that Before the step of rendering the one-key login management panel on the webpage corresponding to the target login address, the method further includes: Determine whether the one-key login management panel already exists on the web page. If the one-key login management panel does not exist on the web page, perform the step of rendering the one-key login management panel on the web page corresponding to the target login address.

5. The method according to claim 1, characterized in that The step of combining the verification code and the password and logging in with the account includes: Concatenate the verification code and the password to generate a new password; The account number and the new password are sent to a verification server so that the verification server verifies the account number and the new password, and when the verification is successful, the login is realized.

6. The method according to any one of claims 1 to 5, characterized in that: The one-key login management panel includes a screening module, an account adding module, a page rule module, a clear rule module and an account management module; wherein, The account management module is used to manage account information; The screening module is used to screen the account information managed by the account management module; The adding account module is used to add new account information; The page rule module is used to input the page matching rules; The clearing rule module is used to clear the page matching rules entered through the page rule module.

7. The method according to claim 6, characterized in that The account management module includes an account information display module, the one-key login button, an editing module, a top module and a deletion module; wherein, The account information display module is used to display the account information; The one-key login button is used to implement one-key login; The editing module is used to modify the account information; The top module is used to display the account information at the top of the account information display module; The deletion module is used to delete the account information.

8. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the machine-readable instructions are executed by the processor, the method according to any one of claims 1 to 7 is performed.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is executed.

10. A computer program product, characterized in that include: A computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is executed.