Automatic login verification method, system and device, storage medium and program product

By automatically obtaining and processing verification codes in the application system, automatic login without manual input is achieved, which solves the problem of low login efficiency caused by manual input verification codes, and improves the efficiency and accuracy of system testing.

CN119276542APending Publication Date: 2025-01-07SHANGHAI ZHENHUA HEAVY IND
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411283675.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

In the internal testing of the application system, the tester needs to manually enter the user name, password, image verification code or mobile phone SMS verification code, resulting in low login efficiency and error-prone, affecting the system testing efficiency.

Method used

The first electronic device sends a request to the second electronic device, and automatically obtains and processes the picture verification code and the SMS verification code, realizing an automatic login process without manual input. The specific steps include obtaining the user name and password, sending a request to obtain the picture verification code and SMS verification code, automatically logging in based on the return data, and automatically logging into the system after receiving the instruction to allow login.

Benefits of technology

The error rate of verification code input is reduced, the efficiency of logging into the system is improved, the automated login process is realized, the user can input manually, and the efficiency of system testing is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119276542A_ABST
    Figure CN119276542A_ABST
Patent Text Reader

Abstract

The invention provides an automatic login verification method, system and device, a storage medium and a program product. The method comprises the steps that first electronic equipment obtains a user name, a password and a mobile phone number and sends a first request to second electronic equipment; the second electronic device generates returned data and sends the data to the first electronic device, and the first electronic device obtains the picture identifier and the picture verification code; the first electronic equipment sends a second request to second electronic equipment; the second electronic device generates a short message verification code based on the mobile phone number, and the first electronic device obtains the short message verification code and sends a third request of automatic login to the second electronic device; the second electronic equipment performs login verification and feeds back an instruction of whether login is allowed or not, and the first electronic equipment automatically logs in the system after receiving the instruction. Through interaction between the electronic devices, the verification code is automatically obtained, manual input of a user is avoided, and the system login efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of login verification, and in particular to a method, system, device, storage medium and program product for automatic login verification. Background Art

[0002] For the system to be used normally, picture verification codes and mobile phone SMS verification codes are effective measures to ensure system security.

[0003] When doing internal testing of application systems, testers are usually required to manually enter the user name, password, image verification code or mobile phone SMS verification code to log in to the system. Testers need to manually identify the image verification code and the verification code from the mobile phone SMS, and manually enter it into the login window. This process is prone to input errors, resulting in low system login efficiency, which in turn affects the system testing efficiency. Summary of the invention

[0004] In view of this, the present invention provides a method, system, device, storage medium and program product for automatic login verification, which can solve the problem of low login efficiency caused by easy errors in manual recognition and manual input of verification codes.

[0005] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0006] The present invention provides an automatic login verification method, which is applied to a system including a first electronic device and a second electronic device, and the method includes:

[0007] The first electronic device obtains the user name, password and mobile phone number;

[0008] The first electronic device sends a first request for obtaining a picture verification code to the second electronic device, wherein the first request includes a user name and a password;

[0009] In response to the first request, the second electronic device generates returned data and sends the returned data to the first electronic device, the first electronic device obtains the picture identification containing the picture verification code based on the returned data, and obtains the picture verification code based on the picture identification;

[0010] The first electronic device sends a second request for obtaining a text message verification code to the second electronic device, where the second request includes a user name, a password, a picture identifier, a picture verification code, and a mobile phone number;

[0011] In response to the second request, the second electronic device generates a text message verification code based on the mobile phone number;

[0012] The first electronic device obtains the SMS verification code and sends a third request for automatic login to the second electronic device, wherein the third request includes a user name, a password, a picture identifier, a picture verification code, a mobile phone number, and a SMS verification code;

[0013] In response to the third request, the second electronic device performs a login verification and feeds back an instruction on whether to allow the login. After receiving the instruction on allowing the login fed back by the second electronic device, the first electronic device automatically logs into the system.

[0014] In one embodiment of the present invention, the first electronic device sends a first request for obtaining a picture verification code to the second electronic device, including:

[0015] The first electronic device accesses the picture verification code interface of the second electronic device, and sends a first request based on the picture verification code interface.

[0016] In one embodiment of the present invention, in response to the first request, the second electronic device generates returned data and sends the returned data to the first electronic device, the first electronic device obtains a picture identifier containing a picture verification code based on the returned data, and obtains the picture verification code based on the picture identifier, including:

[0017] The second electronic device receives the first request and generates a picture identification and a picture verification code;

[0018] The second electronic device saves the picture identification and the picture verification code into a database, and sends the returned data to the first electronic device, where the returned data includes the picture identification;

[0019] The first electronic device obtains the picture verification code from the database based on the picture identifier.

[0020] In one embodiment of the present invention, the first electronic device obtains the picture identification containing the picture verification code based on the returned data, including:

[0021] The first electronic device creates an extractor, and extracts the picture identifier from the returned data based on the extractor.

[0022] In one embodiment of the present invention, the first electronic device sends a second request for obtaining a text message verification code to the second electronic device, including:

[0023] The first electronic device accesses the SMS verification code interface of the second electronic device, and sends a second request based on the SMS verification code interface.

[0024] In one embodiment of the present invention, the second electronic device generates a text message verification code based on the mobile phone number, including:

[0025] The second electronic device runs the SMS verification code interface, generates the SMS verification code based on the mobile phone number, and saves the mobile phone number and the SMS verification code into a database.

[0026] In one embodiment of the present invention, the first electronic device obtains the SMS verification code, including:

[0027] The first electronic device obtains the SMS verification code from the database based on the mobile phone number.

[0028] In one embodiment of the present invention, the first electronic device sends a third request for automatic login to the second electronic device, including:

[0029] The first electronic device receives the start-up operation and sends a third request for automatic login to the second electronic device.

[0030] In one embodiment of the present invention, the first electronic device includes a login interface, and a start button is provided on the login interface.

[0031] The start operation includes: a pressing operation on a start button.

[0032] In one embodiment of the present invention, in response to the third request, the second electronic device performs a login verification, including:

[0033] The second electronic device receives the message body from the first electronic device;

[0034] Determine the user's true identity based on the message body;

[0035] If the user identity is authentic, the second electronic device sends an instruction to allow login to the first electronic device; if not, the second electronic device sends an instruction to not allow login to the first electronic device.

[0036] The present invention also provides an automatic login method, which is applied to a first electronic device, comprising:

[0037] Get username, password and mobile phone number;

[0038] Sending a first request for obtaining a picture verification code to a second electronic device, so that the second electronic device generates returned data based on the first request, wherein the first request includes a user name and a password;

[0039] Receiving data returned by the second electronic device, obtaining a picture identifier containing the picture verification code based on the returned data, and obtaining the picture verification code based on the picture identifier;

[0040] Sending a second request for obtaining a text message verification code to a second electronic device, the second request including a user name, a password, a picture identifier, a picture verification code, and a mobile phone number;

[0041] Obtaining a text message verification code, and sending a third request for automatic login to the second electronic device, so that the second electronic device performs a login verification, wherein the third request includes a user name, a password, a picture identifier, a picture verification code, a mobile phone number, and a text message verification code;

[0042] After receiving the login permission instruction fed back by the second electronic device, the system is automatically logged in.

[0043] The present invention also provides a method for verifying automatic login, which is applied to a second electronic device and includes:

[0044] In response to a first request sent by the first electronic device, the second electronic device generates returned data and sends the returned data to the first electronic device, so that the first electronic device obtains a picture identification containing a picture verification code based on the returned data, wherein the first request includes a user name and a password;

[0045] In response to a second request sent by the first electronic device, the second electronic device generates a text message verification code based on the mobile phone number so that the first electronic device obtains the text message verification code, the second request including a user name, a password, a picture identifier, a picture verification code and a mobile phone number;

[0046] In response to the third request sent by the first electronic device, the second electronic device performs a login verification and feeds back an instruction on whether to allow the login, so that the first electronic device automatically logs into the system. The third request includes a user name, password, picture ID, picture verification code, mobile phone number and SMS verification code.

[0047] The present invention also provides an automatic login verification system, comprising:

[0048] A first electronic device, the first electronic device is used to execute the method applied to the first electronic device;

[0049] The second electronic device is used to execute the method applied to the second electronic device.

[0050] The present invention also provides an automatic login device, comprising:

[0051] Acquisition module, used to obtain username, password and mobile phone number;

[0052] A sending module, used for sending a first request for obtaining a picture verification code to a second electronic device, so that the second electronic device generates return data in response to the first request and sends the return data to the electronic device, wherein the first request includes a user name and a password;

[0053] The sending module sends a second request for obtaining a text message verification code to the second electronic device, so that the second electronic device generates a text message verification code based on the mobile phone number in response to the second request, wherein the second request includes a user name, a password, a picture identifier, a picture verification code and a mobile phone number;

[0054] The acquisition module acquires the SMS verification code, and the sending module sends a third request for automatic login to the second electronic device, so that the second electronic device responds to the third request, performs login verification, and feeds back an instruction on whether to allow login, wherein the third request includes a user name, a password, a picture identifier, a picture verification code, a mobile phone number, and a SMS verification code;

[0055] A processing module, used to obtain a picture identifier containing a picture verification code based on the returned data, and obtain the picture verification code based on the picture identifier;

[0056] The login module is used to automatically log into the system after receiving a login permission instruction fed back by the second electronic device.

[0057] The present invention also provides a computer storage medium storing a computer program. When the computer program is executed by a processor, the processor executes a method applied to a first electronic device or a method applied to a second electronic device.

[0058] The present invention also provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes a method applied to a first electronic device or executes a method applied to a second electronic device.

[0059] The above technical solution of the present invention has at least the following beneficial effects:

[0060] The method of automatic login verification of the present invention realizes automatic acquisition of verification codes for automatic login by sending three requests by the first electronic device and responding and processing the three requests by the second electronic device. Compared with the prior art in which login verification requires manual identification and manual input of verification codes, the present invention only requires the electronic device to send requests and process them by itself during the login process, avoiding manual input by the user, reducing the error rate of verification code input, and helping to improve the efficiency of the login system. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] Figure 1 A scene diagram of a method for automatic login verification according to an embodiment of the present invention;

[0062] Figure 2 A schematic diagram of the structure of a first electronic device and a second electronic device according to an embodiment of the present invention;

[0063] Figure 3 The process of the automatic login verification method of an embodiment of the present invention is as follows Figure 1 ;

[0064] Figure 4 The process of the automatic login verification method of an embodiment of the present invention is as follows Figure 2 ;

[0065] Figure 5 A flowchart of a second electronic device responding to a first request according to an embodiment of the present invention;

[0066] Figure 6 A flowchart of performing login verification on a second electronic device according to an embodiment of the present invention;

[0067] Figure 7 A schematic structural diagram of a first electronic device according to an embodiment of the present invention;

[0068] Figure 8 FIG. 4 is a block diagram of a SoC according to an embodiment of the present invention.

[0069] Reference numerals:

[0070] 100. A first electronic device; 200. A second electronic device; 300. A database. DETAILED DESCRIPTION

[0071] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present invention.

[0072] To facilitate the understanding of the technical solution of the present invention, the technical problem of the present invention is first described in detail below.

[0073] When doing internal testing of electronic equipment application systems, testers are usually required to manually enter usernames, passwords, image verification codes, or SMS verification codes to log into the system. To facilitate internal system testing, testers can log into the system to perform interface testing in the following four ways:

[0074] The first method is to modify the system source code, remove the login verification process or set a fixed verification code. This login method requires developers to modify the source code, which will cause system security risks.

[0075] The second method is to use image recognition technology to identify the characters in the verification code image. The recognition rate of the image verification code recognition technology currently on the market is difficult to reach 100%, which can easily cause verification code recognition errors and lead to low login efficiency.

[0076] The third method is to receive a verification code via SMS on your mobile phone. Each time you log in, you need to use your mobile phone to receive a verification code via SMS. You need to manually identify the verification code from the SMS and then manually enter it into the login window, which can easily lead to errors in entering the verification code.

[0077] The fourth method is to obtain a cookie or token to bypass login verification. The obtained cookie or token will have an expiration date. After the expiration date, you will not be able to log in to the system. You need to obtain it again when you log in to the system again.

[0078] For internal system testers, the above four methods are very troublesome, whether for automated testing or interface performance testing. Among them, the third method is the most commonly used login method, but manual identification of verification codes and manual input are prone to verification code input errors. System testing cannot automatically obtain verification codes and cannot achieve true automated testing.

[0079] The following describes in detail the application scenario of the method for automatic login verification according to the embodiment of the present invention with reference to the accompanying drawings.

[0080] refer to Figure 1 , Figure 1 A scene diagram of an automatic login verification method according to an embodiment of the present invention is shown. Figure 1 As shown, the system includes a first electronic device 100, a second electronic device 200 and a database 300. The first electronic device 100 serves as a device for executing a login request (i.e., a login device), that is, the first electronic device 100 can serve as a client. The second electronic device 200 serves as a device for verifying the login request (i.e., a verification device), that is, the second electronic device 200 can serve as a server. The database 300 is a computer software system that stores and manages data according to a data structure. The database 300 is an entity that can reasonably store data. Users can store transaction data to be managed in the database 300, which is conducive to more appropriate organization of data, more convenient maintenance of data, more stringent control of data and more effective use of data.

[0081] The first electronic device 100 and the second electronic device 200 can communicate with each other. The second electronic device 200 is connected to the database 300. The second electronic device 200 can generate a verification code and save the verification code to the database 300. An application system is installed on the first electronic device 100. In order to ensure the security of the application system, it is necessary to manually identify the verification code and manually enter the verification code into the login window of the application system. The second electronic device 200 compares and verifies the input verification code with the verification code in the database 300. After the verification is successful, the first electronic device 100 can log in to the application system. However, it is easy to make mistakes when manually identifying the verification code and manually entering it, resulting in low efficiency of user login.

[0082] Combine the following Figure 1 , and refer to Figure 2 , to illustrate a specific embodiment of the present invention. Figure 2A schematic structural diagram of a first electronic device 100 and a second electronic device 200 according to an embodiment of the present invention is shown.

[0083] like Figure 1 and Figure 2 As shown, in one embodiment of the present invention, the first electronic device 100 includes an application system and a test tool. The second electronic device 200 includes a processing unit. The application system is a system that the user logs in to, which can be a website or a mobile phone application. The test tool is a tool for testers to perform software testing. The test tool of the first electronic device 100 can send a verification code request to the processing unit of the second electronic device 200 and obtain data. The test tool feeds back the processed data to the application system, and the application system sends a login request to the processing unit of the second electronic device 200, thereby realizing automatic login of the application system.

[0084] For example, the testing tool is JMeter, which is used for interface testing and stress testing. JMeter can test the software's login interface, query interface, add, delete, modify and other interfaces, and can also perform stress testing by writing scripts. When JMeter does interface testing, you can set parameters such as the number of threads and the number of loops on the graphical interface, define user variables, and add various components. By running Java scripts, JMeter can also access databases such as Mysql and Redis.

[0085] The following describes in detail an automatic login verification method according to an embodiment of the present invention with reference to the accompanying drawings.

[0086] refer to Figure 3 and Figure 4 , Figure 3 The flow chart of the automatic login verification method according to an embodiment of the present invention is shown as follows Figure 1 . Figure 4 The flow chart of the automatic login verification method according to an embodiment of the present invention is shown as follows Figure 2 .

[0087] like Figure 3 As shown, the method for automatic login verification includes S301-S312, and the method is applied to a system including a computer (as a first electronic device) and a server (as a second electronic device).

[0088] The first electronic device can be a mobile phone, a personal computer, a tablet computer, a personal communication system (PCS), a personal digital assistant (PDA), etc. For the core concept of the embodiment of the present invention, a computer can give full play to the advantages of the embodiment of the present invention, but a computer is not the only form of expression of the terminal of the embodiment of the present invention. As long as it is an electronic device equipped with test tools and application systems, it will suffice.

[0089] The second electronic device may be a cloud platform, and the present invention does not make any unique limitation on the first electronic device and the second electronic device.

[0090] In S301, the computer obtains the user name, password and mobile phone number.

[0091] For example, an application system and a test tool are installed on a computer, and a user registers basic information on the application system, including a user name, password, and mobile phone number. When a tester needs to log in to the system for testing, the tester opens the test tool JMeter and sets the user name, password, and mobile phone number in JMeter so that the computer can obtain this basic information.

[0092] Specifically, testers can create thread groups in JMeter and set thread properties. For example, right-click "Add" -> "Thread (User)" -> "Thread Group" on the "Test Plan". Set the number of threads, each thread represents a user. Set the control thread start time. If the start time is "1", it means that all threads start within 1 second. If it is set to "0", it means that all threads start at the same time. Set the number of loops, which means the number of times each thread runs.

[0093] In the embodiment of the present invention, S301 corresponds to Figure 4 S401 in. Figure 4 As shown, in S401, the tester can also create and add user-defined variables in the thread group in JMeter. For example, set the system IP, user name and password, Redis server address and password, mobile phone number, public key password for encrypted data, etc.

[0094] In S302, the computer sends a first request to the server for obtaining a picture verification code, wherein the first request includes a user name and a password.

[0095] The first request is an HTTP request, which includes the resource request method, resource identifier, and protocol used. The HTTP request includes a username and password, and the path uses the address of the requested image, i.e., sending an image verification code HTTP request. In other words, JMeter on the computer sends an HTTP request to the server and sets the username and password in the message body of the HTTP request.

[0096] In the embodiment of the present invention, S302 may correspond to Figure 4 S402, S403 and S404a in it, where S402 and S403 are the creation process of the HTTP request, and S404a represents the access process of the HTTP request.

[0097] like Figure 4As shown, in S402, the tester creates and adds "HTTP request default values" in the thread group of JMeter.

[0098] Specifically, the tester right-clicks on the "Thread Group" of JMeter and selects "Add" -> "Configure Components" -> "HTTP Request Defaults". Set the common parameters of HTTP requests, communication protocols, server IP, server port number, etc. If the HTTP request does not configure these common parameters, these default values ​​will be used.

[0099] In S403, the tester creates and adds an "HTTP Header Manager" in the thread group of JMeter.

[0100] Specifically, the tester right-clicks on the "Thread Group" and selects "Add" -> "Configuration Component" -> "HTTP Header Manager".

[0101] In S404a, the computer accesses the picture verification code interface of the server. By accessing the interface to obtain the picture verification code, the generation efficiency of the picture verification code can be improved.

[0102] Continue to refer Figure 3 , in S303, in response to the first request, the server generates return data.

[0103] That is to say, after receiving the HTTP request, the server generates a new image and saves the verification code contained in the image into the Redis database 300 .

[0104] In S304, the server sends the returned data to the computer.

[0105] For example, the server returns an HTTP response result (i.e., the returned data), and the HTTP response result includes a picture identifier. The picture identifier is also called a picture ID. The HTTP response result may also include the code running result and the Base64 encoded characters of the picture. If the code running result is "200", it means that the code ran successfully. Base64 is an encoding method for transmitting bytecodes, and the Base64 encoded characters of the picture are the result of encoding using Base64. In addition, the Base64 encoded characters of the picture can be converted into a picture containing a verification code, and the verification code in the picture can be read using picture recognition technology. However, picture recognition may make a mistake and cause the inability to log in, so picture recognition technology is not used.

[0106] In S305, the computer obtains the picture identification containing the picture verification code based on the returned data, and obtains the picture verification code based on the picture identification. For example, the computer obtains the picture verification code from the Redis database 300 based on the obtained picture ID.

[0107] In the embodiment of the present invention, S305 may also include Figure 4 S404b and S405 in. Figure 4 As shown, in S404b, the computer creates an extractor and obtains the picture ID, that is, the computer obtains the picture ID using the response result returned by the extractor from the server.

[0108] In S405 , the computer accesses the Redis database 300 to obtain the picture verification code, that is, the computer can use the sampler to obtain the picture verification code corresponding to the picture ID from the database 300 .

[0109] Continue to refer Figure 3 In S306, the computer sends a second request to the server to obtain the SMS verification code, and the second request includes a user name, a password, a picture identifier, a picture verification code and a mobile phone number.

[0110] For example, the second request is an HTTP request, and JMeter sends an HTTP request for a mobile phone SMS verification code to the server, and fills in the user name, password, image verification code and image identifier (ie, image ID) in the message body.

[0111] In the embodiment of the present invention, S306 may correspond to Figure 4 S406 in. Figure 4 As shown, in S406, the computer accesses the mobile phone SMS verification code interface of the server. By accessing the interface to obtain the SMS verification code, the efficiency of generating the SMS verification code can be improved.

[0112] In S307, in response to the second request, the server generates a text message verification code based on the mobile phone number.

[0113] For example, after the server receives the HTTP request for the mobile phone SMS verification code sent by the computer (ie, the second request), it will generate a new mobile phone SMS verification code and return the running result of the HTTP request to the computer.

[0114] In S308, the computer obtains the SMS verification code. For example, after receiving the operation result returned by the server, the computer obtains the SMS verification code generated by the server.

[0115] In the embodiment of the present invention, S308 may correspond to Figure 4 In S407, the computer accesses the Redis database 300 to obtain the mobile phone text message verification code, that is, the computer can use the sampler to obtain the mobile phone text message verification code corresponding to the mobile phone number from the database 300.

[0116] In S309, the computer sends a third request for automatic login to the server, wherein the third request includes a user name, a password, a picture ID, a picture verification code, a mobile phone number, and a text message verification code.

[0117] For example, after JMeter on the computer creates a new HTTP request, it fills the obtained image ID, image verification code, mobile phone SMS verification code, user name, password, and mobile phone number into the message body parameter list and sends an HTTP message to the server.

[0118] In the embodiment of the present invention, S309 may correspond to Figure 4 In S408, the computer sends an HTTP request to the server to perform a login test on the application system.

[0119] In S310, in response to the third request, the server performs a login verification, and confirms the real identity of the user according to the parameter information of the HTTP request, that is, determines whether to allow the user to log in to the system.

[0120] In S311, the server feeds back to the computer an instruction on whether to allow the login. The instruction sent by the server is an instruction and command to instruct the computer to work.

[0121] In S312, after receiving the login permission instruction fed back from the server, the computer automatically logs into the system.

[0122] For example, if the computer receives a login permission instruction from the server, it will automatically log in to the system. If the computer receives a login permission instruction from the server, it will not be able to log in to the system. By determining the type of instruction feedback from the server to complete the automatic login of the application system, it is helpful to improve the login efficiency of the application system.

[0123] In the embodiment of the present invention, the computer sends three requests and the server responds and processes the three requests, so as to realize automatic acquisition of the verification code for automatic login. Compared with the prior art that requires manual identification and manual input of the verification code for login verification, the present invention only requires the electronic device to send the request and process it by itself during the login process, avoiding manual input by the user, reducing the error rate of the verification code input, and helping to improve the login efficiency of the application system.

[0124] In one embodiment of the present invention, Figure 3 As shown, in S302, the computer sends a first request to obtain a picture verification code to the server, which may include: the computer accesses the picture verification code interface of the server, and sends the first request based on the picture verification code interface. The JMeter of the computer can access the picture verification code interface and perform interface testing, which is conducive to improving the access efficiency of HTTP requests.

[0125] Next, combine Figure 1 , and refer to Figure 5 , to illustrate a specific embodiment of the present invention. Figure 5A flow chart showing a server responding to a first request according to an embodiment of the present invention.

[0126] like Figure 1 and Figure 5 As shown, in one embodiment of the present invention, in S303, in response to the first request, the server generates returned data, which may include the following steps S501-S502.

[0127] Step S501: The server receives a first request and generates a picture identifier and a picture verification code.

[0128] Step S502: the server saves the picture identification and the picture verification code into the database 300.

[0129] Correspondingly, in S304, the server sends the returned data to the computer, and the returned data includes the picture identifier. In S305, the computer obtains the picture verification code based on the picture identifier, that is, the computer obtains the picture verification code from the database 300 based on the picture identifier.

[0130] That is to say, the server stores the picture verification code in the database 300, and the computer obtains the picture verification code from the database 300, avoiding the picture verification code from being directly sent through the HTTP request, which can improve the security and reliability of the picture verification code.

[0131] In one embodiment of the present invention, in S305, the computer obtains the image identifier containing the image verification code based on the returned data, which may include: the computer creates an extractor, and extracts the image identifier from the returned data based on the extractor.

[0132] For example, JMeter creates a JSON extractor. Extract the image ID (i.e., image identifier) ​​from the returned HTTP response result (i.e., the returned data). Define a variable imageID, and JMeter will automatically assign the image ID to the variable imageID, that is, save the image identifier to the JMeter variable for use in subsequent steps. In addition, creating a JSON extractor can avoid manually reading the image identifier, which is conducive to improving the efficiency of extracting the image identifier.

[0133] In one embodiment of the present invention, Figure 3 As shown, in S306, the computer sends a second request to the server to obtain the SMS verification code, which may include: the computer accesses the SMS verification code interface of the server, and sends the second request based on the SMS verification code interface. The JMeter of the computer can access the SMS verification code interface and perform interface testing, which is conducive to improving the access efficiency of HTTP requests.

[0134] In one embodiment of the present invention, Figure 1 and Figure 3As shown, in S307, the server generates a text message verification code based on the mobile phone number, which may include: the server runs the text message verification code interface, generates the text message verification code based on the mobile phone number, and saves the mobile phone number and the text message verification code in the database 300. The server saves the text message verification code in the database 300, which avoids the text message verification code being sent directly through an HTTP request, and can improve the security and reliability of the text message verification code.

[0135] In one embodiment of the present invention, Figure 1 and Figure 3 As shown, in S308, the computer obtains the SMS verification code, which may include: the computer obtains the SMS verification code from the database 300 based on the mobile phone number, avoiding the SMS verification code from being directly obtained through an HTTP request, and further improving the security and reliability of the SMS verification code.

[0136] In one embodiment of the present invention, in S309, the computer sends a third request for automatic login to the server, which may include: the computer receives a startup operation and sends a third request for automatic login to the server. That is, when the tester needs to perform an internal test, the tester triggers the startup operation and sends an HTTP request for automatic login, which is conducive to improving the test efficiency.

[0137] In one embodiment of the present invention, the computer includes a login interface, and a start button is provided on the login interface. The login interface is a login interface of the application system.

[0138] In S309, the start operation includes: a pressing operation on the start button, so that the tester can log in. In addition, the start operation can also be a long pressing operation on the start button, and the present invention does not limit the start operation.

[0139] Combine the following Figure 3 , and refer to Figure 6 , to illustrate a specific embodiment of the present invention. Figure 6 A flow chart of a server performing login verification according to an embodiment of the present invention is shown.

[0140] like Figure 3 and Figure 6 As shown, in one embodiment of the present invention, in S310, in response to the third request, the server performs a login verification, which may include the following steps S601-S604.

[0141] Step S601: The server receives a message body from a computer.

[0142] For example, the message body includes a user name, password, image ID, image verification code, mobile phone number, and SMS verification code.

[0143] Step S602: Determine whether the user identity is authentic based on the message body.

[0144] For example, if the data in the message body and the database (such as Figure 1 If the data in the database 300) in the embodiment corresponds, the user identity is authentic; if the data does not correspond, the user identity is not authentic.

[0145] If the determination result of step S602 is yes, step S603 is executed.

[0146] Step S603: The server generates an instruction to allow login.

[0147] If the determination result of step S602 is no, step S604 is executed.

[0148] Step S604: The server generates an instruction not to allow login.

[0149] Correspondingly, in S311, the server feeds back to the computer an instruction on whether to allow login, which instruction is the instruction generated in step S603 and step S604.

[0150] The server completes the automatic login of the application system by feeding back different instruction types, which is beneficial to improving the login efficiency of the application system.

[0151] The present invention also provides an automatic login method, which is applied to a first electronic device, comprising:

[0152] Get username, password and mobile phone number;

[0153] Sending a first request for obtaining a picture verification code to a second electronic device, so that the second electronic device generates returned data based on the first request, wherein the first request includes a user name and a password;

[0154] Receiving data returned by the second electronic device, obtaining a picture identifier containing the picture verification code based on the returned data, and obtaining the picture verification code based on the picture identifier;

[0155] Sending a second request for obtaining a text message verification code to a second electronic device, the second request including a user name, a password, a picture identifier, a picture verification code, and a mobile phone number;

[0156] Obtaining a text message verification code, and sending a third request for automatic login to the second electronic device, so that the second electronic device performs a login verification, wherein the third request includes a user name, a password, a picture identifier, a picture verification code, a mobile phone number, and a text message verification code;

[0157] After receiving the login permission instruction fed back by the second electronic device, the system is automatically logged in.

[0158] For other corresponding steps and specific processing procedures of the method applied to the first electronic device, reference may be made to the above description of the system method.

[0159] The present invention also provides a method for verifying automatic login, which is applied to a second electronic device and includes:

[0160] In response to a first request sent by the first electronic device, the second electronic device generates returned data and sends the returned data to the first electronic device, so that the first electronic device obtains a picture identification containing a picture verification code based on the returned data, wherein the first request includes a user name and a password;

[0161] In response to a second request sent by the first electronic device, the second electronic device generates a text message verification code based on the mobile phone number so that the first electronic device obtains the text message verification code, the second request including a user name, a password, a picture identifier, a picture verification code and a mobile phone number;

[0162] In response to the third request sent by the first electronic device, the second electronic device performs a login verification and feeds back an instruction on whether to allow the login, so that the first electronic device automatically logs into the system. The third request includes a user name, password, picture ID, picture verification code, mobile phone number and SMS verification code.

[0163] For other corresponding steps and specific processing procedures of the method applied to the second electronic device, reference may be made to the above description of the system method.

[0164] The present invention also provides an automatic login verification system, which includes a first electronic device and a second electronic device.

[0165] The first electronic device is used to execute the above method applied to the first electronic device;

[0166] The second electronic device is used to execute the above method applied to the second electronic device.

[0167] The first electronic device can also perform the above Figure 3-Figure 6 The second electronic device may also perform the above Figure 3-Figure 6 The method executed by the server in .

[0168] Reference below Figure 7 , specifically describing an automatic login device provided by the present invention. Figure 7 A schematic structural diagram of a first electronic device according to an embodiment of the present invention is shown.

[0169] like Figure 7 As shown, the first electronic device is an automatic login device. The first electronic device includes a confirmation module, an interaction module, a processing module and a login module. It should be noted that the confirmation module, the interaction module, the processing module and the login module can be integrated in a test tool (for example, JMeter), and the functions of these modules can be realized by installing the test tool on the electronic device.

[0170] Among them, the acquisition module is used to obtain the user name, password and mobile phone number;

[0171] The sending module is used to send a first request for obtaining a picture verification code to a second electronic device, so that the second electronic device generates return data in response to the first request and sends the return data to the electronic device, wherein the first request includes a user name and a password;

[0172] The sending module sends a second request for obtaining a text message verification code to the second electronic device, so that the second electronic device generates a text message verification code based on the mobile phone number in response to the second request, wherein the second request includes a user name, a password, a picture identifier, a picture verification code and a mobile phone number;

[0173] The acquisition module acquires the SMS verification code, and the sending module sends a third request for automatic login to the second electronic device, so that the second electronic device responds to the third request, performs login verification, and feeds back an instruction on whether to allow login, wherein the third request includes a user name, a password, a picture identifier, a picture verification code, a mobile phone number, and a SMS verification code;

[0174] The processing module is used to obtain the image identifier containing the image verification code based on the returned data, and obtain the image verification code based on the image identifier;

[0175] The login module is used to automatically log into the system after receiving a login permission instruction fed back by the second electronic device.

[0176] The first electronic device may also execute the above Figure 3-Figure 6 A method performed by a computer in a computer.

[0177] In some other embodiments of the present invention, the second electronic device includes a processing unit, and the processing unit may include a generating module, a sending module, and a verification module. The generating module is used to generate the returned data and generate a text message verification code based on the mobile phone number. The sending module can send the returned data and the text message verification code to the first electronic device. The verification module can perform login verification and feedback an instruction on whether to allow login.

[0178] The present invention also provides a computer storage medium, the computer storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the above Figure 3-Figure 6 The method executed by the computer or the method executed by the server is explained.

[0179] The present invention also provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute the above Figure 3-Figure 6 The method executed by the computer or the method executed by the server is explained.

[0180] The working principle of the automatic login verification method is explained below in combination with the steps of the method.

[0181] After the first electronic device determines the user name, password and mobile phone number, it sends a first request to obtain a picture verification code to the second electronic device. The second electronic device generates a picture identifier and a picture verification code, saves the picture identifier and the picture verification code to a database, and sends the picture identifier to the first electronic device. The first electronic device obtains the picture identifier and obtains the picture verification code from the database based on the picture identifier.

[0182] The first electronic device sends a second request to obtain a text message verification code to the second electronic device. The second electronic device generates a text message verification code based on the mobile phone number, and saves the mobile phone number and the text message verification code in a database. The first electronic device obtains the text message verification code from the database based on the mobile phone number.

[0183] The first electronic device sends a third request for automatic login to the second electronic device. The second electronic device performs login verification and feeds back an instruction on whether to allow login. After receiving the instruction on allowing login fed back by the second electronic device, the first electronic device logs into the system to realize automatic login of the application system.

[0184] In summary, the automatic login verification method of the present invention realizes automatic acquisition of verification codes for automatic login through the first electronic device sending three requests and the second electronic device responding to and processing the three requests. This avoids manual input by the user, reduces the error rate of verification code input, and is conducive to improving the login efficiency of the application system.

[0185] Reference now Figure 8 , which is a block diagram of a SoC (System on Chip) 1300 according to an embodiment of the present application. Figure 8 In the FIG, similar components have the same reference numerals. In addition, the dashed boxes are optional features of more advanced SoCs. Figure 8 In the embodiment, SoC 1300 includes: an interconnect unit 1350, which is coupled to an application processor 1310; a system agent unit 1380; a bus controller unit 1390; an integrated memory controller unit 1340; a group or one or more coprocessors 1320, which may include integrated graphics logic, an image processor, an audio processor, and a video processor; a static random access memory (SRAM) unit 1330; and a direct memory access (DMA) unit 1360. In one embodiment, the coprocessor 1320 includes a dedicated processor, such as, for example, a network or communication processor, a compression engine, a GPGPU, a high throughput MIC processor, or an embedded processor.

[0186] The static random access memory (SRAM) unit 1330 may include one or more computer-readable media for storing data and / or instructions. The computer-readable storage medium may store instructions, specifically, temporary and permanent copies of the instructions. The instructions may include: when executed by at least one unit in the processor, causing the Soc 1300 to execute the instructions according to the above embodiments. Figure 3-Figure 6 The methods explained will not be repeated here.

[0187] The various embodiments of the mechanism disclosed in the present application can be implemented in hardware, software, firmware or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device and at least one output device.

[0188] Program code can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.

[0189] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.

[0190] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or through other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including, but not limited to, floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Therefore, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a machine (e.g., computer) readable form.

[0191] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.

[0192] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.

[0193] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0194] Unless otherwise defined, the technical terms or scientific terms used in the present invention shall have the usual meanings understood by persons with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, words such as "one" or "one" do not indicate quantity restrictions, but indicate the existence of at least one. Words such as "connect" or "connected" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the object being described changes, the relative positional relationship also changes accordingly.

[0195] The above are preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.

Claims

1. A method for automatic login verification, applied to a system including a first electronic device and a second electronic device, characterized in that: The method comprises: The first electronic device obtains a user name, a password and a mobile phone number; The first electronic device sends a first request for obtaining a picture verification code to the second electronic device, wherein the first request includes the user name and the password; In response to the first request, the second electronic device generates returned data and sends the returned data to the first electronic device, the first electronic device obtains the picture identification containing the picture verification code based on the returned data, and obtains the picture verification code based on the picture identification; The first electronic device sends a second request for obtaining a text message verification code to the second electronic device, the second request including the user name, the password, the picture identifier, the picture verification code and the mobile phone number; In response to the second request, the second electronic device generates the SMS verification code based on the mobile phone number; The first electronic device obtains the SMS verification code, and sends a third request for automatic login to the second electronic device, wherein the third request includes the user name, the password, the picture identifier, the picture verification code, the mobile phone number and the SMS verification code; In response to the third request, the second electronic device performs a login verification and feeds back an instruction on whether the login is allowed. After receiving the instruction on allowing the login fed back by the second electronic device, the first electronic device automatically logs into the system.

2. The method for automatic login verification according to claim 1, characterized in that: The first electronic device sends a first request for obtaining a picture verification code to the second electronic device, including: The first electronic device accesses the picture verification code interface of the second electronic device, and sends the first request based on the picture verification code interface.

3. The method for automatic login verification according to claim 1, characterized in that: In response to the first request, the second electronic device generates returned data and sends the returned data to the first electronic device, the first electronic device obtains a picture identifier containing the picture verification code based on the returned data, and obtains the picture verification code based on the picture identifier, including: The second electronic device receives the first request and generates the picture identifier and the picture verification code; The second electronic device saves the picture identifier and the picture verification code into a database, and sends the returned data to the first electronic device, where the returned data includes the picture identifier; The first electronic device obtains the picture verification code from the database based on the picture identifier.

4. The method for automatic login verification according to claim 1, characterized in that: The first electronic device obtains the picture identification containing the picture verification code based on the returned data, including: The first electronic device creates an extractor, and extracts the picture identifier from the returned data based on the extractor.

5. The method for automatic login verification according to claim 3, characterized in that: The first electronic device sending a second request for obtaining a text message verification code to the second electronic device includes: The first electronic device accesses the SMS verification code interface of the second electronic device, and sends the second request based on the SMS verification code interface.

6. The method for automatic login verification according to claim 5, characterized in that: The second electronic device generates the SMS verification code based on the mobile phone number, including: The second electronic device runs a text message verification code interface, generates the text message verification code based on the mobile phone number, and saves the mobile phone number and the text message verification code into the database.

7. The method for automatic login verification according to claim 6, characterized in that: The first electronic device obtains the SMS verification code, including: The first electronic device obtains the SMS verification code from the database based on the mobile phone number.

8. The method for automatic login verification according to claim 1, characterized in that: The first electronic device sends a third request for automatic login to the second electronic device, including: The first electronic device receives the start-up operation and sends the third request for automatic login to the second electronic device.

9. The method for automatic login verification according to claim 8, characterized in that: The first electronic device comprises a login interface, and a start button is provided on the login interface. The start operation includes: a pressing operation on the start button.

10. The method for automatic login verification according to claim 8, characterized in that: In response to the third request, the second electronic device performs login verification, including: The second electronic device receives the message body from the first electronic device; Determining the real identity of the user based on the message body; If the user identity is authentic, the second electronic device sends the instruction to allow login to the first electronic device; if not, the second electronic device sends the instruction to not allow login to the first electronic device.

11. A method for automatic login, applied to a first electronic device, characterized in that: include: Get username, password and mobile phone number; Sending a first request for obtaining a picture verification code to a second electronic device, so that the second electronic device generates returned data based on the first request, wherein the first request includes the user name and the password; receiving data returned by the second electronic device, acquiring a picture identifier containing a picture verification code based on the returned data, and acquiring the picture verification code based on the picture identifier; Sending a second request for obtaining a text message verification code to the second electronic device, the second request including the user name, the password, the picture identifier, the picture verification code and the mobile phone number; Obtaining the SMS verification code, and sending a third request for automatic login to the second electronic device, so that the second electronic device performs a login verification, wherein the third request includes the user name, the password, the picture identifier, the picture verification code, the mobile phone number, and the SMS verification code; After receiving the instruction of allowing login from the second electronic device, the system is automatically logged in.

12. A method for verifying automatic login, applied to a second electronic device, characterized in that: include: In response to a first request sent by a first electronic device, the second electronic device generates returned data and sends the returned data to the first electronic device, so that the first electronic device obtains a picture identification containing a picture verification code based on the returned data, wherein the first request includes a user name and a password; In response to a second request sent by the first electronic device, the second electronic device generates the SMS verification code based on the mobile phone number so that the first electronic device obtains the SMS verification code, the second request including the user name, the password, the picture identifier, the picture verification code and the mobile phone number; In response to the third request sent by the first electronic device, the second electronic device performs a login verification and feeds back an instruction on whether to allow the login, so that the first electronic device automatically logs into the system, the third request including the user name, the password, the picture ID, the picture verification code, the mobile phone number and the SMS verification code.

13. An automatic login verification system, characterized in that: include: a first electronic device, the first electronic device being configured to execute the method of claim 11; A second electronic device, wherein the second electronic device is configured to execute the method according to claim 12.

14. An automatic login device, characterized in that: include: Acquisition module, used to obtain username, password and mobile phone number; a sending module, configured to send a first request for obtaining a picture verification code to a second electronic device, so that the second electronic device generates returned data in response to the first request and sends the returned data to the electronic device, wherein the first request includes the user name and the password; The sending module sends a second request for obtaining a text message verification code to the second electronic device, so that the second electronic device generates the text message verification code based on the mobile phone number in response to the second request, wherein the second request includes the user name, the password, the picture identifier, the picture verification code and the mobile phone number; The acquisition module acquires the SMS verification code, and the sending module sends a third request for automatic login to the second electronic device, so that the second electronic device responds to the third request, performs login verification, and feeds back an instruction on whether to allow login, wherein the third request includes the user name, the password, the picture identifier, the picture verification code, the mobile phone number, and the SMS verification code; A processing module, used for obtaining a picture identifier containing the picture verification code based on the returned data, and obtaining the picture verification code based on the picture identifier; The login module is used to automatically log into the system after receiving the login permission instruction fed back by the second electronic device.

15. A computer storage medium, characterized in that The computer storage medium stores a computer program, and when the computer program is executed by the processor, the processor executes the method executed by the first electronic device according to claim 11, or executes the method executed by the second electronic device according to claim 12.

16. A computer program product, characterized in that When the computer program product is run on an electronic device, the electronic device executes the method executed by the first electronic device as claimed in claim 11, or executes the method executed by the second electronic device as claimed in claim 12.