Login method and device, computer device and storage medium
By obtaining the mobile communication mask of the terminal and querying the local encrypted number, the corresponding login page is displayed, which solves the problem of accidental registration under dual SIM dual standby, realizes accurate user registration and login, and improves login efficiency and business experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ZHAOLIAN CONSUMER FINANCE CO LTD
- Filing Date
- 2022-12-14
- Publication Date
- 2026-07-31
AI Technical Summary
In existing technologies, obtaining the user's mobile phone number from the user's SIM card data channel can easily lead to erroneous registration, especially in the case of dual SIM dual standby, resulting in inconsistent account information for users in internet finance applications.
By obtaining the current mobile communication mask, querying the locally stored encrypted mobile communication number, displaying the corresponding login page, and showing a registration success message if the user has not registered, the system completes user registration and login using the locally stored encrypted mobile communication number and the current mobile communication mask, reducing accidental registrations.
This effectively reduced the number of users registering incorrectly, improved the transaction experience, ensured the consistency of account information, and increased login efficiency.
Smart Images

Figure CN116233847B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of mobile internet technology, and in particular to a login method, device, computer equipment, storage medium, and computer program product. Background Technology
[0002] With the development of smartphones and mobile internet technology, more and more applications are installed on smartphones. To facilitate user access, one-click login technology has emerged. One-click login combines registration and login functions, eliminating the need for users to manually enter their mobile phone number, username, password, and SMS verification code. Registration and login can be completed with just one click.
[0003] In traditional technology, the mobile data network of the operator is used to obtain and verify the user's mobile phone number based on the user's mobile phone data traffic channel to achieve one-click login.
[0004] However, the phone number obtained from the user's SIM card data channel can only be the phone number of the current data card. Due to the widespread use of dual SIM dual standby, if the phone number of the current data card is not the registered phone number, one-click login can easily lead to users registering by mistake. Summary of the Invention
[0005] Therefore, it is necessary to provide a login method, device, computer equipment, computer-readable storage medium, and computer program product that can reduce false registrations in response to the above-mentioned technical problems.
[0006] Firstly, this application provides a login method. The method includes: in response to a login operation of a target application, obtaining a current mobile communication mask; the current mobile communication mask refers to the mask of the current mobile communication number currently accessing the mobile data network; the terminal has a first user identification card and a second user identification card; the current mobile communication number is either a first mobile communication number or a second mobile communication number, wherein the first mobile communication number is the mobile communication number of the first user identification card, and the second mobile communication number is the mobile communication number of the second user identification card; if no locally stored encrypted mobile communication number is found, displaying a first login page corresponding to the target application, and displaying the current mobile communication mask on the first login page; the encrypted mobile communication number is obtained by encrypting the target mobile communication number registered in the target application and verified with real-name authentication; the target mobile communication number is either the first mobile communication number or the second mobile communication number; in response to a login operation triggered by the first login page, if it is determined that the current mobile communication number has not registered an account in the target application, displaying a registration success message; the registration success message is displayed in both successful registration and successful login scenarios.
[0007] Secondly, this application also provides a login device. The device includes: a mask acquisition module, used to acquire a current mobile communication mask in response to a login operation of a target application; the current mobile communication mask refers to the mask of the current mobile communication number currently accessing the mobile data network; the terminal has a first user identification card and a second user identification card; the current mobile communication number is either a first mobile communication number or a second mobile communication number, the first mobile communication number being the mobile communication number of the first user identification card, and the second mobile communication number being the mobile communication number of the second user identification card; a display module, used to display a first login page corresponding to the target application when no locally stored encrypted mobile communication number is found, and to display the current mobile communication mask on the first login page; the encrypted mobile communication number is obtained by encrypting the target mobile communication number registered in the target application and verified with real-name authentication; the target mobile communication number is either the first mobile communication number or the second mobile communication number; a login verification module, used to display a registration success message in response to a login operation triggered by the first login page, if it is determined that the current mobile communication number has not registered an account in the target application; the registration success message is displayed in both successful registration and successful login scenarios.
[0008] In some embodiments, the login verification module is further configured to: in response to a login operation triggered by the first login page, send a login request to the application server corresponding to the target application; the application server, in response to the login request, obtains the current mobile communication number, and, if it is determined that the current mobile communication number has not registered an account in the target application, registers and logs in based on the current mobile communication number; receives registration and login success information returned by the application server, and displays a registration success prompt message.
[0009] In some embodiments, the login device is further configured to: upon successful login, display a real-name authentication page corresponding to the target application; the real-name authentication page is used for real-name authentication; upon successful real-name authentication, encrypt the current mobile communication mask to obtain the encrypted mobile communication number; and save the encrypted mobile communication number.
[0010] In some embodiments, the login device is further configured to: when a locally stored encrypted mobile communication number is found, decrypt and mask the encrypted mobile communication number to generate a target mobile communication mask; compare the target mobile communication mask with the current mobile communication mask; and if the comparison is consistent, display a first login page corresponding to the target application and display the current mobile communication mask on the first login page.
[0011] In some embodiments, the login device is further configured to: display a second login page corresponding to the target application in the event of a discrepancy, and display the target mobile communication mask on the second login page.
[0012] In some embodiments, the login device is further configured to: when the second login page is displayed, send a verification information acquisition request to the server in response to a verification information acquisition operation triggered by the second login page; receive the verification information returned by the server in response to the verification information acquisition request; and display a login success message in response to an operation of inputting the verification information into the second login page.
[0013] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps in the login method described above.
[0014] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the steps in the login method described above.
[0015] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps in the login method described above.
[0016] The aforementioned login method, apparatus, computer equipment, storage medium, and computer program product all contain a first user identification card and a second user identification card in the terminal. That is, in the case of dual SIM dual standby, in response to the login operation of the target application, the current mobile communication mask is obtained, and the locally stored encrypted mobile communication number is queried. Based on whether the encrypted mobile communication number is stored locally, it is determined whether to display the first login page of the target application. In other words, the user registration and login are completed by using the locally stored encrypted mobile communication number and the obtained current mobile communication mask, thereby reducing the possibility of accidental user registration. Attached Figure Description
[0017] Figure 1 This is a diagram illustrating the application environment of the login method in one embodiment;
[0018] Figure 2 This is a flowchart illustrating the login method in one embodiment;
[0019] Figure 3 This is a schematic diagram of the process for saving an encrypted mobile communication number in one embodiment;
[0020] Figure 4 This is a flowchart illustrating the login method in another embodiment;
[0021] Figure 5 This is a structural block diagram of the login device in one embodiment;
[0022] Figure 6 This is an internal structural diagram of a computer device in one embodiment;
[0023] Figure 7 This is a diagram of the internal structure of a computer device in another embodiment. Detailed Implementation
[0024] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0025] The login method provided in this application embodiment can be applied to, for example, Figure 1 The application environment shown includes terminal 102, application server 104, and carrier server 106. Terminal 102, application server 104, and carrier server 106 communicate via a network. A data storage system stores the data that application server 104 needs to process. The data storage system can be integrated onto application server 104 or hosted on a cloud or other network server. The target application is installed on terminal 102, and application server 104 is the backend server corresponding to the target application.
[0026] Specifically, in response to a login operation of the target application, terminal 102 sends a gateway number retrieval request to operator server 106 to obtain the current mobile communication mask returned by operator server 106 in response to the gateway number retrieval request; the current mobile communication mask refers to the mask of the current mobile communication number currently accessing the mobile data network; terminal 102 has a first user identification card and a second user identification card; the current mobile communication number is either the first mobile communication number or the second mobile communication number, where the first mobile communication number is the mobile communication number of the first user identification card, and the second mobile communication number is the mobile communication number of the second user identification card; if terminal 102 does not find the locally stored encrypted mobile communication number, it displays... The target application has a first login page, which displays the current mobile communication mask. The encrypted mobile communication number is obtained by encrypting the target mobile communication number registered in the target application and verified with real-name authentication. The target mobile communication number can be either the first mobile communication number or the second mobile communication number. In response to the login operation triggered by the first login page, terminal 102 sends a login request to application server 104 and receives registration and login success information returned by application server 104 in response to the login request. If it is determined that the current mobile communication number is not registered in the target application, a registration success message is displayed. The registration success message is displayed upon successful registration and login. The gateway number retrieval request is a request sent to operator server 106 to obtain the current mobile communication mask.
[0027] The terminal 102 can be, but is not limited to, various mobile terminals, specifically including at least one of mobile phones, tablets, and smartwatches. The terminal 102 can be a terminal device with an operating system, such as Android, iOS, or other possible operating systems. The application server 104 can be implemented using a standalone server or a server cluster consisting of multiple servers.
[0028] In some embodiments, such as Figure 2 As shown, a login method is provided, which is applied to... Figure 1 Taking terminal 102 as an example, the explanation includes the following steps:
[0029] Step 202: In response to the login operation of the target application, obtain the current mobile communication mask; the current mobile communication mask refers to the mask of the current mobile communication number currently accessing the mobile data network; the terminal has a first user identification card and a second user identification card; the current mobile communication number is either the first mobile communication number or the second mobile communication number, the first mobile communication number is the mobile communication number of the first user identification card, and the second mobile communication number is the mobile communication number of the second user identification card.
[0030] The target application is the application to be logged into. The mobile communication number is a number used for mobile communication, including SMS, telephone, and other communication services. It is also called a mobile phone number. The mobile communication mask is obtained by masking the mobile communication number. For example, if the mobile communication number is 11 digits long, digits 4 to 7 can be masked to obtain the corresponding mobile communication mask. The current mobile communication mask refers to the mask corresponding to the current mobile communication number, which is the mobile communication number currently accessing the mobile data network. The mobile data network is a network provided by mobile communication operators and can be used for mobile terminals to access the internet. Mobile communication operators are service providers that offer mobile communication services, including China Mobile, China Unicom, and China Telecom.
[0031] A Subscriber Identity Module (SIM) card, also known as a Subscriber Identity Module (SIM) card, stores the digital mobile phone user's information, including their phonebook, on its chip. This information is used by the Global System for Mobile Communications (GSM) network to authenticate the user and encrypt voice messages during calls. Each SIM card is uniquely associated with a mobile phone number. A terminal may contain at least two SIM cards: a primary SIM card and a secondary SIM card. The SIM card corresponding to the current mobile phone number can also be called a data SIM card.
[0032] Specifically, the terminal has the target application installed. In response to a login operation to the target application, and upon detecting that the terminal has activated mobile data network, the terminal obtains the current mobile communication mask from the operator's server via a traffic channel. This traffic channel is the communication channel corresponding to the mobile data network. The operator's server can identify the current mobile number through this channel and generate the corresponding current mobile communication mask. The terminal can use the authentication SDK (Software Development Kit) to send a gateway number retrieval request to the operator's server and receive the current mobile communication mask returned by the operator's server in response. The authentication SDK is the software toolkit used in the target application to send requests to the operator's server. The operator's server is the server of a mobile communication operator, such as China Mobile's server.
[0033] Step 204: If no encrypted mobile communication number is found in the local storage, display the first login page corresponding to the target application and display the current mobile communication mask on the first login page; the encrypted mobile communication number is obtained by encrypting the target mobile communication number registered in the target application and verified with real name; the target mobile communication number is either the first mobile communication number or the second mobile communication number.
[0034] The encrypted mobile communication number is obtained by encrypting the target mobile communication number. The target mobile communication number refers to a mobile communication number that has been registered and verified with real-name authentication in the target application, and can be either the first mobile communication number or the second mobile communication number. The login page is the page used for registration and login in the target application. The login page displays the mobile communication number used for login. The login page includes a first login page, which displays the current mobile communication mask. When the terminal responds to the login operation triggered by the first login page, if the login verification is successful on the application server, a login success message is displayed, and the login is completed without any other operations. Therefore, the first login page is also called the one-click login page.
[0035] Specifically, after obtaining the current mobile communication mask, the terminal can query whether an encrypted mobile communication number is stored locally. If no encrypted mobile communication number is found locally, the terminal displays the first login page corresponding to the target application and displays the current mobile communication mask on the first login page.
[0036] In some embodiments, when a terminal finds a locally stored encrypted mobile communication number, it can obtain the encrypted mobile communication number, decrypt and mask it to generate a target mobile communication mask, and then compare the target mobile communication mask with the current mobile communication mask. Based on the comparison result, the terminal determines the login page corresponding to the target application. For example, if the comparison matches, the terminal displays the first login page corresponding to the target application.
[0037] Step 206: In response to the login operation triggered by the first login page, if it is determined that the current mobile communication number has not registered an account in the target application, a registration success message is displayed; the registration success message is displayed when both registration and login are successful.
[0038] The registration success message is a message used by the terminal to indicate that the account registration was successful.
[0039] Specifically, in response to a login operation triggered by the first login page, the terminal sends a login request to the application server. The application server, in response to the login request, verifies the current mobile phone number. If the application server determines that the current mobile phone number is not registered with an account in the target application, it registers and logs in based on the current mobile phone number and returns registration and login success information to the terminal. The terminal receives the registration and login success information returned by the application server, displays a registration success message, and then the terminal can display other pages in the target application. Here, the login request is a request sent by the terminal to the application server for login verification, and the registration and login success information is generated by the application server upon confirming successful registration and login.
[0040] In some embodiments, if the application server determines that the current mobile communication number has already registered an account in the target application, it performs login verification. If the application server determines that the login is successful, it returns login success information to the terminal. This login success information is generated by the application server upon confirming successful login. The terminal receives the login success information returned by the application server and displays a login success notification. Then, the terminal can display other pages in the target application.
[0041] In the above login method, the terminal contains a first user identification card and a second user identification card. That is, in the case of dual SIM dual standby, in response to the login operation of the target application, the current mobile communication mask is obtained, and the locally stored encrypted mobile communication number is queried. Based on whether the encrypted mobile communication number is stored locally, it is determined whether to display the first login page of the target application. In other words, the user registration and login are completed by using the locally stored encrypted mobile communication number and the obtained current mobile communication mask, which reduces the possibility of users registering incorrectly.
[0042] In some embodiments, the terminal has a first user identification card and a second user identification card. The first mobile communication number of the first user identification card is the current mobile communication number, and the second mobile communication number of the second user identification card is the mobile communication number of an account already registered in the target application. That is, the current mobile communication number is not the mobile communication number of the registered account. In existing one-click login, when the terminal detects that a mobile data network is enabled, it obtains the current mobile communication mask, displays the first login page, and displays the current mobile communication mask on the first login page. In this case, it is easy to cause users to register incorrectly. If the target application is an application in the field of internet finance, incorrect registration will cause the loan, credit limit, and other information displayed on the page corresponding to the currently logged-in account in the target application to be inconsistent, causing users to be unable to borrow or repay loans, affecting the transaction business experience, and affecting the conversion of borrowing and repayment. The login method provided in this application, such as Figure 4As shown, by comparing the current mobile communication mask with the locally stored mobile communication number, the login page to be displayed is determined based on the comparison result. If the comparison is consistent, the first login page is displayed; if the comparison is inconsistent, the system switches to the second login page, namely the dynamic code login page, which uses the locally stored mobile communication number for verification code login. This achieves automatic switching of the login page, thereby effectively reducing the problem of users registering incorrectly and improving the transaction business experience.
[0043] In some embodiments, step 206 further includes: in response to a login operation triggered by the first login page, sending a login request to the application server corresponding to the target application; the application server responding to the login request, obtaining the current mobile communication number, and, if it is determined that the current mobile communication number has not registered an account in the target application, registering and logging in based on the current mobile communication number; receiving registration and login success information returned by the application server, and displaying a registration success prompt message.
[0044] The login request is sent from the terminal to the application server for account registration and login. Registration and login success messages are generated by the application server upon confirming successful registration and login.
[0045] Specifically, in response to a login operation triggered by the first login page, the terminal first obtains authentication information, and then sends a login request carrying the authentication information to the application server corresponding to the target application. The application server, in response to the terminal's login request, sends a number retrieval request carrying the authentication information to the operator server. The operator server, in response to the number retrieval request, verifies the authentication information. If the verification is successful, it returns the current mobile communication number to the application server. The application server performs registration verification on the received current mobile communication number. If it determines that the current mobile communication number is not registered with an account in the target application, the application server registers and logs in based on the current mobile communication number. If both registration and login are successful, it returns registration and login success information to the terminal. The terminal receives the registration and login success information returned by the application server and displays a registration success message. The authentication information obtained by the terminal from the operator server is also called an authentication token, used by the application server to obtain the mobile communication number from the operator server.
[0046] In some embodiments, the authentication information may be an encrypted string generated by the operator's server in response to the terminal's authentication request. In response to a login operation triggered by the first login page, the terminal uses the authentication SDK to send an authentication request to the operator's server via a traffic channel. In response to the authentication request, the operator generates authentication information corresponding to the current mobile communication number and returns the authentication information to the terminal. The authentication request is a request sent by the terminal to the operator's server to authenticate the current mobile communication number.
[0047] In this embodiment, in response to the login operation triggered by the first login page, a login request is sent to the application server corresponding to the target application. The application server responds to the login request, obtains the current mobile communication number, and, if it determines that the current mobile communication number has not registered an account in the target application, performs registration and login based on the current mobile communication number. The terminal receives the registration and login success information returned by the application server and displays a registration success prompt message. Thus, without any other operations, the registration and login of the current mobile communication number are quickly completed, improving the efficiency of login.
[0048] In some embodiments, the login method further includes: if the login is successful, displaying the real-name authentication page corresponding to the target application; the real-name authentication page is used for real-name authentication; if the real-name authentication is successful, encrypting the current mobile communication number to obtain an encrypted mobile communication number; and saving the encrypted mobile communication number.
[0049] The real-name authentication page is used for real-name authentication, such as recognizing and verifying a user's identity information or facial image to complete the real-name authentication.
[0050] Specifically, upon successful login, the terminal displays the real-name authentication page corresponding to the target application, obtains real-name authentication information through this page, and sends a real-name authentication request carrying the authentication information to the application server in response to the real-name authentication operation. Upon receiving a successful real-name authentication response from the application server, the terminal confirms successful authentication. The terminal can then encrypt the current mobile phone number, for example, using symmetric encryption. The terminal randomly generates a key and uses it to encrypt the current mobile phone number, obtaining an encrypted mobile phone number, which is then saved. Alternatively, the terminal can send the encrypted mobile phone number to the application server, which can then save the received encrypted mobile phone number.
[0051] In some embodiments, such as Figure 3As shown, upon successful login, the terminal responds to the "Modify Number" operation in the target application by displaying a "Modify Number" page. This page retrieves the updated mobile phone number. The "Modify Number" operation refers to changing the mobile phone number associated with the currently logged-in account to another mobile phone number. For example, if the currently logged-in mobile phone number is the first one, it can be changed to the second mobile phone number. The "Modify Number" page is the interface for modifying the mobile phone number. After confirming successful number modification, the terminal checks if the logged-in account has been verified with real-name authentication. If the account has, the terminal retrieves the updated mobile phone number, encrypts it, and saves the encrypted mobile phone number locally. If the account has not been verified, the terminal does not encrypt or save the updated mobile phone number.
[0052] In this embodiment, when real-name authentication is successful, the current mobile communication number is encrypted to obtain an encrypted mobile communication number, and the encrypted mobile communication number is saved. This allows the current mobile communication number to be compared with the target mobile communication mask corresponding to the encrypted mobile communication number when logging in to the target application later, thereby reducing the probability of false registration.
[0053] In some embodiments, the login method further includes: if a locally stored encrypted mobile communication number is found, decrypting and masking the encrypted mobile communication number to generate a target mobile communication mask; comparing the target mobile communication mask with the current mobile communication mask; if the comparison is consistent, displaying a first login page corresponding to the target application, and displaying the current mobile communication mask on the first login page.
[0054] The target mobile communication mask is obtained by masking the target mobile communication number.
[0055] Specifically, when the terminal finds a locally stored encrypted mobile communication number, it retrieves the encrypted mobile communication number, decrypts it to obtain the target mobile communication number, and then masks the target mobile communication number to obtain the target mobile communication mask. The terminal compares the target mobile communication mask with the current mobile communication mask. If they match, the terminal displays the first login page corresponding to the target application, and displays the current mobile communication mask on the first login page. Then, the terminal responds to the login operation triggered by the first login page. The specific login process can be referred to the login process on the first login page described above, and will not be repeated here.
[0056] In this embodiment, when a locally stored encrypted mobile communication number is found, the encrypted mobile communication number is decrypted and masked to generate a target mobile communication mask. Then, the target mobile communication mask is compared with the current mobile communication mask. If they match, the first login page corresponding to the target application is displayed, and the current mobile communication mask is displayed on the first login page, thereby enabling quick login and improving login efficiency.
[0057] In some embodiments, the login method further includes: displaying a second login page corresponding to the target application in the event of a discrepancy, and displaying the target mobile communication mask on the second login page.
[0058] The login page also includes a second login page, which displays the target mobile communication mask. In response to the operation of entering verification information into the second login page, a login success message is displayed, and the login is completed. Therefore, the second login page is also called the verification code login page.
[0059] Specifically, the terminal compares the target mobile communication mask with the current mobile communication mask. If they do not match, the terminal displays a second login page corresponding to the target application, showing the target mobile communication mask on the second login page. A mismatch indicates that the mobile communication number already registered in the target application is the target mobile communication number, not the current mobile communication number.
[0060] In this embodiment, by displaying a second login page when the target mobile communication mask is inconsistent with the current mobile communication mask, the login page is automatically switched, thereby reducing the possibility of users accidentally registering when logging in with an unregistered mobile communication number. Furthermore, the target mobile communication mask is displayed on the second login page without requiring manual input from the user, further improving login efficiency.
[0061] In some embodiments, the login method further includes: when displaying a second login page, sending a verification information retrieval request to a server in response to a verification information retrieval operation triggered by the second login page; receiving verification information returned by the server in response to the verification information retrieval request; and displaying a login success message in response to an operation of entering verification information into the second login page.
[0062] The verification information retrieval request is a request carrying the target mobile communication number. It is a request used by the terminal to obtain verification information from the application server. The verification information is generated by the application server based on the verification information retrieval request and is also known as a verification code. For example, it can be a 4-digit SMS verification code composed of letters or numbers.
[0063] Specifically, when the terminal displays a second login page, it shows the target mobile communication mask on the second login page. In response to the verification information retrieval operation triggered by the second login page, the terminal sends a verification information retrieval request carrying the target mobile communication number to the application server. The target mobile communication number is obtained by decrypting an encrypted mobile communication number. The application server generates corresponding verification information based on the target mobile communication number, caches the verification information, and then calls the SMS platform provided by the mobile communication operator to return the verification information to the terminal via SMS message. The SMS platform is the platform corresponding to the SMS service provided by the mobile communication operator, through which the server can send SMS messages to the terminal. Upon receiving the verification information, the terminal, in response to the operation of entering verification information on the second login page, sends a login request carrying the target mobile communication number and verification information to the application server. The application server verifies the target mobile communication mask and verification information. If the mobile communication number corresponding to the target mobile communication mask has already registered an account in the target application, and the received verification information is the same as the cached verification information, the application server returns a login success message to the terminal.
[0064] In this embodiment, when the second login page is displayed, in response to the verification information retrieval operation triggered by the second login page, a verification information retrieval request is sent to the server. In response to the operation of entering verification information into the second login page, a login success prompt message is displayed, thereby realizing login.
[0065] In some embodiments, such as Figure 4 As shown, after obtaining the current mobile communication mask (i.e., the data SIM card mask phone number), the terminal obtains the locally stored encrypted mobile communication number (i.e., the encrypted phone number), decrypts and masks the encrypted phone number to obtain the target mobile communication mask (i.e., the target mask phone number). Then, the target mask phone number is compared with the data SIM card mask phone number. If they match, the first login page (one-click login page) is displayed, showing the data SIM card mask phone number. If they don't match, the second login page (verification code login page) is displayed, showing the target mask phone number. Therefore, if the data SIM card mask phone number is already registered, users can quickly log in via the one-click login page. If the data SIM card mask phone number is not registered but another registered phone number exists, the target mask phone number can be displayed on the verification code login page. This allows users to log in using locally stored phone numbers, reducing the probability of accidental registration and eliminating the need for manual phone number input, further improving login efficiency.
[0066] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to 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 embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0067] Based on the same inventive concept, this application also provides a login device for implementing the login method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more login device embodiments provided below can be found in the limitations of the login method described above, and will not be repeated here.
[0068] In some embodiments, such as Figure 5 As shown, a login device is provided, including: a mask acquisition module 502, a display module 504, and a login verification module 506, wherein: the mask acquisition module 502 is used to acquire the current mobile communication mask in response to a login operation of the target application; the current mobile communication mask refers to the mask of the current mobile communication number currently accessing the mobile data network; the terminal has a first user identification card and a second user identification card; the current mobile communication number is either the first mobile communication number or the second mobile communication number, the first mobile communication number is the mobile communication number of the first user identification card, and the second mobile communication number is the mobile communication number of the second user identification card; the display module 504 is used for... If no locally stored encrypted mobile communication number is found, the first login page corresponding to the target application is displayed, and the current mobile communication mask is displayed on the first login page; the encrypted mobile communication number is obtained by encrypting the target mobile communication number that has registered an account in the target application and passed real-name authentication; the target mobile communication number is either the first mobile communication number or the second mobile communication number; the login verification module 506 is used to respond to the login operation triggered by the first login page, and if it is determined that the current mobile communication number has not registered an account in the target application, a registration success prompt message is displayed; the registration success prompt message is displayed when both registration and login are successful.
[0069] In some embodiments, the login verification module 506 is further configured to: in response to a login operation triggered by the first login page, send a login request to the application server corresponding to the target application; in response to the login request, the application server obtains the current mobile communication number, and if it is determined that the current mobile communication number has not registered an account in the target application, registers and logs in based on the current mobile communication number; receives the registration and login success information returned by the application server, and displays a registration success prompt message.
[0070] In some embodiments, the login device is further configured to: upon successful login, display the real-name authentication page corresponding to the target application; the real-name authentication page is used for real-name authentication; upon successful real-name authentication, encrypt the current mobile communication mask to obtain an encrypted mobile communication number; and save the encrypted mobile communication number.
[0071] In some embodiments, the login device is further configured to: when a locally stored encrypted mobile communication number is found, decrypt and mask the encrypted mobile communication number to generate a target mobile communication mask; compare the target mobile communication mask with the current mobile communication mask; and if the comparison is consistent, display a first login page corresponding to the target application and display the current mobile communication mask on the first login page.
[0072] In some embodiments, the login device is further configured to: display a second login page corresponding to the target application in the event of a discrepancy, and display the target mobile communication mask on the second login page.
[0073] In some embodiments, the login device is further configured to: when displaying a second login page, send a verification information retrieval request to the server in response to a verification information retrieval operation triggered by the second login page; receive verification information returned by the server in response to the verification information retrieval request; and display a login success message in response to an operation of entering verification information into the second login page.
[0074] The modules in the aforementioned login device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0075] In some embodiments, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 6As shown, this computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores relevant data related to the login method. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When the computer program is executed by the processor, it implements a login method.
[0076] In some embodiments, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 7 As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a login method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0077] Those skilled in the art will understand that Figure 6 and Figure 7The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0078] In some embodiments, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the login method described above.
[0079] In some embodiments, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the login method described above.
[0080] In some embodiments, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the login method described above.
[0081] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0082] 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. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0083] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0084] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A login method characterized by, The method, executed by a terminal, includes: In response to a login operation of the target application, the current mobile communication mask is obtained; the current mobile communication mask refers to the mask of the current mobile communication number currently accessing the mobile data network; the terminal has a first user identification card and a second user identification card; the current mobile communication number is either the first mobile communication number or the second mobile communication number, the first mobile communication number is the mobile communication number of the first user identification card, and the second mobile communication number is the mobile communication number of the second user identification card; If a locally stored encrypted mobile communication number is found, the encrypted mobile communication number is decrypted and masked to generate a target mobile communication mask; the encrypted mobile communication number is obtained by encrypting the target mobile communication number that has been registered and authenticated with real name in the target application; the target mobile communication mask is compared with the current mobile communication mask; If the comparison is consistent, the first login page corresponding to the target application is displayed, and the current mobile communication mask is displayed on the first login page; In the event of a discrepancy, a second login page corresponding to the target application is displayed, and the target mobile communication mask is displayed on the second login page; when the second login page is displayed, in response to a verification information retrieval operation triggered by the second login page, a verification information retrieval request is sent to the application server; the verification information returned by the application server in response to the verification information retrieval request is received; in response to an operation of inputting the verification information into the second login page, a login success message is displayed. If no locally stored encrypted mobile communication number is found, the first login page corresponding to the target application is displayed, and the current mobile communication mask is displayed on the first login page; the encrypted mobile communication number is obtained by encrypting the target mobile communication number that has registered an account and passed real-name authentication in the target application; the target mobile communication number is either the first mobile communication number or the second mobile communication number; In response to a login operation triggered by the first login page, if it is determined that the current mobile communication number has not registered an account in the target application, a registration success message is displayed; the registration success message is displayed in the case of successful registration and successful login.
2. The method of claim 1, wherein, In response to a login operation triggered by the first login page, if it is determined that the current mobile communication number has not registered an account in the target application, the displayed registration success message includes: In response to a login operation triggered by the first login page, a login request is sent to the application server corresponding to the target application; in response to the login request, the application server obtains the current mobile communication number, and if it is determined that the current mobile communication number has not registered an account in the target application, it registers and logs in based on the current mobile communication number; Receive registration and login success information returned by the application server and display a registration success message.
3. The method of claim 2, wherein, The method further includes: Upon successful login, the real-name authentication page corresponding to the target application is displayed; the real-name authentication page is used for real-name authentication. If the real-name authentication is successful, the current mobile communication number is encrypted to obtain the encrypted mobile communication number; The encrypted mobile communication number is saved.
4. The method according to claim 1, characterized in that, The method further includes: The authentication software development kit is used to send a gateway number retrieval request to the operator server, and the current mobile communication mask is received from the operator server in response to the gateway number retrieval request.
5. The method according to claim 4, characterized in that, The method further includes: The current mobile communication number is encrypted using symmetric encryption to obtain the encrypted mobile communication number.
6. A login device, characterized in that, The device includes: The mask acquisition module is used to acquire the current mobile communication mask in response to the login operation of the target application; the current mobile communication mask refers to the mask of the current mobile communication number currently accessing the mobile data network; the terminal has a first user identification card and a second user identification card; the current mobile communication number is either the first mobile communication number or the second mobile communication number, the first mobile communication number is the mobile communication number of the first user identification card, and the second mobile communication number is the mobile communication number of the second user identification card; The display module is used to display the first login page corresponding to the target application when no locally stored encrypted mobile communication number is found, and to display the current mobile communication mask on the first login page; the encrypted mobile communication number is obtained by encrypting the target mobile communication number that has registered an account and passed real-name authentication in the target application; the target mobile communication number is either the first mobile communication number or the second mobile communication number; The login verification module is used to respond to a login operation triggered by the first login page, and if it is determined that the current mobile communication number has not registered an account in the target application, display a registration success message; the registration success message is displayed in both successful registration and successful login cases; The device is further configured to: upon finding a locally stored encrypted mobile communication number, decrypt and mask the encrypted mobile communication number to generate a target mobile communication mask; the encrypted mobile communication number is obtained by encrypting a target mobile communication number registered in the target application and authenticated with real name; compare the target mobile communication mask with the current mobile communication mask; if the comparison matches, display a first login page corresponding to the target application and display the current mobile communication mask on the first login page; if the comparison does not match, display a second login page corresponding to the target application and display the target mobile communication mask on the second login page; when the second login page is displayed, in response to a verification information retrieval operation triggered by the second login page, send a verification information retrieval request to the application server; receive verification information returned by the application server in response to the verification information retrieval request; and in response to an operation of inputting the verification information into the second login page, display a login success message.
7. The apparatus according to claim 6, characterized in that, The login verification module is further configured to: in response to a login operation triggered by the first login page, send a login request to the application server corresponding to the target application; in response to the login request, the application server obtains the current mobile communication number, and if it is determined that the current mobile communication number has not registered an account in the target application, registers and logs in based on the current mobile communication number; receive the registration and login success information returned by the application server, and display a registration success prompt message.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.