CN112905992B - Intelligent login method and device for local area network, electronic equipment and storage medium - Google Patents

Intelligent login method and device for local area network, electronic equipment and storage medium Download PDF

Info

Publication number
CN112905992B
CN112905992B CN202110281324.7A CN202110281324A CN112905992B CN 112905992 B CN112905992 B CN 112905992B CN 202110281324 A CN202110281324 A CN 202110281324A CN 112905992 B CN112905992 B CN 112905992B
Authority
CN
China
Prior art keywords
mobile terminal
local code
login
information
host device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110281324.7A
Other languages
Chinese (zh)
Other versions
CN112905992A (en
Inventor
夏文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Oribo Technology Co Ltd
Original Assignee
Shenzhen Oribo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Oribo Technology Co Ltd filed Critical Shenzhen Oribo Technology Co Ltd
Priority to CN202110281324.7A priority Critical patent/CN112905992B/en
Publication of CN112905992A publication Critical patent/CN112905992A/en
Application granted granted Critical
Publication of CN112905992B publication Critical patent/CN112905992B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication
    • G06F21/46Structures or tools for the administration of authentication by designing passwords or checking the strength of passwords
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/41User authentication where a single sign-on provides access to a plurality of computers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2133Verifying human interaction, e.g., Captcha

Abstract

The application discloses an intelligent login method and device of a local area network, electronic equipment and a storage medium, and relates to the technical field of the Internet. The method comprises the following steps: receiving a login request which is sent by a mobile terminal and carries login information; when the login information contains preset type information, performing identity authentication on the mobile terminal based on an identity authentication strategy corresponding to the preset type information and the login information, wherein the preset type information is a first local code of the host equipment; and if the identity authentication is successful, allowing the mobile terminal to log in the host equipment and establishing communication connection with the mobile terminal. Therefore, the account security when logging in the host equipment is improved.

Description

Intelligent login method and device for local area network, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to an intelligent login method and apparatus for a local area network, an electronic device, and a storage medium.
Background
With the rapid development of mobile internet technology, it has become popular in life to control smart devices through mobile terminals. In the related art, the mobile terminal may control the smart device through a host device (e.g., a smart gateway, a smart panel, etc.) in a local area network in which the smart device is located. Before the mobile terminal controls the intelligent device through the host device, the mobile terminal needs to log in the host device, and generally, the mobile terminal can log in the host device through server account information registered by Application software (APP) on the mobile terminal and a password corresponding to the account information.
Disclosure of Invention
In view of this, the present application provides an intelligent login method and apparatus for a local area network, an electronic device, and a storage medium.
In a first aspect, an embodiment of the present application provides an intelligent login method for a local area network, which is applied to a host device, and the method includes: receiving a login request which is sent by a mobile terminal and carries login information; when the login information contains preset type information, performing identity authentication on the mobile terminal based on an identity authentication strategy corresponding to the preset type information and the login information, wherein the preset type information is a first local code of the host equipment; and if the identity authentication is successful, allowing the mobile terminal to log in the host equipment and establishing communication connection with the mobile terminal.
In a second aspect, an embodiment of the present application provides an intelligent login method for a local area network, which is applied to a mobile terminal, and the method includes: acquiring a local code corresponding to host equipment to be logged in from at least one local code stored in advance, wherein the local code is acquired from a server in advance; and sending a login request to the host equipment based on a local area network, wherein the login request is used for requesting to login the host equipment so as to establish communication connection with the host equipment, and the login request comprises account information corresponding to the mobile terminal and a local code corresponding to the host equipment.
In a third aspect, an embodiment of the present application provides an intelligent login apparatus for a local area network, where the apparatus is applied to a host device, and the apparatus includes: the system comprises a login request receiving module, an identity authentication module and a communication establishing module. The login request receiving module is used for receiving a login request which is sent by the mobile terminal and carries login information; the identity authentication module is used for authenticating the identity of the mobile terminal based on an identity authentication strategy corresponding to the preset type information and the login information when the login information comprises the preset type information, wherein the preset type information is a first local code of the host equipment; and the communication establishing module is used for allowing the mobile terminal to log in the host equipment and establishing communication connection with the mobile terminal if the identity authentication is successful.
In a fourth aspect, an embodiment of the present application provides an intelligent login device for a local area network, which is applied to a mobile terminal, and the device includes: the device comprises a local code acquisition module and a login request sending module. The system comprises a local code acquisition module, a local code acquisition module and a local code acquisition module, wherein the local code acquisition module is used for acquiring a local code corresponding to host equipment to be logged in from at least one local code stored in advance, and the local code is acquired from a server in advance; and the login request sending module is used for sending a login request to the host equipment based on a local area network, wherein the login request is used for requesting to login the host equipment so as to establish communication connection with the host equipment, and the login request comprises account information corresponding to the mobile terminal and a local code corresponding to the host equipment.
In a fifth aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method for intelligent login of a local area network provided by the first aspect.
In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code may be invoked by a processor to execute the method for intelligently logging in a local area network provided in the first aspect.
In the scheme provided by the application, the host equipment receives a login request which is sent by the mobile terminal and carries login information; when the login information comprises preset type information, performing identity authentication on the mobile terminal based on an identity authentication strategy corresponding to the preset type information and the login information, wherein the preset type information is a first local code of the host equipment; and if the identity authentication is successful, allowing the mobile terminal to log in the host equipment and establishing communication connection with the mobile terminal. Therefore, the mobile terminal logs in the host device through the registered account information of the server and the local code generated by the host device, so that the leakage of the password information of the account of the mobile terminal in the server can be prevented, the security of the account of the mobile terminal in the server is low, and when the mobile terminal logs in the host device, the security of the account of the mobile terminal in the server when the mobile terminal logs in the host device is improved; the mobile terminal background sends the local code and the account information to request for logging in the host equipment, manual input by a user of the mobile terminal is not needed, and meanwhile, the convenience of logging in the host equipment is improved; since the host device updates the local code periodically and synchronizes to the server, the security of logging in the host device through the local code is also improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a schematic diagram of an application scenario provided in an embodiment of the present application.
Fig. 2 shows a flowchart of an intelligent login method for a local area network according to an embodiment of the present application.
Fig. 3 is a flowchart illustrating an intelligent login method for a local area network according to another embodiment of the present application.
Fig. 4 is a flowchart illustrating an intelligent login method for a local area network according to still another embodiment of the present application.
Fig. 5 is a flowchart illustrating an intelligent login method for a local area network according to still another embodiment of the present application.
Fig. 6 is a flowchart illustrating an intelligent login method for a local area network according to still another embodiment of the present application.
Fig. 7 is a flowchart illustrating an intelligent login method for a local area network according to still another embodiment of the present application.
Fig. 8 is a flowchart illustrating an intelligent login method for a local area network according to still another embodiment of the present application.
Fig. 9 shows a timing chart of an intelligent login method for a local area network according to an embodiment of the present application.
Fig. 10 is a block diagram of an intelligent login device for a local area network according to an embodiment of the present application.
Fig. 11 is a block diagram of an intelligent login device for a local area network according to another embodiment of the present application.
Fig. 12 is a block diagram of an electronic device for executing an intelligent login method for a local area network according to an embodiment of the present application.
Fig. 13 is a storage unit for storing or carrying program codes for implementing the intelligent login method for a local area network according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
In the related art, a mobile terminal logs in a host device based on a local area network generally by inputting a user name and a password, and the mode of manually inputting the password by the user is complicated, and the password may be leaked or maliciously stolen by a third party, which may cause a great risk to the security of a server or the host device.
In view of the above problems, the inventors propose an intelligent login method, an intelligent login device, an electronic device, and a storage medium for a local area network, which can perform authentication on a mobile terminal based on a local code authentication policy by determining whether received login information includes a local code and account information corresponding to the mobile terminal, and allow the mobile terminal to log in a host device and establish communication connection with the host device when the authentication is successful. This is described in detail below.
An application environment of the method for intelligently logging in a local area network provided by the embodiment of the present application is described below.
Referring to fig. 1, fig. 1 shows a network structure diagram of an application scenario of the present application, where the application scenario may include an intelligent login system 100 of a local area network, and the intelligent login system 10 of the local area network may include a mobile terminal 10, a server 20, a host device 30, and an intelligent device 50. The mobile terminal 10 and the host device 30 can perform data communication with the server 20 through a wide area network 41, the mobile terminal 10 can also perform data communication with the host device 30 through a local area network 42, the host device 30 is in communication connection with the intelligent device 50, and the host device 30 and the intelligent device 50 can perform data communication through a ZigBee network. In a case that the mobile terminal 10, the server 20, and the host device 30 are all connected to the wide area network 41, the mobile terminal 10 may transmit a control instruction to the host device 30 based on a server forwarding mechanism, and then control the intelligent device 50 to respond to the control instruction; in the case of only the lan 42, when both the mobile terminal 10 and the host device 30 access the lan 42, the mobile terminal 10 may directly transmit the control command to the host device 30 through the lan 42, and then control the smart device 50 to respond to the control command.
Referring to fig. 2, fig. 2 is a schematic flowchart of an intelligent login method for a local area network according to an embodiment of the present disclosure, and the method is applied to a host device. The intelligent login method for the local area network provided by the embodiment of the present application will be described in detail with reference to fig. 2. The intelligent login method of the local area network can comprise the following steps:
step S210: and receiving a login request carrying login information sent by the mobile terminal.
In this embodiment, the mobile terminal may log in the host device through the lan, and forward the control instruction sent by the mobile terminal to the intelligent device to be controlled through the host device, so as to control the intelligent device under the host device. The intelligent device and the host device can perform data communication through near field communication (such as Zigbee communication and ZigBee), and the host device and the mobile terminal can perform data communication through accessing a local area network (WiFi). However, before the mobile terminal controls the smart device through the host device, the mobile terminal needs to log in the host device through the local area network, the host device serves as a control instruction transfer station, the mobile terminal sends the control instruction to the host device, and the host device sends the control instruction to the corresponding smart device, so that the smart device is controlled. The mobile terminal can be an electronic device such as a mobile phone, a tablet computer or an intelligent watch; the host device can be an electronic device such as an intelligent gateway or an intelligent panel; the intelligent equipment can be intelligent household equipment such as an intelligent curtain, an intelligent door lock, an intelligent air conditioner or an intelligent lamp and the like; the server may be a cloud server, which is not limited in this embodiment.
Based on the above, the mobile terminal logs in the host device, sends a login request carrying login information to the host device, and correspondingly, the host device receives the login request sent by the mobile terminal. The login information may include preset type information and account information corresponding to the mobile terminal, the preset type information may be a Local Code, the Local Code may be obtained by the mobile terminal from a Local Code list obtained based on a wide area network login server, the Local Code list includes at least one Local Code (Local Code), and the Local Code is a Universal Unique Identifier (UUID) automatically generated by the host device; the login information may also include account information corresponding to the mobile terminal and password information corresponding to the account information, which is not limited in this embodiment.
Step S220: and when the login information contains preset type information, performing identity authentication on the mobile terminal based on an identity authentication strategy corresponding to the preset type information and the login information, wherein the preset type information is a first local code of the host equipment.
In this embodiment, after receiving a login request carrying login information sent by a mobile terminal, a host device may determine whether the login information includes preset type information. And if the mobile terminal contains the preset type information, performing identity authentication on the mobile terminal based on an identity authentication strategy corresponding to the preset type information and the login information, wherein the preset type information can be a first local code of the host equipment.
The login information may further include account information corresponding to the mobile terminal. The account information may be account information registered by a user through an Application (APP) on the mobile terminal for the first time, and the account information may be various, for example, a mobile phone number, a mailbox address, account information registered by third-party software, and the like.
Optionally, the authentication policy corresponding to the preset type information may be a local code authentication policy, and the mobile terminal is authenticated based on the local code authentication policy corresponding to the first local code and the account information corresponding to the mobile terminal. Judging whether account information corresponding to the mobile terminal exists in a pre-stored account list and whether the first local code is matched with a second local code corresponding to the host equipment which is stored currently, and if the account information corresponding to the mobile terminal exists in the account list and the first local code is matched with the second local code, determining that the identity verification of the mobile terminal is successful; and if the account information corresponding to the mobile terminal does not exist in the account list and/or the first local code is not matched with the second local code, determining that the identity authentication of the mobile terminal is unsuccessful.
Step S230: and if the identity authentication is successful, allowing the mobile terminal to log in the host equipment and establishing communication connection with the mobile terminal.
In this embodiment, if the account information corresponding to the mobile terminal exists in the account list and the first local code matches the second local code, it is determined that the authentication of the mobile terminal is successful, and further, the host device allows the mobile terminal to log in the host device and establish a communication connection with the mobile terminal.
The embodiment can prevent the problem of lower account security caused by leakage of the account password of the mobile terminal in the server, and improves the security of the account of the mobile terminal in the server when logging in the host equipment; meanwhile, the background of the mobile terminal requests to log in the host equipment by sending the local code and the account information without manual input of a user, so that the convenience of logging in the host equipment is improved.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating an intelligent login method for a local area network according to another embodiment of the present application, and the method is applied to a host device. The intelligent login method for the local area network provided by the embodiment of the present application will be described in detail below with reference to fig. 3. The intelligent login method of the local area network can comprise the following steps:
step S310: and receiving a login request which is sent by the mobile terminal and carries login information.
In the embodiment of the present application, step S310 may refer to the content of step S210 in the foregoing embodiment, and is not described herein again.
Step S320: when the login information contains the preset type information and account information corresponding to the mobile terminal, whether the account information corresponding to the mobile terminal exists in a pre-stored account list or not is judged, whether the first local code is matched with a second local code corresponding to the host equipment which is stored currently or not is judged, and the account list is obtained from a server in advance and comprises account information which has login permission of the host equipment.
In this embodiment, the account list may be obtained from the server when the host device establishes a communication connection with the server based on the wide area network, and the account list includes account information that has login authority of the host device.
The account information in the account list may have login permissions of different host devices, and permissions corresponding to the account information may be selected by a user when registering an account, for example, administrator permissions and general user permissions, and the number of intelligent devices that can be controlled corresponding to different permissions may be different. When the user selects the account as the administrator authority, all the intelligent devices in the house can be controlled, and when the user selects the account as the common user authority, only part of the intelligent devices in the house can be controlled, wherein the intelligent devices controllable by the common user authority account can be set by the user distribution of the administrator authority account.
After receiving the login request, the host device determines whether account information corresponding to the mobile terminal exists in a pre-stored account list, and in addition, determines whether a first local code in the login request matches a second local code of the host device itself, which is currently stored. The local code corresponding to the host device may be updated once every preset duration.
Step S330: and if the account information corresponding to the mobile terminal exists in the account list and the first local code is matched with the second local code, determining that the identity verification of the mobile terminal is successful, allowing the mobile terminal to log in the host equipment and establishing communication connection with the mobile terminal.
In this embodiment, when the account information in the login request received by the host device exists in the account list and the first local code matches the second local code, it may be determined that the identity of the mobile terminal is successfully verified, that is, the host device successfully authenticates the mobile terminal, and the mobile terminal has authority to log in the host device.
Illustratively, a login request received by the host device includes account information a and a local code 1, an account list in the host device includes account information a, account information B and account information C, and the currently stored local code corresponding to the host device is code 1, at this time, the account information a in the login request exists in the account list, and the local code 1 in the login request is matched with the currently stored local code corresponding to the host device as code 1, it is determined that the identity authentication of the mobile terminal is successful, and the mobile terminal is allowed to log in the host device and establish communication connection with the mobile terminal.
Step S340: and if the account information corresponding to the mobile terminal does not exist in the account list and/or the first local code is not matched with the second local code, determining that the identity verification of the mobile terminal is unsuccessful.
In one embodiment, when the account information in the login request does not exist in the account list, and the first local code does not match with the second local code, it is determined that the mobile terminal authentication is unsuccessful. For example, a login request received by the host device includes account information D and a first local code3, an account list in the host device includes account information a, account information B, and account information C, and a second local code corresponding to the currently stored host device is code 1, at this time, the account information D in the login request does not exist in the account list, and the first local code3 in the login request is not matched with the second local code corresponding to the currently stored host device as code 1, and it is determined that the mobile terminal is unsuccessful in authentication.
In another embodiment, when the account information in the login request does not exist in the account list and the first local code and the second local code in the login request match, the mobile terminal identity authentication is still determined to be unsuccessful. For example, a login request received by the host device includes account information D and a first local code 1, an account list in the host device includes account information a, account information B, and account information C, and a second local code corresponding to the currently stored host device is code 1, at this time, the account information D in the login request does not exist in the account list, and even if the first local code 1 in the login request matches the second local code of the currently stored host device as code 1, it is still determined that the mobile terminal is not successfully authenticated.
In a further embodiment, the mobile terminal identity authentication is also determined to be unsuccessful when the account information in the login request exists in the account list and the first local code in the login request does not match the second local code. For example, a login request received by the host device includes account information a and a first local code3, an account list in the host device includes account information a, account information B, and account information C, and a second local code corresponding to the currently stored host device is code 1, at this time, the account information a in the login request exists in the account list, the first local code3 in the login request is not matched with the second local code corresponding to the currently stored host device, and it is determined that the mobile terminal identity authentication is unsuccessful.
In some embodiments, in order to improve the security of logging in the host device, the host device may periodically update its second local code, and send the updated second local code to the server, where the server is configured to send the updated second local code corresponding to the host device to the mobile terminal when the mobile terminal successfully logs in the server.
In this embodiment, the host device may generate a new local code every preset time (e.g., a week), store the generated new local code, that is, update the original stored local code, and send the updated local code to the server connected to the host device through the wide area network, so that the server may update the local code list in time, and the mobile terminal may update the original stored local code of the host device in time.
Illustratively, the currently stored local code of the host device M is code 1, the newly generated local code thereof is code 2, and correspondingly, the host device updates and stores code 2 as the current local code and sends the updated local code 2 to the server, and the server may update the originally stored local code of the host device M based on the received updated local code 2.
In the embodiment, the host device updates the local code periodically and synchronizes to the server, so that the security of logging in the host device through the local code is improved.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating an intelligent login method for a local area network according to another embodiment of the present application, and the method is applied to a host device. The following describes the intelligent login method for a local area network provided in this embodiment in detail with reference to fig. 4. The intelligent login method of the local area network can also comprise the following steps:
step S410: and receiving a login request carrying login information sent by the mobile terminal.
Step S420: and when the login information contains preset type information, performing identity authentication on the mobile terminal based on an identity authentication strategy corresponding to the preset type information and the login information, wherein the preset type information is a first local code of the host equipment.
In the embodiment of the present application, the detailed implementation of steps S410 to S420 may refer to the content of steps S210 to S220 in the foregoing embodiment, and will not be described herein again.
Step S430: and if the identity authentication of the mobile terminal is unsuccessful and the account information corresponding to the mobile terminal exists in the account list, sending a password authentication instruction to the mobile terminal.
In this embodiment, the authentication is unsuccessful, and the account information in the login request exists in the account list, which may be that the mobile terminal fails to acquire the updated local code based on the wan login server in time, so that the host device may send a password authentication instruction to the mobile terminal to prompt the mobile terminal to send the password information corresponding to the account information, and perform secondary authentication on the mobile terminal sending the login request in an account password authentication manner.
Step S440: and receiving password information corresponding to the account information sent by the mobile terminal.
Step S450: and when the password information is matched with preset password information, allowing the mobile terminal to log in the host equipment and establish communication connection with the mobile terminal.
In this embodiment, after receiving the password information corresponding to the account information returned by the mobile terminal based on the password verification instruction, the host device may determine whether the password information matches the preset password information, and if so, allow the mobile terminal to log in the host device and establish a communication connection with the mobile terminal. The preset password information may be set by the host device when the host device leaves the factory, or may be set by the user for the host device, which is not limited in this embodiment.
Exemplarily, the mobile terminal sends account information a and a local code 1 to the host device, an account list in the host device includes account information a, account information B and account information C, and a currently stored local code corresponding to the host device is code 2, at this time, the account information a in the login request exists in the account list, but whether the local code 1 in the login request is not matched with the currently stored local code 2 corresponding to the host device is detected, the host device sends a password verification instruction to the mobile terminal, correspondingly, the mobile terminal receives the password verification instruction sent by the host device and responds to the password verification instruction, sends password information of the account information a to the host device to request to log in the host device again, and if the password information is matched with pre-stored password information in the host device, the mobile terminal is allowed to log in the host device and establish communication connection with the mobile terminal; and if not, not allowing the mobile terminal to log in the host equipment.
Referring to fig. 5, fig. 5 is a schematic flowchart illustrating an intelligent login method for a local area network according to another embodiment of the present application, and the method is applied to a host device. The intelligent login method for the local area network provided by the embodiment of the present application will be described in detail below with reference to fig. 5. The intelligent login method of the local area network can comprise the following steps:
step S510: and receiving a login request which is sent by the mobile terminal and carries login information.
In the embodiment of the present application, step S510 may refer to the content of step S210 in the foregoing embodiment, and is not described herein again.
Step S520: and judging whether the login information contains preset type information or not.
Step S530: and when the login information comprises the preset type information, performing identity authentication on the mobile terminal based on an identity authentication strategy corresponding to the preset type information and the login information, and judging whether the identity authentication is successful.
In this embodiment, it may be determined whether the login information includes preset type information, and a corresponding authentication policy may be determined based on a determination result, where the preset type information may be a first local code of the host device, that is, when the login information includes the preset type information, the authentication policy may be used to perform authentication on the mobile terminal using the local code corresponding to the preset type information, and determine whether the authentication is successful.
Step S540: when the login information comprises account information corresponding to the mobile terminal and password information corresponding to the account information, whether the account information corresponding to the mobile terminal exists in a pre-stored account list or not and whether the password information is matched with preset password information or not are judged.
In this embodiment, when the account information and the password information corresponding to the account information are included in the login request received by the host device, the identity of the mobile terminal may be verified through the password verification policy, and whether the account information corresponding to the mobile terminal exists in the pre-stored account list and whether the password information matches the preset password information is determined, so as to determine whether the identity verification is successful.
Step S550: and if the account information corresponding to the mobile terminal does not exist in the account list and/or the password information is not matched with the preset password information, determining that the identity authentication of the mobile terminal is unsuccessful.
In one embodiment, when the account information corresponding to the mobile terminal does not exist in the account list and the password information does not match the preset password information, it is determined that the authentication of the mobile terminal is unsuccessful. For example, a login request received by the host device includes account information D and password information abc, an account list in the host device includes account information a, account information B, and account information C, and the preset password information is bca, at this time, the account information D in the login request does not exist in the account list, and the password information abc in the login request is not matched with the preset password information bca, and it is determined that the mobile terminal is unsuccessfully authenticated.
In another embodiment, when the account information corresponding to the mobile terminal does not exist in the account list and the password information matches the preset password information, it is still determined that the identity authentication of the mobile terminal is unsuccessful. For example, a login request received by the host device includes account information D and password information abc, an account list in the host device includes account information a, account information B, and account information C, and the preset password information is abc, at this time, the account information D in the login request does not exist in the account list, and the password information abc in the login request is matched with the preset password information abc, which still determines that the mobile terminal identity authentication is unsuccessful.
In another embodiment, when the account information corresponding to the mobile terminal exists in the account list but the password information does not match the preset password information, it is also determined that the authentication of the mobile terminal is unsuccessful. For example, a login request received by the host device includes account information a and password information abc, an account list in the host device includes account information a, account information B, and account information C, and the preset password information cba, at this time, the account information a in the login request exists in the account list, but the password information abc in the login request is not matched with the preset password information cba, it is still determined that the authentication of the mobile terminal is unsuccessful, and correspondingly, the host device does not allow the mobile terminal to log in the host device, and does not establish communication connection with the host device.
Step S560: and if the account information corresponding to the mobile terminal exists in the account list and the password information is matched with the preset password information, determining that the identity verification of the mobile terminal is successful.
Step S570: and when the identity authentication is successful, allowing the mobile terminal to log in the host equipment and establishing communication connection with the mobile terminal.
In the embodiment of the present application, the detailed implementation of steps S560 to S570 may refer to the content of steps S440 to S450 in the foregoing embodiment, and will not be described herein again.
According to the embodiment, whether the mobile terminal has the authority to log in the host equipment or not can be verified by acquiring the password information and performing the password authentication strategy under the condition that the local code does not exist in the login information or the local code fails to be verified, the problem that the user fails to operate the intelligent equipment under the host equipment through the mobile terminal due to the fact that the local code is not updated in time is prevented, and the use experience of the user for controlling the intelligent equipment through the mobile terminal is improved.
Referring to fig. 6, fig. 6 is a schematic flowchart of an intelligent login method for a local area network according to another embodiment of the present application, and the method is applied to a mobile terminal. The following describes the intelligent login method for a local area network according to an embodiment of the present application in detail with reference to fig. 6. The intelligent login method of the local area network can comprise the following steps:
step S610: the method comprises the steps of obtaining a local code corresponding to a host device to be logged in from at least one local code stored in advance, wherein the local code is obtained from a server in advance.
In this embodiment, the mobile terminal may log in to the host device by sending the local code to the host device. The local code may be an authentication check code when the intelligent device under the host device is operated, that is, the host device may authenticate whether the mobile terminal sending the local code has the right to operate the intelligent device under the host device according to the received local code. The mobile terminal may have a pre-stored local code of at least one host device, where the local code may be obtained and stored by the mobile terminal from the server in advance, and when the mobile terminal needs to log in a certain host device, the local code corresponding to the host device may be obtained from the pre-stored local code.
Step S620: and sending a login request to the host equipment based on a local area network, wherein the login request is used for requesting to login the host equipment so as to establish communication connection with the host equipment, and the login request comprises account information corresponding to the mobile terminal and a local code corresponding to the host equipment.
In this embodiment, after the mobile terminal acquires the local code corresponding to the host device, a login request may be sent to the host device based on the local area network, where the login request is used to request to log in the host device to establish a communication connection with the host device, so that a control instruction may be sent based on the communication connection, and control of the intelligent device under the host device is implemented. The login request may include account information corresponding to the mobile terminal and a local code corresponding to the device, where the account information may be a mobile phone number of the user, an email address, or account information logged in by third-party software, and the like, and this embodiment does not limit this.
In some embodiments, when a user registers an account, the authority of the account, such as an administrator authority and a common user authority, may be selected, and the number of controllable intelligent devices corresponding to different authorities may be different.
Optionally, after the user logs in the registered account, the mobile terminal may automatically determine all host devices corresponding to the account information of the authority according to the device identifier of the controllable intelligent device corresponding to the authority, and send a login request to all host devices to request to log in all host devices corresponding to the account information, and establish communication connection with all host devices, so that when the user inputs a control instruction for a certain intelligent device, the user does not need to temporarily log in the host device corresponding to the intelligent device, and the control instruction may be directly forwarded to the host device corresponding to the intelligent device, thereby improving convenience of controlling the intelligent device by logging in the host device.
In other embodiments, when a user registers an account, the intelligent device that can be controlled by the account may be set in advance, and correspondingly, after the user completes the registration, the account information has the authority to log in the host device corresponding to the preset controllable intelligent device.
Optionally, after the user logs in the registered account, the mobile terminal may determine all host devices corresponding to the controllable intelligent devices corresponding to the account information according to device identifiers of the intelligent devices controllable by the account, and send login requests to all host devices to request to log in all host devices corresponding to the account information, and establish communication connection with all host devices, so that when the user inputs a control instruction for a certain intelligent device, the user does not need to temporarily log in the host device corresponding to the intelligent device, and the control instruction may be directly forwarded to the host device corresponding to the intelligent device, thereby improving convenience of controlling the intelligent device by logging in the host devices.
Optionally, after the account information and the local code corresponding to the host device are sent to the host device, the host device may determine whether the account information and the local code match with the pre-stored account information and the pre-stored local code, and if the account information and the local code match with each other, allow the mobile terminal to log in the host device.
Referring to fig. 7, fig. 7 is a schematic flowchart of an intelligent login method for a local area network according to another embodiment of the present application, and the method is applied to a mobile terminal. The intelligent login method for the local area network provided by the embodiment of the present application will be described in detail below with reference to fig. 7. The intelligent login method of the local area network can comprise the following steps:
step S710: and in the case of successful login to the server based on a wide area network, acquiring the at least one local code from the server and storing the at least one local code.
In this embodiment, the mobile terminal may obtain the local code of the host device from the server based on a successful login of the wide area network to the server, where the wide area network may also be referred to as an external network or a public network. Under the condition that the mobile terminal, the host equipment and the server are all connected to the same wide area network, data interaction can be carried out between the host equipment and the mobile terminal based on a server forwarding mechanism, the host equipment can send the local code to the server, the server receives and stores the local code of the host equipment, and the mobile terminal can obtain the local code of at least one host equipment from the server based on the wide area network and store the obtained local code.
In order to prevent the problem that other third-party devices log in the host device after stealing the local code maliciously due to leakage of the local code, in some embodiments, the host device may update the local code periodically, that is, the host device may generate a new local code every preset time period, and send the generated new local code to the server, so that the server updates the local code of the host device.
Correspondingly, after the local code is updated, the mobile terminal may also obtain the updated local code.
In a possible implementation manner, logging in the server based on a wide area network every preset time interval, and acquiring a local code corresponding to the host device from the server; and updating the pre-stored local code corresponding to the host equipment based on the newly acquired local code corresponding to the host equipment.
In this embodiment, the mobile terminal may display a prompt message every preset time period, where the prompt message may be used to prompt a user of the mobile terminal to log in a server, so that the mobile terminal may obtain an updated local code from the server in time; when the mobile terminal is in the wide area network, the mobile terminal can also automatically log in the server at preset time intervals, and the updated local code at the server can be obtained in time. The preset time period may be one day, two days, or one week, which is not limited in this embodiment.
After acquiring the updated local code from the server, the mobile terminal may update the local code corresponding to the pre-stored host device. For example, the pre-stored local code of the host device M is code 1, the updated local code acquired from the server is code 2, and correspondingly, the pre-stored local code of the host device M is updated to code 2 and stored.
In another possible embodiment, in the case of successfully logging in the server based on the wide area network, when the local code in the server is updated, the server may send an update instruction to the mobile terminal to prompt the mobile terminal to acquire the updated local code, and correspondingly, when the mobile terminal receives the update instruction, the latest local code may be acquired from the server based on the update instruction, and the acquired latest local code may be stored; the server may also directly send the latest local code corresponding to the host device to the mobile terminal having the authority to log in the host device, and correspondingly, the mobile terminal stores the latest local code after receiving the latest local code, that is, updates the local code corresponding to the host device, which is stored in advance.
Step S720: when a control instruction for the intelligent device is received, the host device corresponding to the intelligent device is determined to be used as the host device to be logged in.
In this embodiment, a user may control the smart device through the mobile terminal, and when the mobile terminal receives a control instruction for the smart device, which is input by the user, the host device corresponding to the smart device may be determined according to the control instruction, and the host device may be used as a host device to be logged in.
Illustratively, when a user needs to open an indoor intelligent air conditioner through APP control of the mobile terminal, the user may click a key for opening the intelligent air conditioner, correspondingly, the mobile terminal may receive a control instruction for opening the intelligent air conditioner, and if a host device corresponding to the intelligent air conditioner is an intelligent gateway A, correspondingly, the mobile terminal may determine the intelligent gateway A as the host device to be logged in. After the mobile terminal logs in the intelligent gateway A, the control instruction can be forwarded to the intelligent gateway A, the intelligent gateway A forwards the control instruction to the intelligent air conditioner, and the intelligent air conditioner receives the control instruction and starts the intelligent air conditioner based on the control instruction.
Step S730: and acquiring a local code corresponding to the host device from the pre-stored local codes.
In this embodiment, after the mobile terminal determines that the host device corresponding to the smart device is the host device to be logged in, the local code corresponding to the host device may be obtained from the pre-stored local code. For example, the pre-stored local codes include the local codes of the intelligent gateway a, the intelligent gateway B, the intelligent panel a and the intelligent panel B, and when the determined host device to be logged in is the intelligent gateway a, the local code of the intelligent gateway a may be obtained from the pre-stored local codes.
Step S740: sending a login request to the host device based on a local area network, wherein the login request is used for requesting to login the host device so as to establish communication connection with the host device, and the login request comprises account information corresponding to the mobile terminal and a local code corresponding to the host device.
In the embodiment of the present application, step S740 may refer to the content of step S620 in the foregoing embodiment, which is not described herein again.
Referring to fig. 8, fig. 8 is a flowchart illustrating an intelligent login method for a local area network according to still another embodiment of the present application, and the method is applied to a mobile terminal. The following describes the intelligent login method for a local area network according to an embodiment of the present application in detail with reference to fig. 8. The intelligent login method of the local area network can comprise the following steps:
step S810: and in the case of successful login to the server based on a wide area network, acquiring the at least one local code from the server and storing the at least one local code.
Step S820: when a control instruction for the intelligent device is received, the host device corresponding to the intelligent device is determined to be used as the host device to be logged in.
Step S830: and acquiring a local code corresponding to the host device from the pre-stored local codes.
Step S840: sending a login request to the host device based on a local area network, wherein the login request is used for requesting to login the host device so as to establish communication connection with the host device, and the login request comprises account information corresponding to the mobile terminal and a local code corresponding to the host device.
In the embodiment of the present application, steps S810 to S840 may refer to the contents of steps S710 to S740 in the foregoing embodiment, which are not described herein again.
Step S850: and receiving a password verification instruction returned by the host equipment, wherein the password verification instruction is an instruction sent when the host equipment performs identity verification according to the account information and the local code in the login request and fails in verification.
In this embodiment, the host device receives the login request, verifies the login request, and sends a password verification instruction to the mobile terminal if the account information in the login request exists in the account list but the local code in the login request is not matched with the currently stored local code corresponding to the host device, and correspondingly, the mobile terminal receives the password verification instruction, where the password verification instruction is used to instruct the mobile terminal to send the password information corresponding to the account information to the host device; the account list may be an account information set generated by the server based on stored account information of all users that have successfully registered, that is, the account list in the server includes account information of all users, the server may send all account information that has a right to log in a certain host device to the host device, and correspondingly, the host device receives and stores the account information, and therefore, the account information in the account list of the host device only includes account information that has a right to log in the host device.
Illustratively, the mobile terminal sends account information a and a local code 1 to the host device, an account list in the host device includes account information a, account information B and account information C, and the currently stored local code corresponding to the host device is code 2, at this time, the account information a in the login request exists in the account list, but whether the local code 1 in the login request is not matched with the currently stored local code 2 corresponding to the host device, the host device sends a password verification instruction to the mobile terminal, and correspondingly, the mobile terminal receives the password verification instruction sent by the host device.
Step S860: and responding to the password verification instruction, and sending password information corresponding to the account information to the host equipment so as to request to log in the host equipment again.
In this embodiment, when the mobile terminal receives the password authentication instruction, the mobile terminal sends password information corresponding to the account information to the host device in response to the password authentication instruction, so as to request to log in the host device again. The password information may be set by the host device when the host device leaves the factory, or may be set by the user for the host device, which is not limited in this embodiment. Correspondingly, the host equipment receives the password information and judges whether the password information is matched with the password information corresponding to the prestored account information or not, if so, the mobile terminal is allowed to log in the host equipment, namely, the mobile terminal successfully logs in the host equipment and successfully establishes communication connection with the host equipment; if not, the mobile terminal cannot log in the host device and cannot establish communication connection with the host device.
In some embodiments, the host device may be an old version of the host device, that is, the host device cannot generate a corresponding local code, and when the host device receives the account information and the local code sent by the mobile terminal, because the local code is not stored in the host device, the host device cannot perform authentication on the login request including the local code; based on this, the host device may also send a password verification instruction to the mobile terminal to prompt the mobile terminal to send the password information corresponding to the account information, correspondingly, the host device receives the password information sent by the mobile terminal and performs login verification on the account information and the corresponding password information, and if the verification is passed, the mobile terminal successfully logs in the host device and establishes communication connection with the host device successfully.
Referring to fig. 9, fig. 9 is a timing chart of an intelligent login method for a local area network according to an embodiment of the present application, which is applied to an intelligent login system 100 for a local area network. A timing chart of the intelligent login method for the local area network according to the embodiment of the present application will be described in detail below with reference to fig. 9.
In this embodiment, when there is a wide area network, both the mobile terminal and the host device may log in the server through the wide area network, and after both the mobile terminal and the host device successfully log in the server, the mobile terminal may send a control instruction to the host device based on a server forwarding mechanism to control the intelligent device corresponding to the host device. However, when there is no wide area network, the mobile terminal and the host device cannot log in the server, and the mobile terminal cannot control the intelligent device under the host device based on a server forwarding mechanism. Therefore, after both the mobile terminal and the host device successfully log in the server, the mobile terminal can acquire the local code corresponding to the host device through the server forwarding mechanism, and under the condition that the wide area network does not exist or cannot be connected with the wide area network, the mobile terminal can send account information and the local code corresponding to the host device based on the local area network to request for logging in the host device, so that control over the intelligent device corresponding to the host device is realized.
In some embodiments, the host device may upload the generated local code to the server after logging in the server based on the wide area network, and when the server successfully receives the local code of the host device, return a message to the host device to notify the host device that the server has successfully received the local code of the host device.
Further, the mobile terminal APP may send a login request to the server through the wide area network to request to login to the server, and correspondingly, the server verifies the login request, and if the verification is successful, sends a message to the mobile terminal APP to prompt that the mobile terminal has successfully logged in to the server. At this time, the mobile terminal APP may obtain the local code of the host device that the account information logged in by the mobile terminal APP has permission to log in from the local code table in the reading server.
The host equipment can generate new local codes at preset time intervals and upload the new local codes to the server, and when the server successfully receives the local codes updated by the host equipment, the server returns a message to the host equipment again to inform the host equipment, and the server successfully receives the local codes updated by the host equipment; after the server receives the local code updated by the host device, the server can inform the mobile terminal APP to read the local code updated by the host device, and correspondingly, the mobile terminal APP reads the local code updated from the server.
When the mobile terminal and the host device are in the same local area network, the mobile terminal APP may send a login request to the host device based on the local area network to request to log in the host device and establish a communication connection with the host device, where the login request includes account information and a local code corresponding to the host device; or when the local code of the host equipment does not exist or is not matched, sending account information and password information corresponding to the account information to the host equipment to request to log in the host equipment and establish communication connection with the host equipment; after receiving the login request or the account information and the password information corresponding to the account information, the host device performs login verification and returns a login result to the mobile terminal AP P to prompt that the login of the mobile terminal APP is successful or failed.
Referring to fig. 10, a block diagram of an intelligent login apparatus 1000 for a local area network according to another embodiment of the present application is shown, and is applied to a host device. The apparatus 1000 may include: a login request receiving module 1010, an authentication module 1020, and a communication establishing module 1030.
The login request receiving module 1010 is configured to receive a login request carrying login information sent by a mobile terminal.
The identity authentication module 1020 is configured to, when the login information includes preset type information, perform identity authentication on the mobile terminal based on an identity authentication policy corresponding to the preset type information and the login information, where the preset type information is a first local code of the host device.
The communication establishing module 1030 is configured to allow the mobile terminal to log in the host device and establish a communication connection with the mobile terminal if the identity authentication is successful.
In some embodiments, the identity verification module 1020 may be specifically configured to: when the login information contains the preset type information and account information corresponding to the mobile terminal, judging whether the account information corresponding to the mobile terminal exists in a pre-stored account list or not, and whether the first local code is matched with a second local code corresponding to the currently stored host equipment or not, wherein the account list is obtained from a server in advance and comprises account information with login permission of the host equipment; if the account information corresponding to the mobile terminal exists in the account list and the first local code is matched with the second local code, determining that the identity verification of the mobile terminal is successful; and if the account information corresponding to the mobile terminal does not exist in the account list and/or the first local code is not matched with the second local code, determining that the identity verification of the mobile terminal is unsuccessful.
In this manner, the smart entry device 1000 for a local area network may include: the device comprises an instruction sending module, a password information receiving module and a communication establishing module. The instruction sending module may be configured to send a password verification instruction to the mobile terminal if the mobile terminal does not perform authentication successfully and account information corresponding to the mobile terminal exists in the account list; the password information receiving module can be used for receiving password information corresponding to the account information sent by the mobile terminal; the communication establishing module may be configured to allow the mobile terminal to log in the host device and establish a communication connection with the mobile terminal when the password information matches preset password information.
In other embodiments, when the login information does not include the preset type information, or after it is determined that the mobile terminal is not authenticated, the authentication module 1020 may be further specifically configured to: when the login information comprises account information corresponding to the mobile terminal and password information corresponding to the account information, judging whether the account information corresponding to the mobile terminal exists in a pre-stored account list or not and whether the password information is matched with the preset password information or not; if the account information corresponding to the mobile terminal exists in the account list and the password information is matched with the preset password information, determining that the identity verification of the mobile terminal is successful; and if the account information corresponding to the mobile terminal does not exist in the account list and/or the password information is not matched with the preset password information, determining that the identity authentication of the mobile terminal is unsuccessful.
In some embodiments, the smart login apparatus 1000 for a local area network may include: the device comprises a local code updating module and a local code sending module. The local code updating module may be configured to update the second local code corresponding to the host device periodically; the local code sending module may be configured to send the updated second local code corresponding to the host device to a server, where the server is configured to send the updated second local code corresponding to the host device to the mobile terminal when the mobile terminal successfully logs in the server.
Referring to fig. 11, a block diagram of an intelligent login device 1100 for a local area network according to an embodiment of the present application is shown, and is applied to a mobile terminal. The apparatus 1100 may include: a local code acquisition module 1110 and a login request sending module 1120.
The local code obtaining module 1110 is configured to obtain, from at least one local code stored in advance, a local code corresponding to a host device to be logged in, where the local code is obtained from a server in advance.
The login request sending module 1120 is configured to send a login request to the host device based on a local area network, where the login request is used to request to log in the host device to establish a communication connection with the host device, and the login request includes account information corresponding to the mobile terminal and a local code corresponding to the host device.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described devices and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
An electronic device provided by the present application will be described below with reference to the drawings.
Referring to fig. 12, fig. 12 is a block diagram illustrating a structure of an electronic device 1200 according to an embodiment of the present application, where the method for intelligently logging in a local area network according to the embodiment of the present application may be executed by the electronic device 1200. The electronic device 1200 may be the mobile terminal or the host device in the above embodiments.
The electronic device 1200 in embodiments of the application may include one or more of the following components: a processor 1201, a memory 1202, and one or more applications, where the one or more applications may be stored in the memory 1202 and configured to be executed by the one or more processors 1201, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
The processor 1201 may include one or more processing cores. The processor 1201 interfaces with various interfaces and circuitry throughout the electronic device 1200 to perform various functions and process data for the electronic device 1200 by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1202 and invoking data stored in the memory 1202. Alternatively, the processor 1201 may be implemented in at least one hardware form of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1201 may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is to be understood that the modem may also be integrated into the processor 1201 and implemented solely by a communication chip.
The Memory 1202 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 1202 may be used to store instructions, programs, code sets, or instruction sets. The memory 1202 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the electronic device 1200 in use (such as the various correspondences described above), and so on.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described devices and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling or direct coupling or communication connection between the modules shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or modules may be in an electrical, mechanical or other form.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 13, a block diagram of a computer-readable storage medium provided in an embodiment of the present application is shown. The computer-readable medium 1300 has stored therein program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 1300 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 1300 includes a non-transitory computer-readable storage medium. The computer readable storage medium 1200 has storage space for program code 1310 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 1310 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (9)

1. An intelligent login method of a local area network is applied to a host device, and the method comprises the following steps:
receiving a login request which is sent by a mobile terminal and carries login information;
when the login information comprises preset type information, performing identity authentication on the mobile terminal based on an identity authentication strategy corresponding to the preset type information and the login information, wherein the preset type information is a first local code of the host equipment;
if the identity authentication is successful, allowing the mobile terminal to log in the host equipment and establishing communication connection with the mobile terminal;
updating a second local code corresponding to the host device periodically;
and sending the updated second local code corresponding to the host equipment to a server, wherein the server is used for issuing the updated second local code corresponding to the host equipment to the mobile terminal under the condition that the mobile terminal successfully logs in the server, and the mobile terminal is used for updating the stored first local code into the updated second local code corresponding to the host equipment.
2. The method according to claim 1, wherein when the login information includes a preset type information, authenticating the mobile terminal based on an authentication policy corresponding to the preset type information and the login information comprises:
when the login information comprises the preset type information and account information corresponding to the mobile terminal, judging whether the account information corresponding to the mobile terminal exists in a pre-stored account list and whether the first local code is matched with a second local code corresponding to the currently stored host equipment, wherein the account list is obtained from a server in advance and comprises account information with login permission of the host equipment;
if the account information corresponding to the mobile terminal exists in the account list and the first local code is matched with the second local code, determining that the identity verification of the mobile terminal is successful;
and if the account information corresponding to the mobile terminal does not exist in the account list and/or the first local code is not matched with the second local code, determining that the identity verification of the mobile terminal is unsuccessful.
3. The method according to claim 2, wherein after said determining that the mobile terminal authentication is unsuccessful, the method further comprises:
if the identity authentication of the mobile terminal is unsuccessful and account information corresponding to the mobile terminal exists in the account list, a password authentication instruction is sent to the mobile terminal;
receiving password information corresponding to the account information sent by the mobile terminal;
and when the password information is matched with preset password information, allowing the mobile terminal to log in the host equipment and establish communication connection with the mobile terminal.
4. The method according to claim 1, wherein when the login information does not include the preset type information, or after determining that the mobile terminal authentication is unsuccessful, the method further comprises:
when the login information comprises account information corresponding to the mobile terminal and password information corresponding to the account information, judging whether the account information corresponding to the mobile terminal exists in a pre-stored account list or not and whether the password information is matched with preset password information or not;
if the account information corresponding to the mobile terminal exists in the account list and the password information is matched with the preset password information, determining that the identity verification of the mobile terminal is successful;
and if the account information corresponding to the mobile terminal does not exist in the account list and/or the password information is not matched with the preset password information, determining that the identity authentication of the mobile terminal is unsuccessful.
5. An intelligent login method of a local area network is characterized by being applied to a mobile terminal, and the method comprises the following steps:
acquiring a local code corresponding to host equipment to be logged in from at least one local code stored in advance, wherein the local code is acquired from a server in advance;
sending a login request to the host device based on a local area network, wherein the login request is used for requesting to login the host device so as to establish communication connection with the host device, and the login request comprises account information corresponding to the mobile terminal and a local code corresponding to the host device;
and receiving a second local code which is sent by the server and periodically updated by the host equipment, and updating the stored local code into the second local code corresponding to the updated host equipment.
6. An intelligent login device of a local area network, which is applied to a host device, the device comprising:
the login request receiving module is used for receiving a login request which is sent by the mobile terminal and carries login information;
the identity authentication module is used for authenticating the identity of the mobile terminal based on an identity authentication strategy corresponding to the preset type information and the login information when the login information comprises the preset type information, wherein the preset type information is a first local code of the host equipment;
the communication establishing module is used for allowing the mobile terminal to log in the host equipment and establishing communication connection with the mobile terminal if the identity authentication is successful;
the local code updating module is used for periodically updating a second local code corresponding to the host equipment;
and the server is used for issuing the updated second local code corresponding to the host equipment to the mobile terminal under the condition that the mobile terminal successfully logs in the server.
7. An intelligent login device of a local area network is applied to a mobile terminal, and the device comprises:
the system comprises a local code acquisition module, a local code acquisition module and a local code acquisition module, wherein the local code acquisition module is used for acquiring a local code corresponding to host equipment to be logged in from at least one local code stored in advance, and the local code is acquired from a server in advance;
a login request sending module, configured to send a login request to the host device based on a local area network, where the login request is used to request to log in the host device to establish a communication connection with the host device, and the login request includes account information corresponding to the mobile terminal and a local code corresponding to the host device; and receiving a second local code which is sent by the server and is periodically updated by the host equipment, and updating the stored local code into the updated second local code corresponding to the host equipment.
8. An electronic device, comprising:
one or more processors;
a memory;
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-5.
9. A computer-readable storage medium, characterized in that a program code is stored in the computer-readable storage medium, which program code can be called by a processor to perform the method according to any of claims 1-5.
CN202110281324.7A 2021-03-16 2021-03-16 Intelligent login method and device for local area network, electronic equipment and storage medium Active CN112905992B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110281324.7A CN112905992B (en) 2021-03-16 2021-03-16 Intelligent login method and device for local area network, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110281324.7A CN112905992B (en) 2021-03-16 2021-03-16 Intelligent login method and device for local area network, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112905992A CN112905992A (en) 2021-06-04
CN112905992B true CN112905992B (en) 2023-03-14

Family

ID=76105175

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110281324.7A Active CN112905992B (en) 2021-03-16 2021-03-16 Intelligent login method and device for local area network, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112905992B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114172714A (en) * 2021-12-02 2022-03-11 北京金山云网络技术有限公司 Account access authority control method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103713605A (en) * 2013-12-27 2014-04-09 广西瀚特信息产业股份有限公司 Intelligent control platform and method
CN106301894A (en) * 2016-08-02 2017-01-04 中国联合网络通信集团有限公司 The control method of intelligent gateway, mobile terminal and system
CN108540497A (en) * 2018-06-01 2018-09-14 深圳市彬讯科技有限公司 Intelligent gateway and its connection control method
CN109639692A (en) * 2018-12-20 2019-04-16 广州河东科技有限公司 Method, apparatus, equipment, system and the storage medium logged in offline
CN109842537A (en) * 2017-11-29 2019-06-04 上海企想信息技术有限公司 Smart home system
CN110493263A (en) * 2019-09-17 2019-11-22 北京元安物联技术有限公司 Gateway offline authentication method, apparatus, system and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103713605A (en) * 2013-12-27 2014-04-09 广西瀚特信息产业股份有限公司 Intelligent control platform and method
CN106301894A (en) * 2016-08-02 2017-01-04 中国联合网络通信集团有限公司 The control method of intelligent gateway, mobile terminal and system
CN109842537A (en) * 2017-11-29 2019-06-04 上海企想信息技术有限公司 Smart home system
CN108540497A (en) * 2018-06-01 2018-09-14 深圳市彬讯科技有限公司 Intelligent gateway and its connection control method
CN109639692A (en) * 2018-12-20 2019-04-16 广州河东科技有限公司 Method, apparatus, equipment, system and the storage medium logged in offline
CN110493263A (en) * 2019-09-17 2019-11-22 北京元安物联技术有限公司 Gateway offline authentication method, apparatus, system and computer readable storage medium

Also Published As

Publication number Publication date
CN112905992A (en) 2021-06-04

Similar Documents

Publication Publication Date Title
CN110602692B (en) Data updating method and device and electronic equipment
US9882915B2 (en) Device control method, device control system
CN107579966B (en) Control method, device and system for remotely accessing intranet and terminal equipment
EP3592017B1 (en) Credential information processing method and apparatus for network connection, and application (app)
CN107241339B (en) Identity authentication method, identity authentication device and storage medium
WO2018000834A1 (en) Wifi hotspot information modification method and device
US11765164B2 (en) Server-based setup for connecting a device to a local area network
CN106686754B (en) Data interaction method and data interaction system
WO2020168561A1 (en) Device network distribution method and apparatus, electronic device, and storage medium
US20100030346A1 (en) Control system and control method for controlling controllable device such as peripheral device, and computer program for control
US9319407B1 (en) Authentication extension to untrusted devices on an untrusted network
WO2021072761A1 (en) Device access method and apparatus, system control method, electronic device and storage medium
CN105323222A (en) Login verification method and login verification system
CN113424161A (en) Methods, systems, and media for authenticating a user using blockchains
CN112905992B (en) Intelligent login method and device for local area network, electronic equipment and storage medium
US20230156466A1 (en) Bluetooth Networking Method for Electronic Device and Related Device
KR102118282B1 (en) Method for automating the authentication of use (login information authentication) from a app content
CN111492358B (en) Device authentication
CN114764286A (en) Application program login method and system
WO2023130821A1 (en) Network access method and apparatus
CN115250186B (en) Network connection authentication method, device, computer equipment and storage medium
CN113556723B (en) Intelligent device activation method, intelligent device and intelligent device activation system
CN110545225B (en) Local and internet equipment authentication and authorization method
CN111049785B (en) Portal authentication method and device
KR101020058B1 (en) Mobile Devices and Recording Medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant