Security information updating method and device, computer device and storage medium
By configuring page forms and listening to the submission controls, authentication and data comparison updates are performed, solving the problems of cumbersome security information updates and high error rates, thus improving the update efficiency and accuracy of the project management software system.
Patent Information
- Application Number
- CN202310756541.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-25
- Publication Date
- 2026-02-03
- Estimated Expiration
- 2043-06-25
AI Technical Summary
In existing technologies, updating security information is cumbersome, requires a lot of repetitive code modifications, and is prone to errors, leading to reduced system reliability.
By obtaining configuration information to configure page forms, listening to submission controls, performing authentication and updating step status, obtaining modification information and performing data comparison and updates, the security information update process is simplified.
It enables simple and accurate updates of security information, reduces page code modifications, and improves the update speed and accuracy of project management software systems.
Smart Images

Figure CN116795852B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a secure information updating method, apparatus, computer equipment, and storage medium. Background Technology
[0002] In the internet age, security information is ubiquitous in people's daily lives. Account passwords, payment passwords, and personal privacy information for various software all fall under the category of security information. Within a security information system, modifying security information can effectively enhance its security. Current security information modification operations typically involve a two-step process.
[0003] The two-step process allows users to authenticate themselves before modifying security information. This authentication process effectively protects user information, preventing unauthorized tampering and improving reliability. However, in some systems, such as project management software, numerous different two-step scenarios exist. For example, when changing critical information (such as passwords, email addresses, or device bindings), user authentication is required before any changes can be made. Similarly, when accessing third-party synchronized data for the first time, user authentication and configuration are necessary before system access.
[0004] In the current software system, when it is necessary to view the two-step operation page code in different scenarios, the implementation method is to complete the two-step operation by creating a new code for each scenario to form the security information update operation. Moreover, each time a new two-step operation scenario is added, new page code needs to be rewritten. This not only makes the security information update more complicated, but also, due to the large number of page codes, errors are prone to occur when updating security information, reducing the reliability of the system. Summary of the Invention
[0005] The purpose of this application is to provide a method, apparatus, computer device, and storage medium for updating security information, so as to solve the problems of cumbersome and low accuracy in updating security information.
[0006] To address the aforementioned technical problems, this application provides a method for updating security information, employing the following technical solution:
[0007] Obtain preset configuration information, configure the page form on the system page according to the configuration information, and listen for the submit control in the page form;
[0008] When a submission operation is detected by the submission control, the user's input verification information is obtained through the preset first form component, and the verification information is sent to the first data interface for identity verification. After successful verification, a verification identifier is returned.
[0009] Save the verification identifier to the preset step status information, and update the step status corresponding to the step status information to the second step status.
[0010] Based on the status of the second step, locate the second form component, obtain the user-inputted modification information through the second form component, and send the modification information to the second data interface; and
[0011] First user security data is created based on the modified information. The first user security data is compared with the pre-stored second user security data. The second user security data is updated based on the comparison result. After the update is completed, the update result is returned to the system page for display.
[0012] Furthermore, the step of configuring the page form on the system page according to the configuration information and listening to the submit control in the page form specifically includes:
[0013] Parse the configuration information to obtain page information and corresponding page form creation rules;
[0014] The corresponding system page is located based on the page information, and the system page is marked.
[0015] A page form is created for the marked system page according to the page form creation rules; and
[0016] Identify the submit control in the page form and listen to the submit control using preset listening code.
[0017] Furthermore, the step of obtaining user-input verification information through a preset first form component, sending the verification information to a first data interface for identity verification, and returning a verification identifier after successful verification specifically includes:
[0018] Obtain the form information mapping table corresponding to the page form, and query the first form component according to the form information mapping table;
[0019] Obtain the verification information, send the verification information to the first data interface through the pre-built first page route via the first form component for identity verification, and output the verification result;
[0020] Check whether the verification result is correct;
[0021] If the verification result is correct, a verification success message will be displayed in the prompt box on the system page, and the verification identifier will be returned; and
[0022] If the verification result is incorrect, a verification failure message will be returned to the prompt box on the system page for display.
[0023] Furthermore, the step of saving the verification identifier to preset step status information and updating the step status corresponding to the step status information to the second step status specifically includes:
[0024] Receive the verification identifier and save the verification identifier to the step status information according to the preset storage address;
[0025] Detect whether the verification identifier is contained in the step status information;
[0026] If the step status information contains the verification identifier, then the step status information is changed from the first step status to the second step status, and the verification identifier is further saved to a predetermined storage location; and
[0027] If the verification identifier is not present in the step status information, the verification identifier is received again and saved in the step status information until there is no response or the return value is empty when the verification identifier is received.
[0028] Furthermore, the step of finding the second form component based on the status of the second step, obtaining the user-inputted modification information through the second form component, and sending the modification information to the second data interface specifically includes:
[0029] Obtain the form information mapping table corresponding to the page form and the status of the second step, and query the corresponding second form component in the form information mapping table according to the status of the second step;
[0030] The modified information is obtained, and the modified information is sent to the second data interface through the pre-built second page route via the second form component; and
[0031] The system detects whether the second data interface has received the modified information. If the second data interface has not received the modified information, the modified information is resent until there is no response when the modified information is sent.
[0032] Furthermore, the steps of creating first user security data based on the modified information, comparing the first user security data with pre-stored second user security data, updating the second user security data based on the comparison result, and returning the update result to the system page for display after the update is completed, specifically include:
[0033] Receive the modified data, obtain the second user security data, and create first user security data corresponding to the second user security data based on the modified data;
[0034] The first user security data and the second user security data are compared according to a preset comparison algorithm to obtain a comparison result, and the second user security data is updated according to the comparison result.
[0035] After the update is complete, the update results will be returned to the system page for display; and
[0036] After the update results are displayed, the system page is refreshed and redirected.
[0037] Furthermore, the step of comparing the first user security data and the second user security data according to a preset comparison algorithm to obtain a comparison result, and updating the second user security data according to the comparison result, specifically includes:
[0038] The root element types and attributes of the first user security data and the second user security data are compared. If the root element types and attributes are the same, the first node data corresponding to the first user security data and the second node data corresponding to the second user security data are obtained.
[0039] Find the first child node of the first node data and the second child node corresponding to the second node data;
[0040] Add corresponding key-value pairs to the first child node and the second child node;
[0041] Compare the key values of the first child node and the second child node to identify newly added key values in the first child node; and
[0042] The corresponding child node data is obtained based on the newly added key value, and the child node data is sent to the second user security data for security information update.
[0043] To address the aforementioned technical problems, this application also provides a security information updating device, comprising:
[0044] The form listening module is used to obtain preset configuration information, configure the page form of the system page according to the configuration information, and listen for the submission operation that occurs in the page form;
[0045] The information verification module is used to obtain the verification information entered by the user through a preset first form component when the submission operation is detected, and send the verification information to the first data interface for identity verification. After successful verification, a verification identifier is returned.
[0046] The step update module is used to save the verification identifier to a preset step status information and update the step status corresponding to the step status information to the second step status.
[0047] The information acquisition module is used to locate the second form component based on the status of the second step, acquire the modification information input by the user through the second form component, and send the modification information to the second data interface; and
[0048] The information update module is used to create first user security data based on the modified information, compare the first user security data with the pre-stored second user security data, update the second user security data according to the comparison result, and return the update result to the system page for display after the update is completed.
[0049] To address the aforementioned technical problems, this application also provides a computer device that employs the following technical solution:
[0050] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the security information update method described above.
[0051] To address the aforementioned technical problems, this application also provides a computer-readable storage medium, employing the technical solution described below:
[0052] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the security information update method described above.
[0053] Compared with the prior art, the embodiments of this application have the following main advantages:
[0054] This application embodiment acquires preset configuration information, configures page forms on the system page according to the configuration information, and then listens for submission controls on the page forms, thereby capturing modification operations on security information. When a submission control submission operation is detected, the user-input verification information is obtained through the first form component and sent to the first data interface for authentication. After successful verification, a verification identifier is returned, thus completing the verification operation of the user-input verification information. By saving the verification identifier to preset step status information and updating the step status corresponding to the step status information to the second step status, the system is effectively notified to switch the current step status to find the second form component based on the second step status. When the second form component is found, the user-input modification information is obtained through the second form component and sent to the second data interface, effectively realizing the acquisition and transmission of modification information. After receiving the modification information, first user security data is created based on the modification information. Preset second user security data is then obtained and compared with the first user security data. The second user security data is updated based on the comparison result, thereby achieving accurate updates of security information. Once the update is complete, the update result is returned to the system page for display. This method effectively achieves simple and convenient updates of security information. This embodiment is mainly applied to project management software systems. By using the method described in this embodiment, project management software systems can update security information without extensive modifications to page code, and can accurately modify and update the lines of code corresponding to the security information in the page code, thereby improving the speed and accuracy of security information updates in the project management software system. Attached Figure Description
[0055] To more clearly illustrate the solutions in this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0056] Figure 1 A flowchart of an embodiment of the security information update method according to this application;
[0057] Figure 2 yes Figure 1 A flowchart of a specific implementation of step S10;
[0058] Figure 3 yes Figure 1 A flowchart of a specific implementation of step S20;
[0059] Figure 4 yes Figure 1A flowchart of a specific implementation of step S30;
[0060] Figure 5 yes Figure 1 A flowchart of a specific implementation of step S40;
[0061] Figure 6 yes Figure 1 A flowchart of a specific implementation of step S50;
[0062] Figure 7 yes Figure 6 A flowchart of a specific implementation of step S502;
[0063] Figure 8 This is a schematic diagram of a structure of an embodiment of the security information updating device according to this application;
[0064] Figure 9 This is a schematic diagram of the structure of one embodiment of the computer device according to this application. Detailed Implementation
[0065] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein in the specification of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "comprising" and "having," and any variations thereof, in the specification, claims, and foregoing drawings of this application, are intended to cover non-exclusive inclusion. The terms "first," "second," etc., in the specification, claims, or foregoing drawings of this application are used to distinguish different objects, not to describe a particular order.
[0066] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0067] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
[0068] refer to Figure 1 A flowchart of an embodiment of the security information updating method according to this application is shown. The security information updating method includes the following steps:
[0069] Step S10: Obtain preset configuration information, configure the page form on the system page according to the configuration information, and listen for the submit control in the page form;
[0070] In this embodiment, configuration information can be customized and stored in the database. When the configuration information needs to be retrieved, it can be queried in the database using SQL statements. In this embodiment, the page form is set in the system page with a predetermined format and text content. The system page refers to the page used for display in the system, which can be the front-end login page. The submit control is the submit button set in the page form. When the submit button is clicked, it is considered that a submission operation has occurred in the page form. At this time, the system will send the user-input verification information to the predetermined routing address interface for verification.
[0071] Step S20: When the submission control is detected to have submitted, the user input verification information is obtained through the preset first form component, and the verification information is sent to the first data interface for identity verification. After successful verification, a verification identifier is returned.
[0072] In this embodiment, the first data interface is a pre-configured authentication interface in React. After the authentication interface successfully verifies the authentication information, it returns a verification identifier as a token.
[0073] Step S30: Save the verification identifier to the preset step status information, and update the step status corresponding to the step status information to the second step status;
[0074] In this embodiment, the step status information is the step status variable defined by React. This step status variable is set in the system code. Initially, the value of step is 1, indicating that the current step status is the first step status. When a verification flag is received, the value of step is changed to 2, indicating that the current step status is the second step status. The step status is updated through the above method.
[0075] Step S40: Based on the status of the second step, locate the second form component, obtain the user-inputted modification information through the second form component, and send the modification information to the second data interface; and
[0076] In this embodiment, the second data interface is a pre-configured information update interface in React.
[0077] Step S50: Create first user security data according to the modified information, compare the first user security data with the pre-stored second user security data, update the second user security data according to the comparison result, and return the update result to the system page for display after the update is completed.
[0078] This embodiment acquires preset configuration information and configures page forms on the system page according to the configuration information. It then listens for submission controls in the page forms to capture modifications to security information. When a submission operation is detected, the system obtains the user-inputted verification information through a first form component and sends it to a first data interface for authentication. Upon successful authentication, a verification identifier is returned, thus completing the verification of the user-inputted information. By saving the verification identifier to preset step status information and updating the corresponding step status to a second step status, the system is effectively notified to switch the current step status to locate the second form component based on the second step status. Once the second form component is located, it obtains the user-inputted modification information and sends it to the second data interface, effectively realizing the acquisition and transmission of modification information. After receiving the modification information, the system creates first user security data based on the modification information, and compares the preset second user security data with the first user security data. Based on the comparison result, the second user security data is updated, thereby achieving accurate updates of security information. Once the update is complete, the update result is returned to the system page for display. This method effectively achieves simple and convenient updates of security information. This embodiment is mainly applied to project management software systems. By using the method described in this embodiment, project management software systems can update security information without extensive modifications to page code, and can accurately modify and update the lines of code corresponding to security information in the page code, thereby improving the speed and accuracy of security information updates in the project software system.
[0079] In this embodiment, the above method is mainly applied to a project management software system. Before obtaining configuration information, it is necessary to obtain the address of the system page of the project management software system, and then find the corresponding configuration information based on the address of the system page to obtain the configuration information. The configuration of the first form component and the second form component is completed by React. React includes functions such as React state management, React Router, and React Hooks. In this embodiment, the function of React state management is used to control the step state and store the returned verification identifier. React Router is used to establish page routing between the system page and the first data interface and the second data interface. React Hooks can be used to add hook functions to the execution steps in the security information update process to view the changes in component state and the execution status of steps in real time, so as to optimize the system.
[0080] Continue to refer to Figure 2The flowchart illustrates a specific embodiment of step S10, which includes the following steps:
[0081] Step S101: Parse the configuration information to obtain page information and corresponding page form creation rules;
[0082] In this embodiment, the page information is a pre-stored page address corresponding to the system page, and the page form creation rules record the style of the page form and the text information corresponding to the page form.
[0083] Step S102: Locate the corresponding system page based on the page information and mark the system page;
[0084] Step S103: Create a page form for the marked system page according to the page form creation rules; and
[0085] Step S104: Identify the submit control in the page form and listen to the submit control using preset listening code.
[0086] In this embodiment, the submission control specifically refers to the submit button displayed on the page form. The page form can be set in a fixed area of the system page. When the page form is set, the user triggers information verification by clicking the submit button.
[0087] This embodiment obtains the configuration page and page form creation rules by parsing the acquired configuration information, and creates the page form in the corresponding system page according to the configuration page and page form creation rules. At the same time, it listens in real time to see if the submit button is triggered, so as to capture the user's operation of modifying security information on the system page.
[0088] In this embodiment, the corresponding system page can be effectively located and marked using the page address in the page information. In this embodiment, the page form creation rules can be customized to set the style and text content of the page form. For example, if the system page is an account login page, the page form style is a click button placed at a predetermined position on the page, and the corresponding text information is "change password," then the page creation rule would be to place a "change password" click button at a predetermined position on the page. In this embodiment, the page form is a Form form, which includes a form tag, form fields, and a submit button. The form tag is used to collect data from the system page, and its action attribute specifies where the data is sent. In this embodiment, ReactRouter is used to establish a first page route and a second page route. By default, as long as the system does not change the step state, the initial first step state is used. In this state, the page form data will be sent to the first data interface through the first page route. When the system changes the step state to the second step state, the page form data will be sent to the second data interface through the second page route. Therefore, the action attribute records the routing address of the first data interface and the routing address of the second data interface.
[0089] In this embodiment, the monitoring code includes:
[0090] $('#form1').submit(function(e){alert('The form submission event has been detected')})
[0091] $('#form1').on('submit',function(e){alert('The form submission event has been detected')})
[0092] The above listening code can effectively monitor the submit button's submission action.
[0093] Continue to refer to Figure 3 The flowchart of a specific embodiment of step S20 is shown, which includes the following steps:
[0094] Step S201: Obtain the form information mapping table corresponding to the page form, and query the first form component according to the form information mapping table;
[0095] In this embodiment, the first form component is the Authentication component. After the authentication information is authenticated, the Authentication component returns a verification result. If the verification result is successful, it returns a verification identifier, which is a token, used to represent the user's verified identity.
[0096] Step S202: Obtain the verification information, send the verification information to the first data interface through the pre-built first page route via the first form component for identity verification, and output the verification result;
[0097] In this embodiment, the first page route is pre-built by React Router.
[0098] Step S203: Check whether the verification result is correct;
[0099] Step S204: If the verification result is correct, a verification success message is returned to the prompt box on the system page for display, and the verification identifier is returned; and
[0100] In this embodiment, the prompt box is a text display box that is preset in the system page to display the prompt information result. The box pops up in the system page after the verification result is detected or is displayed in a new page after the system page jumps to a new page.
[0101] Step S205: If the verification result is incorrect, a verification failure message is returned to the prompt box on the system page for display.
[0102] This embodiment obtains a form information mapping table corresponding to the page form, and queries the first form component based on the form information mapping table. This allows the first form component to send the user-inputted verification information to the first data interface for identity verification, and performs corresponding processing based on the verification result, thereby achieving effective verification of the user-inputted verification information.
[0103] In this embodiment, the form information mapping table is generated by a map object that maps different form information to corresponding abstract form components. The form information mapping table includes keys and corresponding values, where the key is the form type and the value is the abstract form component. The first form component is queried based on the form type corresponding to the page form. The verification result includes successful and failed verification. When verification is successful, a predetermined text message is returned to the system page for display; when verification fails, a predetermined text message is also returned to the system page for display. For example, after successful verification, the message "Verification Successful" is sent to the system page for display; after failed verification, the message "Verification Failed" is sent to the system page for display. The text message returned based on the verification result can be adjusted according to the actual situation.
[0104] Continue to refer to Figure 4 The flowchart of a specific embodiment of step S30 is shown, which includes the following steps:
[0105] Step S301: Receive the verification identifier and save the verification identifier to the step status information according to the preset storage address;
[0106] In this embodiment, the path of the saved address is the path of the step status information. Alternatively, the path of the saved address can be set to a custom system storage address. The system storage address can be read in real time through the step status information, and the verification identifier of the read can be saved.
[0107] Step S302: Detect whether the verification identifier is contained in the step status information;
[0108] Step S303: If the step status information contains the verification identifier, then the step status information is changed from the first step status to the second step status, and the verification identifier is further saved to a predetermined storage location; and
[0109] Step S304: If the verification identifier is not present in the step status information, the verification identifier is received again and saved in the step status information until there is no response or the return value is empty when the verification identifier is received.
[0110] In this embodiment, in order to avoid data being cached in the system for too long and occupying system memory, the data is usually deleted after a predetermined interval. Therefore, when the verification identifier is deleted, the receiving action of the verification identifier will show no response or return an empty value.
[0111] This embodiment saves the verification identifier to the step status information and changes the corresponding step status according to the step status information to change the target address for the data sent by the system page.
[0112] In this embodiment, by saving the verification identifier to a predetermined storage location, backend personnel can easily view event information of step status changes, or external parties can easily view event information through hooks, thereby facilitating error troubleshooting and optimization.
[0113] Continue to refer to Figure 5 The flowchart of a specific embodiment of step S40 is shown, which includes the following steps:
[0114] Step S401: Obtain the form information mapping table corresponding to the page form and the second step status, and query the corresponding second form component in the form information mapping table according to the second step status;
[0115] Step S402: Obtain the modified information, and send the modified information to the second data interface through the pre-built second page route via the second form component; and
[0116] Step S403: Detect whether the second data interface has received the modification information. If the second data interface has not received the modification information, resend the modification information until there is no response when the modification information is sent.
[0117] This embodiment obtains a form information mapping table and a second step status, and then changes the key name according to the second step status to obtain the second form component. In this embodiment, the second form component is a SetPassword component, which can effectively obtain the new password set by the user. In this embodiment, the modified information includes new passwords generated by the user changing the password of the project management software system / email password / dynamic password, etc. The second page route is pre-built and generated by ReactRouter, and the modified information can be directed to the second data interface through the second page route.
[0118] Continue to refer to Figure 6 The flowchart of a specific embodiment of step S50 is shown, which includes the following steps:
[0119] Step S501: Receive the modified data and obtain the second user security data; create first user security data corresponding to the second user security data based on the modified data.
[0120] In this embodiment, both the first user security data and the second user security data are React element trees created by React using the render() function. The second user security data is the old element tree, and the first user security data is the new element tree. Each element tree includes several nodes and their corresponding child nodes.
[0121] Step S502: Compare the first user security data and the second user security data according to a preset comparison algorithm to obtain a comparison result, and update the second user security data according to the comparison result;
[0122] Step S503: After the update is completed, return the update result to the system page for result display; and
[0123] Step S504: After the update result is displayed, refresh the system page and redirect the user.
[0124] This embodiment compares the first user security data and the second user security data to obtain a comparison result. In this embodiment, the comparison result is the corresponding different child nodes in the element tree. By comparing the different child nodes, the corresponding child nodes of the second user security data can be accurately updated.
[0125] Continue to refer to Figure 7The flowchart of a specific embodiment of step S502 is shown, which includes the following steps:
[0126] Step S5021: Compare the root element type and attribute of the first user security data and the second user security data. If the root element type and attribute are the same, obtain the first node data corresponding to the first user security data and the second node data corresponding to the second user security data.
[0127] In this embodiment, the root element type and attributes are used to identify whether the element trees of the first user security data and the second user security data are corresponding.
[0128] Step S5022: Locate the first child node of the first node data and the second child node corresponding to the second node data;
[0129] Step S5023: Add corresponding key-value pairs to the first child node and the second child node;
[0130] In this embodiment, the key value is the key value in the system code.
[0131] Step S5024: Compare the key value of the first child node with the key value of the second child node to identify the newly added key value in the first child node; and
[0132] Step S5025: Obtain the corresponding child node data according to the newly added key value, and send the child node data to the second user security data for security information update.
[0133] In this embodiment, the first user security data and the second user security data contain multiple nodes and child nodes. Each node corresponds to a data class, and each child node corresponds to a data field. A key-value pair is added to each child node, allowing for effective identification of which child node has changed or which child node has been added. Only that child node is modified, avoiding traversal of all objects in the element tree and effectively improving the accuracy and speed of the second user security data update. For example, a node includes login information and email information, and child nodes include login account, login password, email account, and email password. The key-value pair for the login account is 1, for the login password is 2, for the email account is 3, and for the email password is 4. When the email password changes, an information field with key-value pair 5 is added to the email password field, containing the modified email password. This updated email password is then sent to the second user security data for synchronous modification, thus updating the second user security data.
[0134] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. The aforementioned storage medium can be a non-volatile storage medium such as a magnetic disk, optical disk, or read-only memory (ROM), or random access memory (RAM).
[0135] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0136] Further reference Figure 8 As a response to the above Figure 1 To implement the method shown, this application provides an embodiment of a security information updating device, which is similar to... Figure 1 Corresponding to the method embodiments shown, this device can be specifically applied to various electronic devices.
[0137] like Figure 8 As shown, the security information update device 6 described in this embodiment includes: a form monitoring module 601, an information verification module 602, a step update module 603, an information acquisition module 604, and an information update module 605. Wherein:
[0138] The form listening module 601 is used to obtain preset configuration information, configure the page form of the system page according to the configuration information, and listen to the submission control in the page form;
[0139] The information verification module 602 is used to obtain the verification information entered by the user through a preset first form component when the submission control is detected to submit, and send the verification information to the first data interface for identity verification. After successful verification, it returns a verification identifier.
[0140] Step update module 603 is used to save the verification identifier to preset step status information and update the step status corresponding to the step status information to the second step status.
[0141] Information acquisition module 604 is used to locate the second form component according to the status of the second step, obtain the modification information input by the user through the second form component, and send the modification information to the second data interface; and
[0142] The information update module 605 is used to create first user security data according to the modified information, compare the first user security data with the pre-stored second user security data, update the second user security data according to the comparison result, and return the update result to the system page for display after the update is completed.
[0143] This embodiment, by setting up a device module corresponding to the security information update method, can effectively realize simple and convenient updating of security information, while improving the accuracy of security information updates.
[0144] To address the aforementioned technical problems, embodiments of this application also provide a computer device. Please refer to [link / reference needed]. Figure 9 , Figure 9 This is a basic structural block diagram of the computer device in this embodiment.
[0145] The computer device 7 includes a memory 71, a processor 72, and a network interface 73 that are interconnected via a system bus. It should be noted that only the computer device 7 with components 71-73 is shown in the figure; however, it should be understood that it is not required to implement all the shown components, and more or fewer components can be implemented alternatively. Those skilled in the art will understand that the computer device described here is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.
[0146] The computer device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The computer device can interact with the user via a keyboard, mouse, remote control, touchpad, or voice control.
[0147] The memory 71 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 71 may be an internal storage unit of the computer device 7, such as the hard disk or memory of the computer device 7. In other embodiments, the memory 71 may also be an external storage device of the computer device 7, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the computer device 7. Of course, the memory 71 may include both the internal storage unit and its external storage device of the computer device 7. In this embodiment, the memory 71 is typically used to store the operating system and various application software installed on the computer device 7, such as program code for security information update methods. In addition, the memory 71 can also be used to temporarily store various types of data that have been output or will be output.
[0148] In some embodiments, the processor 72 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor 72 is typically used to control the overall operation of the computer device 7. In this embodiment, the processor 72 is used to run program code stored in the memory 71 or process data, for example, to run the program code for the security information update method.
[0149] The network interface 73 may include a wireless network interface or a wired network interface, which is typically used to establish communication connections between the computer device 7 and other electronic devices.
[0150] This embodiment, by setting up computer equipment corresponding to the security information update method, can effectively realize simple and convenient updates of security information, while improving the accuracy of security information updates.
[0151] This application also provides another embodiment, namely, providing a computer-readable storage medium storing a security information update program, which can be executed by at least one processor to cause the at least one processor to perform the steps of the security information update method as described above.
[0152] This embodiment, by setting a computer-readable storage medium corresponding to the security information update method, can effectively realize simple and convenient updating of security information, while improving the accuracy of security information updates.
[0153] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0154] Obviously, the embodiments described above are only some embodiments of this application, not all embodiments. The accompanying drawings show preferred embodiments of this application, but do not limit the patent scope of this application. This application can be implemented in many different forms; rather, the purpose of providing these embodiments is to provide a more thorough and comprehensive understanding of the disclosure of this application. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing specific embodiments, or make equivalent substitutions for some of the technical features. Any equivalent structures made using the content of this application's specification and drawings, directly or indirectly applied to other related technical fields, are similarly within the scope of patent protection of this application.
Claims
1. A method for updating security information, characterized in that, Includes the following steps: Obtain preset configuration information, configure the page form on the system page according to the configuration information, and listen for the submit control in the page form; When a submission operation is detected by the submission control, the user's input verification information is obtained through the preset first form component, and the verification information is sent to the first data interface for identity verification. After successful verification, a verification identifier is returned. Save the verification identifier to the preset step status information, and update the step status corresponding to the step status information to the second step status. Based on the status of the second step, locate the second form component, obtain the modification information entered by the user through the second form component, and send the modification information to the second data interface; and First user security data is created based on the modified information. The first user security data is compared with the pre-stored second user security data. The second user security data is updated based on the comparison result. After the update is completed, the update result is returned to the system page for display. The step of finding the second form component based on the status of the second step, obtaining the user-inputted modification information through the second form component, and sending the modification information to the second data interface specifically includes: Obtain the form information mapping table corresponding to the page form and the status of the second step, and query the corresponding second form component in the form information mapping table according to the status of the second step; The modified information is obtained, and then sent to the second data interface through the pre-built second page route via the second form component. The second form component is a SetPassword component, and the modified information is the new password set by the user. The modified information is obtained through the SetPassword component. The system detects whether the second data interface has received the modified information. If the second data interface has not received the modified information, the modified information is resent until there is no response when the modified information is sent.
2. The security information update method according to claim 1, characterized in that, The step of configuring the page form on the system page according to the configuration information and listening to the submit control in the page form specifically includes: Parse the configuration information to obtain page information and corresponding page form creation rules; The corresponding system page is located based on the page information, and the system page is marked. A page form is created for the marked system page according to the page form creation rules; and Identify the submit control in the page form and listen to the submit control using preset listening code.
3. The security information update method according to claim 1, characterized in that, The steps of obtaining user-input verification information through a preset first form component, sending the verification information to a first data interface for identity verification, and returning a verification identifier after successful verification specifically include: Obtain the form information mapping table corresponding to the page form, and query the first form component according to the form information mapping table; Obtain the verification information, send the verification information to the first data interface through the pre-built first page route via the first form component for identity verification, and output the verification result; Check whether the verification result is correct; If the verification result is correct, a verification success message will be displayed in the prompt box on the system page, and the verification identifier will be returned; and If the verification result is incorrect, a verification failure message will be returned to the prompt box on the system page for display.
4. The security information update method according to claim 1, characterized in that, The step of saving the verification identifier to preset step status information and updating the step status corresponding to the step status information to the second step status specifically includes: Receive the verification identifier and save the verification identifier to the step status information according to the preset storage address; Detect whether the verification identifier is contained in the step status information; If the step status information contains the verification identifier, then the step status information is changed from the first step status to the second step status, and the verification identifier is further saved to a predetermined storage location; and If the verification identifier is not present in the step status information, the verification identifier is received again and saved in the step status information until there is no response or the return value is empty when the verification identifier is received.
5. The security information update method according to claim 1, characterized in that, The steps of creating first user security data based on the modified information, comparing the first user security data with pre-stored second user security data, updating the second user security data based on the comparison result, and returning the update result to the system page for display after the update is completed, specifically include: Receive the modification information and obtain the second user security data, and create the first user security data corresponding to the second user security data according to the modification information; The first user security data and the second user security data are compared according to a preset comparison algorithm to obtain a comparison result, and the second user security data is updated according to the comparison result. After the update is complete, the update results will be returned to the system page for display; and After the update results are displayed, the system page is refreshed and redirected.
6. The security information update method according to claim 5, characterized in that, The step of comparing the first user security data and the second user security data according to a preset comparison algorithm to obtain a comparison result, and updating the second user security data according to the comparison result, specifically includes: The root element types and attributes of the first user security data and the second user security data are compared. If the root element types and attributes are the same, the first node data corresponding to the first user security data and the second node data corresponding to the second user security data are obtained. Find the first child node of the first node data and the second child node corresponding to the second node data; Add corresponding key-value pairs to the first child node and the second child node; Compare the key values of the first child node and the second child node to identify newly added key values in the first child node; and The corresponding child node data is obtained based on the newly added key value, and the child node data is sent to the second user security data for security information update.
7. A security information update device, characterized in that, include: The form listening module is used to obtain preset configuration information, configure the page form of the system page according to the configuration information, and listen for the submission operation that occurs in the page form; The information verification module is used to obtain the verification information entered by the user through a preset first form component when the submission operation is detected, and send the verification information to the first data interface for identity verification. After successful verification, a verification identifier is returned. The step update module is used to save the verification identifier to a preset step status information and update the step status corresponding to the step status information to the second step status. The information acquisition module is used to locate the second form component according to the status of the second step, and to obtain the modification information input by the user through the second form component, and send the modification information to the second data interface; and The information update module is used to create first user security data based on the modified information, compare the first user security data with the pre-stored second user security data, update the second user security data according to the comparison result, and return the update result to the system page for display after the update is completed. The information acquisition module includes: Obtain the form information mapping table corresponding to the page form and the status of the second step, and query the corresponding second form component in the form information mapping table according to the status of the second step; The modified information is obtained, and then sent to the second data interface through the pre-built second page route via the second form component. The second form component is a SetPassword component, and the modified information is the new password set by the user. The modified information is obtained through the SetPassword component. The system detects whether the second data interface has received the modified information. If the second data interface has not received the modified information, the modified information is resent until there is no response when the modified information is sent.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the security information update method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the security information update method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Method for updating page data, terminal device and medium
CN109446457A
System and method for determining modified web pages
US9407658B1