Login method and device related to user account, electronic equipment and storage medium thereof

By configuring the preset account library and user codes in the server, the problem of lack of correlation between user login methods is solved, convenient and safe management of user accounts is realized, and a unified platform is provided to manage multiple account types and information.

CN118677658APending Publication Date: 2024-09-20王晓光
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410727401.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

In the existing technology, when users log in to a website or application software, there is a lack of correlation between various login methods, which makes account management difficult and it is difficult to provide a more secure or convenient login method.

Method used

By configuring a preset account library in the server, user codes and account tables are set for each user, and management of multiple account types and account information is supported. Users can set and use different account types and information to log in according to their needs.

Benefits of technology

It realizes the convenience and security of user login, reduces the complexity of account management and the risk of loss or leakage, and provides a unified platform to manage multiple account types and information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118677658A
    Figure CN118677658A
Patent Text Reader

Abstract

The invention discloses a login method related to a user account, which is applied to a server, and comprises the following steps: receiving a user login request sent by user equipment, the user login request comprising a first account type and first account information; querying a user code corresponding to the first account information in a preset account library, and obtaining a user account table corresponding to the user code; wherein the preset account library comprises a plurality of user codes, one user code corresponds to one user account table, and one user account table corresponds to at least one account type and at least one piece of account information; when the account state corresponding to the first account type in the user account table is an available state and the account state of the first account information is an available state, verifying the first account information; and if the verification of the first account information is passed, sending a user login response to the user equipment to allow the user to perform login operation through the first account information. And the user can log in through any account information in the user account table.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet account technology, and specifically to a login method, device, equipment and storage medium involving a user account. Background Art

[0002] At present, more and more users have multiple types of numbers or accounts in their life and work, such as: mobile phone numbers, WeChat accounts, corporate WeChat accounts, QQ numbers, Taobao accounts, Alipay accounts, etc.; in addition, the same user may also have multiple numbers or accounts of a single type, such as: multiple mobile phone numbers, multiple WeChat accounts, etc.

[0003] At this time, when a user logs in to a website or application software, he or she can use the account registered on the website or application software to log in (for example: user name and password), or he or she can use a commonly used third-party interface to log in (for example: WeChat login, Alipay login, etc.).

[0004] However, each service website or application software often provides a single type of account login in its login method. For example, when user A logs in to a website or application software, he often uses any of the following methods to log in: username and password login, mobile phone number verification code login, WeChat account login, face recognition login, fingerprint recognition login. There is often a lack of correlation between the various login methods. For users, there are problems such as difficulty in managing accounts corresponding to various login methods (for example, unnoticed loss, unnoticed password leakage, password leakage, etc.); for the operators of service websites or application software, it is difficult to provide users with safer or more convenient login methods.

[0005] Therefore, there is an urgent need for a login method to solve one or more of the above problems. Summary of the invention

[0006] The present application provides a login method, apparatus, device and storage medium involving user accounts, which can enable users to have a user account table, in which various account types and various account information are contained, so that users can log in using any account type or any account information, and also provide convenience for user account management of the service platform.

[0007] A first aspect of the present application provides a login method involving a user account, which is applied to a server and includes: receiving a user login request sent by a user device, the user login request including a first account type and first account information; the first account information corresponds to the first account type; in a preset account library, querying a user code corresponding to the first account information, and obtaining a user account table corresponding to the user code; wherein the preset account library includes multiple user codes, one user code corresponds to a user account table, and one user account table corresponds to at least one account type and at least one account information; when the account status corresponding to the first account type in the user account table is an available status, and the account status of the first account information is an available status, verifying the first account information; if the first account information passes the verification, sending a user login response to the user device to allow the user to perform a login operation through the first account information.

[0008] In the above, the server is configured with a preset account library, in which a user account table is configured for each user, and a user code is configured for each user; the user code is the user's unique identifier in the server, and there can be multiple types of accounts in the user account table, and each account type can have multiple account information; the account information is generally a user name and password, or it can be face information or fingerprint information, etc. The account type can be configured as needed, for example, it can be an account type directly registered on the website, or an account type logged in through a third-party interface, or an account type of a cooperative website; the user can also directly see the user account table, and the user can set the account type and account information according to their own needs. The server will verify the account type and account information to make the user's login more convenient and secure.

[0009] In one possible manner, in a preset account library, before querying the user code corresponding to the first account information and obtaining the user account table corresponding to the user code, the method also includes constructing the preset account library, and the construction method is as follows: receiving an account registration request sent by a user through the user device, the account registration request including a first account type and first account information; setting a user code for the user according to the account registration request; configuring a user account table of the user according to the user code, the user account table including the first account type, the first account information, the account status of the first account type, and the account status of the first account information; the account status includes an available status and an unavailable status; and storing the user account table in the preset account library.

[0010] The above discloses a method for constructing a preset account library. When a user registers, a user code is configured for the user. The user number can be configured in a variety of ways, such as: the user number obtained after hashing the user's input login information, or the user code can be configured for the user according to a pre-configured serial number; the user code is to facilitate the rapid location of the user's various accounts in the preset account library.

[0011] In one possible embodiment, the method also includes: receiving an account setting request sent by the user through the user device, the account setting request including a second account type and second account information, the second account information corresponding to the second account type; obtaining the user code corresponding to the user; configuring the user account table corresponding to the user code, the user account table including the second account type, the second account information, the account status of the second account type, and the account status of the second account information; sending an account setting response to the user device to display the configured user account table to the user through the user device.

[0012] The above discloses a method for adding account types and account information to the user account table, which is applicable to a variety of user scenarios, for example: a user has multiple mobile phone numbers and multiple mobile devices, some mobile phone numbers are work numbers, some mobile phone numbers are private numbers, some mobile devices are work phones, and some mobile devices are private phones; the user account table can suggest a mapping relationship between these accounts and user numbers, and various accounts can be set up for logging in, eliminating the trouble of switching accounts back and forth, and the difficulty of finding an account password after forgetting it. You can directly use an account that has not been lost or forgotten or can be used directly to log in.

[0013] In one possible embodiment, the method also includes: receiving an account setting request sent by the user through the user device, the account setting request including third account information, and the third account information is the first account type; obtaining the user code corresponding to the user; configuring the user account table corresponding to the user code, the user account table including the first account type, the third account information and the account status of the third account information; sending an account setting response to the user device to display the configured user account table to the user through the user device.

[0014] The above discloses a method for adding account information for any account type (eg, the first account type), providing a more convenient account setting method.

[0015] In one possible embodiment, the method further includes: when the account status corresponding to the first account type in the user account table is an available status and the account status of the first account information is an unavailable status, not allowing the first account information to perform a login operation; and sending an exception message to the user device, wherein the exception message is used to prompt the user that the first account information is abnormal.

[0016] The above discloses the abnormal reminder when the account information is in an unavailable state. The unavailable state is generally set by the user. For example, when a user's account information is lost or forgotten, the account information can be set to an unavailable state. The unavailable state can also be modified after the server determines that the server detects an abnormal login environment for the account information (for example: abnormal IP, abnormal login time, abnormal login device, etc.), the account status of the account information will also be modified to an unavailable state.

[0017] In one possible embodiment, the method also includes: when the account status corresponding to the first account type in the user account table is an available status and the account status of the first account information is an unavailable status, receiving a request sent by the user device to log in with the third account information; in the preset account library, querying the user code corresponding to the third account information, and obtaining the user account table corresponding to the user code; when the account status of the third account information is an available status, verifying the third account information; if the third account information passes the verification, sending a user login response to the user device to allow the user to log in through the third account information.

[0018] It is disclosed above that when a certain account information (such as the first account information) is unavailable, but the account type corresponding to the account information is available, other account information corresponding to the account type (such as the third account information) can be used to log in, providing further convenience for the user's login.

[0019] In one possible embodiment, the method also includes: receiving an account configuration request sent by the user device, the account configuration request being to configure the account status of the first account type to an unavailable state; and according to the account configuration request, configuring the account status of the first account type to an unavailable state, so that one or more account information corresponding to the first account type are all in an unavailable state.

[0020] It is disclosed above that a user can set a certain account type to an unavailable state, in which case the user can log in using another account type.

[0021] According to a second aspect of the present application, there is provided a login device involving a user account, wherein the login device is a server, and the server includes a receiving unit, a processing unit, and a sending unit; wherein the receiving unit is used to receive a user login request sent by a user device, and the user login request includes a first account type and a first account information; the first account information corresponds to the first account type; the processing unit is used to query the user code corresponding to the first account information in a preset account library, and obtain a user account table corresponding to the user code; wherein the preset account library includes multiple user codes, one user code corresponds to a user account table, and one user account table corresponds to at least one account type and at least one account information; the processing unit is also used to verify the first account information when the account status corresponding to the first account type in the user account table is an available status and the account status of the first account information is an available status; the sending unit is used to send a user login response to the user device if the processing unit verifies the first account information, so as to allow the user to perform a login operation through the first account information.

[0022] In the third aspect of the present application, an electronic device is provided, including a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are both used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes any one of the methods described above.

[0023] In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, any of the methods described above is executed.

[0024] To sum up, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: the server is configured with a preset account library, in which a user account table is configured for each user, and a user code is configured for each user; the user code is the user's unique identifier in the server, and there can be multiple types of accounts in the user account table, and each account type can have multiple account information; the account information is generally a user name and password, and it can also be face information or fingerprint information, etc. The account type can be configured as needed, for example, it can be an account type directly registered on the website, or an account type logged in through a third-party interface, or an account type of a cooperative website; the user can also directly see the user account table, and the user can set the account type and account information according to his or her needs. The server will verify the account type and account information to make the user's login more convenient and secure. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 A flowchart of a login method involving a user account disclosed in this application specification;

[0026] Figure 2 A flowchart of a registration method involving a user account disclosed in this application specification;

[0027] Figure 3 A flowchart of a method for setting a user account disclosed in this application specification;

[0028] Figure 4 A flowchart of another method for setting a user account disclosed in this application specification;

[0029] Figure 5 A schematic diagram of the structure of a login device involving a user account disclosed in this application specification;

[0030] Figure 6 A schematic diagram of the structure of an electronic device involving a user account disclosed in this application specification. DETAILED DESCRIPTION

[0031] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0032] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.

[0033] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0034] The user device in this application is an electronic device that can connect to the Internet and display web pages or download application software, such as a mobile phone, tablet computer, personal computer, etc.

[0035] The method disclosed in this specification has a wide range of usage scenarios, and solves the account login problem for users who have multiple different types of accounts and multiple different account information. For example: in the chip field, the confidentiality requirements are high. In chip research and development, the mobile phones used in the working environment and the non-working environment are often different, that is, at least two mobile phone numbers are required; when a user needs to visit a certain industry website to view information, the user often registers both mobile phone numbers for accounts (if the user does not register accounts for the two mobile phone numbers, the user needs to remember the registered accounts; when the account is leaked or lost, it can only be retrieved by password, and the retrieval process is relatively cumbersome, especially in scenarios with high requirements for account security levels, and during the retrieval waiting period, the account is in an uncontrollable state, which may cause information leakage or loss), so as to facilitate users to log in to the industry website; at this time, the same user has two user accounts for the industry website, and the information of the two user accounts is not interoperable, which is easy to cause inconvenience to the user.

[0036] In addition, for various core sensors, chips, appearances of mobile phones, as well as the appearances, various sensors and functional testing of new energy vehicles and other research and development scenarios, different user devices may be used in different venues, and then multiple mobile phone numbers may be used; at this time, as discussed above, whether the user only registers one account or multiple accounts, it may cause trouble for visiting a certain industry website or using a certain industry application software.

[0037] Based on this, this specification discloses a login method involving a user account. The method is applied to a server, which can be a server of a website or a server of an application software, and the specific usage scenario of the server is not limited. This specification discloses an interaction method between a server and a user device, and a user device is an electronic device used by a user.

[0038] Login method: Figure 1 As shown, steps S101-S104 are included.

[0039] S101. Receive a user login request sent by a user device, where the user login request includes a first account type and first account information; the first account information corresponds to the first account type.

[0040] The first account type and the first account information are obtained after the user registers on the website or application software in advance. For the convenience of description, the following only takes the website as an example for explanation.

[0041] S102. In a preset account library, query the user code corresponding to the first account information, and obtain a user account table corresponding to the user code; wherein the preset account library includes multiple user codes, one user code corresponds to one user account table, and one user account table corresponds to at least one account type and at least one account information.

[0042] In the above step, before searching the preset account library for the user code corresponding to the first account information and obtaining the user account table corresponding to the user code, the preset account library needs to be constructed.

[0043] Specifically, the method for constructing the preset account library is as follows: Figure 2 As shown, steps S201-S204 are included.

[0044] S201. Receive an account registration request sent by a user through the user device, where the account registration request includes a first account type and first account information.

[0045] S202: According to the account registration request, set a user code for the user.

[0046] At this time, the user code is the unique identifier of the user on the website, which is often obtained using the UUID algorithm. The user code can also be a serial number of a certain length, which is assigned to the user by the server; these are essentially binding or mapping user information to the user code.

[0047] The difference is that in this application, in order to further bind or associate user information with the user code, the user information (such as name, gender, education, etc.) can be hashed to obtain a hash value, and the hash value can be used as the user code of the user; this method can directly establish a corresponding relationship between the user information and the user code, and it is also convenient for the server to configure a unique user code for the user. Since the user code is invisible to the user and is used as the user's unique identifier on the website, it is more convenient for the server to use the hash calculation method.

[0048] For example, the server can set a multi-digit serial number from 000000000 to 123456789, each serial number is a user code, and each time a new user is added, a user code is assigned to the new user in the order of the serial number; in this case, a corresponding relationship between the serial number and the user information needs to be established. The user code can also be a hash string obtained by hashing the information filled in by the user; according to the principle of the hash algorithm, any difference between the information of any two users can be reflected in the hash string, and the hash string is more convenient as a user code.

[0049] S203: Configure a user account table for the user according to the user code, wherein the user account table includes the first account type, the first account information, the account status of the first account type, and the account status of the first account information. The account status includes an available status and an unavailable status.

[0050] S204: Store the user account table in the preset account library.

[0051] At this time, the user account tables of multiple different users are stored together to form a preset account library. For the server, the preset account library will be stored in a local security area.

[0052] For the user account table, please refer to Table 1 below.

[0053] In other words, the login methods for various account information disclosed in this specification are associated with each other, that is, various account types and different account information are associated through user numbers. This association provides great convenience for user login.

[0054] Table 1

[0055]

[0056] As shown in Table 1 above, not only the account status of the account type and the account status of the account information can be set by the user; the user can also set the type of account type by himself; of course, the server will also perform initial configuration. The structure of any user account table in the preset account library can also be shown in Table 2 below.

[0057] Table 2

[0058]

[0059] When the account status of an account type is in an available state, the account information under this account type may not necessarily be in an available state. The account status of the account information under this account type is still determined by the account status of the account information corresponding to this account type. However, when the account status of a certain account type is in an unavailable state, any account information under this account type is in an unavailable state.

[0060] As shown in Table 2 above, for example: when the account type is a third-party authorized account, the third-party authorized account is in an available state, but the account status of cooperative account a is in an unavailable state; at this time, cooperative account a is still in an unavailable state. However, when the account type is a face account, the account status of the face account is in an unavailable state, but the account status of face account c is in an available state; at this time, face account c is still in an unavailable state.

[0061] It should be noted that, in general, the permissions between different account types are the same, that is, any account information under any account type can log in to the server; and, after logging in, any account information can modify the account status of other account types and other account information. Of course, users can set one or more accounts as master accounts and other accounts as slave accounts according to personal needs. The master account can modify the account status of the slave account, but the slave account cannot modify the account status of the master account. This setting method will remind users to pay attention to the security storage of the master account username and password.

[0062] S103: When the account status corresponding to the first account type in the user account table is in an available state and the account status of the first account information is in an available state, verifying the first account information;

[0063] The verification of account information is a conventional verification, such as the verification of username and password, or the verification of face information or fingerprint information. The specific verification method is not described in detail.

[0064] S014. If the first account information is verified, a user login response is sent to the user device to allow the user to log in using the first account information.

[0065] In the above, the server is configured with a preset account library, in which a user account table is configured for each user, and a user code is configured for each user; the user code is the user's unique identifier in the server, and there can be multiple types of accounts in the user account table, and each account type can have multiple account information; the account information is generally a user name and password, or it can be face information or fingerprint information, etc. The account type can be configured as needed, for example, it can be an account type directly registered on the website, or an account type logged in through a third-party interface, or an account type of a cooperative website; the user can also directly see the user account table, and the user can set the account type and account information according to their own needs. The server will verify the account type and account information to make the user's login more convenient and secure.

[0066] In another example, when the account status corresponding to the first account type in the user account table is available, and the account status of the first account information is unavailable, the first account information is not allowed to perform a login operation; and an exception message is sent to the user device, and the exception message is used to prompt the user that the first account information is abnormal.

[0067] The above discloses an abnormal reminder when the account information is in an unavailable state. The unavailable state is generally set by the user himself. For example, when a certain account information of the user is lost or forgotten, the account information can be set to an unavailable state.

[0068] In addition, the unused status can also be modified after the server determines that when the server detects that the login environment of the account information is abnormal (for example, abnormal IP, abnormal login time, abnormal login device, etc.), the account status of the account information will also be modified to an unavailable state. For example: when the IP used by a certain account information is set to one or more IP addresses, when the account information has an abnormal IP login, the server automatically sets the account status of the account information to an unavailable state. The judgment of abnormalities of commonly used login devices and login times is the same as the judgment method of abnormal IP of account information; users can set the login time and login device of a certain account information; thereby ensuring the safe use of account information.

[0069] At the same time, users can also make overall settings for the login device, login IP, and login time of a certain account type. After the overall settings, all account information under this account type will be considered as the overall settings. For example: the user sets the login conditions of the account type of the third-party authorized account in Table 2 above to login device A and login device B, the login IP is set to IP range C, and the login time is set to 8:00am-6:00pm. At this time, the login conditions of cooperative account 1, cooperative account 2...cooperative account a are all login devices A and login device B, the login IP is set to IP range C, and the login time is set to 8:00am-6:00pm.

[0070] In the above user account table, the user has the need to register or add a new account type and account information. Figure 3 As shown, steps S301-S304 are included.

[0071] Step S301: receiving an account setting request sent by the user through the user device, wherein the account setting request includes a second account type and second account information, and the second account information corresponds to the second account type.

[0072] The second account type is an account type different from the first account type, but there is no limitation on the specific account type setting of the first account type or the second account type; as discussed above, users can set it according to their own needs.

[0073] Step S302: Obtain the user code corresponding to the user.

[0074] Step S303: configure the user account table corresponding to the user code, wherein the user account table includes the second account type, the second account information, the account status of the second account type, and the account status of the second account information.

[0075] In actual usage scenarios, any account type or any account information corresponds to a specific usage scenario; for example, office A in a certain city and office B in another city, or residence A and another residence B, may have different account information.

[0076] Step S304: Send an account setting response to the user device, so as to display the configured user account table to the user through the user device.

[0077] The above discloses a method for adding account types and account information to the user account table, which is applicable to a variety of user scenarios, for example: a user has multiple mobile phone numbers and multiple mobile devices, some mobile phone numbers are work numbers, some mobile phone numbers are private numbers, some mobile devices are work phones, and some mobile devices are private phones; the user account table can suggest a mapping relationship between these accounts and user numbers, and various accounts can be set up for logging in, eliminating the trouble of switching accounts back and forth, and the difficulty of finding an account password after forgetting it. You can directly use an account that has not been lost or forgotten or can be used directly to log in.

[0078] In addition, if the user needs to add account information of a certain account type, he can refer to Figure 4 .like Figure 4 As shown, steps S401-S404 are included.

[0079] Step S401: receiving an account setting request sent by the user through the user device, wherein the account setting request includes third account information, and the third account information is of the first account type.

[0080] Step S402: Obtain the user code corresponding to the user.

[0081] Step S403: configure the user account table corresponding to the user code, wherein the user account table includes the first account type, the third account information, and the account status of the third account information.

[0082] Step S404: Send an account setting response to the user device, so as to display the configured user account table to the user through the user device.

[0083] The above discloses a method for adding account information for any account type (eg, the first account type), providing a more convenient account setting method.

[0084] In one example, the method also includes: when the account status corresponding to the first account type in the user account table is an available status and the account status of the first account information is an unavailable status, receiving a request sent by the user device to log in with the third account information; in the preset account library, querying the user code corresponding to the third account information, and obtaining the user account table corresponding to the user code; when the account status of the third account information is an available status, verifying the third account information; if the third account information passes the verification, sending a user login response to the user device to allow the user to log in through the third account information.

[0085] It should be noted that during the verification process of the third-party account information, if the specific usage time or login device or login IP of the third-party account information is configured, these configuration information will also be verified synchronously.

[0086] It is disclosed above that when a certain account information (such as the first account information) is unavailable, but the account type corresponding to the account information is available, other account information corresponding to the account type (such as the third account information) can be used to log in, providing further convenience for the user's login.

[0087] The user can configure the status of the account type and the status of the account information. It should be noted that when the user configures the status of the account type to be unavailable, all account information corresponding to the account type is in an unavailable state. The specific configuration method is: the server receives an account configuration request sent by the user device, and the account configuration request is to configure the account status of the first account type to be unavailable; according to the account configuration request, the account status of the first account type is configured to be unavailable, so that one or more account information corresponding to the first account type is in an unavailable state.

[0088] Furthermore, when the account status of a certain account type is available, and the user configures a certain account information corresponding to the account type as unavailable; other account information corresponding to the account type can still perform login operations, only the account information in the account type that is in the unavailable state cannot perform login operations.

[0089] It is disclosed above that a user can set a certain account type to an unavailable state, in which case the user can log in using another account type.

[0090] As discussed above, the server of this application is configured with a preset account library, in which a user account table is configured for each user, and a user code is configured for each user; the user code is the user's unique identifier in the server, and there can be multiple types of accounts in the user account table, and each account type can have multiple account information; the account information is generally a user name and password, or it can be facial information or fingerprint information, etc. The account type can be configured as needed, for example, it can be an account type directly registered on the website, or an account type logged in through a third-party interface, or an account type of a cooperative website; the user can also directly see the user account table, and the user can set the account type and account information according to their own needs. The server will verify the account type and account information to make the user's login more convenient and secure.

[0091] The present application also discloses a login device involving a user account, wherein the login device is a server. Figure 5 As shown, the server includes a receiving unit 501 , a processing unit 502 and a sending unit 503 .

[0092] The receiving unit 501 is used to receive a user login request sent by a user device, where the user login request includes a first account type and first account information; the first account information corresponds to the first account type.

[0093] The processing unit 502 is used to query the user code corresponding to the first account information in the preset account library, and obtain the user account table corresponding to the user code; wherein the preset account library includes multiple user codes, one user code corresponds to one user account table, and one user account table corresponds to at least one account type and at least one account information.

[0094] The processing unit 503 is further configured to verify the first account information when the account status corresponding to the first account type in the user account table is in an available state and the account status of the first account information is in an available state.

[0095] The sending unit 504 is configured to send a user login response to the user device if the processing unit verifies the first account information successfully, so as to allow the user to perform a login operation using the first account information.

[0096] In one example, the preset account library is constructed as follows: a receiving unit 501 receives an account registration request sent by a user through the user device, wherein the account registration request includes a first account type and first account information; a processing unit 502 sets a user code for the user according to the account registration request; the processing unit 502 also configures a user account table of the user according to the user code, wherein the user account table includes the first account type, the first account information, the account status of the first account type, and the account status of the first account information; the account status includes an available status and an unavailable status; the processing unit 502 also stores the user account table in the preset account library.

[0097] In one example, a receiving unit 501 receives an account setting request sent by the user through the user device, the account setting request including a second account type and second account information, the second account information corresponding to the second account type; a processing unit 502 obtains the user code corresponding to the user; the processing unit 502 also configures the user account table corresponding to the user code, the user account table including the second account type, the second account information, the account status of the second account type, and the account status of the second account information; a sending unit 503 is used to send an account setting response to the user device so as to display the configured user account table to the user through the user device.

[0098] In one example, a receiving unit 501 receives an account setting request sent by the user through the user device, wherein the account setting request includes third account information, and the third account information is the first account type; a processing unit 502 obtains the user code corresponding to the user; the processing unit 502 configures the user account table corresponding to the user code, wherein the user account table includes the first account type, the third account information, and the account status of the third account information; a sending unit 503 sends an account setting response to the user device to display the configured user account table to the user through the user device.

[0099] In one example, when the account status corresponding to the first account type in the user account table is an available status, and the account status of the first account information is an unavailable status, the processing unit 502 does not allow the first account information to perform a login operation; the sending unit 503 sends exception information to the user device, and the exception information is used to prompt the user that the first account information is abnormal.

[0100] In one example, when the account status corresponding to the first account type in the user account table is an available status, and the account status of the first account information is an unavailable status, the receiving unit 501 receives a request sent by the user device to log in with the third account information; in the preset account library, the processing unit 502 queries the user code corresponding to the third account information, and obtains the user account table corresponding to the user code; when the account status of the third account information is an available status, the processing unit 502 verifies the third account information; if the third account information passes the verification, the sending unit 503 sends a user login response to the user device to allow the user to log in through the third account information.

[0101] In one example, the receiving unit 501 receives an account configuration request sent by the user device, and the account configuration request is to configure the account status of the first account type to an unavailable state; the processing unit 502 configures the account status of the first account type to an unavailable state according to the account configuration request, so that one or more account information corresponding to the first account type are all in an unavailable state.

[0102] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0103] The specification also discloses a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, any of the above methods is executed.

[0104] This embodiment also discloses an electronic device, referring to Figure 6 The electronic device may include: at least one processor 601 , at least one communication bus 602 , a user interface 603 , a network interface 604 , and at least one memory 605 .

[0105] The communication bus 602 is used to realize the connection and communication between these components.

[0106] The user interface 603 may include a display screen (Display) and a camera (Camera), and the optional user interface 603 may also include a standard wired interface and a wireless interface.

[0107] The network interface 604 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0108] Among them, the processor 601 may include one or more processing cores. The processor 601 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 605, and calling data stored in the memory 605. Optionally, the processor 601 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 601 can integrate one or more combinations of a central processing unit 601 (Central Processing Unit, CPU), an image processor 601 (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 601, and it can be implemented by a single chip.

[0109] Among them, the memory 605 may include a random access memory 605 (Random Access Memory, RAM), and may also include a read-only memory 605 (Read-Only Memory). Optionally, the memory 605 includes a non-transitory computer-readable storage medium. The memory 605 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 605 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above various method embodiments, etc. The memory 605 may also be optionally at least one storage device located away from the aforementioned processor 601. As shown in the figure, the memory 605 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program for a method for calculating engineering construction costs.

[0110] exist Figure 6 In the electronic device shown, the user interface 603 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 601 can be used to call the application program of the method for calculating the engineering construction cost stored in the memory 605. When executed by one or more processors 601, the electronic device executes one or more methods in the above-mentioned embodiments.

[0111] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.

[0112] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

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

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

[0115] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0116] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory 605. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory 605 and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned memory 605 includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk.

[0117] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, it will be easy for those skilled in the art to think of other embodiments of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field that are not recorded in the present disclosure. The description and examples are regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A method for logging in to a user account, characterized in that: Applied in a server, the method comprises: receiving a user login request sent by a user device, wherein the user login request includes a first account type and first account information; the first account information corresponds to the first account type; In a preset account library, query the user code corresponding to the first account information, and obtain a user account table corresponding to the user code; wherein the preset account library includes multiple user codes, one user code corresponds to one user account table, and one user account table corresponds to at least one account type and at least one account information; When the account status corresponding to the first account type in the user account table is in an available state, and the account status of the first account information is in an available state, verifying the first account information; If the first account information is verified, a user login response is sent to the user device to allow the user to log in using the first account information.

2. The login method according to claim 1, characterized in that: Before searching the preset account library for the user code corresponding to the first account information and obtaining the user account table corresponding to the user code, the method further includes constructing the preset account library in the following manner: Receiving an account registration request sent by a user through the user device, wherein the account registration request includes a first account type and first account information; According to the account registration request, setting a user code for the user; configuring a user account table for the user according to the user code, the user account table including the first account type, the first account information, the account status of the first account type, and the account status of the first account information; The account status includes an available status and an unavailable status; The user account table is stored in the preset account library.

3. The login method according to claim 2, characterized in that: The method further comprises: receiving an account setting request sent by the user through the user device, the account setting request including a second account type and second account information, the second account information corresponding to the second account type; Obtaining the user code corresponding to the user; configuring the user account table corresponding to the user code, wherein the user account table includes the second account type, the second account information, the account status of the second account type, and the account status of the second account information; An account setting response is sent to the user device, so as to display the configured user account table to the user through the user device.

4. The login method according to claim 2, characterized in that: The method further comprises: receiving an account setting request sent by the user through the user device, wherein the account setting request includes third account information, and the third account information is of the first account type; Obtaining the user code corresponding to the user; configuring the user account table corresponding to the user code, wherein the user account table includes the first account type, the third account information, and the account status of the third account information; An account setting response is sent to the user device, so as to display the configured user account table to the user through the user device.

5. The login method according to any one of claims 1 to 4, characterized in that: The method further comprises: When the account status corresponding to the first account type in the user account table is in an available state, and the account status of the first account information is in an unavailable state, the first account information is not allowed to perform a login operation; Sending abnormal information to the user device, where the abnormal information is used to prompt the user that the first account information is abnormal.

6. The login method according to claim 5, characterized in that: The method further comprises: When the account status corresponding to the first account type in the user account table is an available state, and the account status of the first account information is an unavailable state, receiving a request sent by the user device to log in using the third account information; In the preset account database, query the user code corresponding to the third account information, and obtain the user account table corresponding to the user code; When the account status of the third account information is in an available state, verifying the third account information; If the third account information is verified, a user login response is sent to the user device to allow the user to log in using the third account information.

7. The login method according to claim 1 or 3, characterized in that: The method further comprises: receiving an account configuration request sent by the user equipment, wherein the account configuration request is to configure the account status of the first account type to an unavailable state; According to the account configuration request, the account status of the first account type is configured as an unavailable state, so that one or more account information corresponding to the first account type are all in an unavailable state.

8. A login device for a user account, characterized in that: The login device is a server, which includes a receiving unit, a processing unit and a sending unit; wherein, The receiving unit is configured to receive a user login request sent by a user device, wherein the user login request includes a first account type and first account information; the first account information corresponds to the first account type; The processing unit is configured to query a preset account library for a user code corresponding to the first account information, and obtain a user account table corresponding to the user code; wherein the preset account library includes a plurality of user codes, one user code corresponds to one user account table, and one user account table corresponds to at least one account type and at least one account information; The processing unit is further configured to verify the first account information when the account status corresponding to the first account type in the user account table is in an available state and the account status of the first account information is in an available state; The sending unit is configured to send a user login response to the user device if the processing unit verifies the first account information successfully, so as to allow the user to perform a login operation using the first account information.

9. An electronic device, characterized in that: It includes a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are both used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes the method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 7 is executed.

Citation Information

Cited By

  • Mode recognition method and device, VCI diagnosis equipment and storage medium

    CN119536235A

  • Account intercommunication method, device and equipment and computer readable medium

    CN119544308A