CN111200610A - Login method, login device, computer equipment and storage medium - Google Patents

Login method, login device, computer equipment and storage medium Download PDF

Info

Publication number
CN111200610A
CN111200610A CN202010006136.9A CN202010006136A CN111200610A CN 111200610 A CN111200610 A CN 111200610A CN 202010006136 A CN202010006136 A CN 202010006136A CN 111200610 A CN111200610 A CN 111200610A
Authority
CN
China
Prior art keywords
account
information
account information
login
micro server
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.)
Granted
Application number
CN202010006136.9A
Other languages
Chinese (zh)
Other versions
CN111200610B (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.)
Douyin Vision Co Ltd
Douyin Vision Beijing Co Ltd
Original Assignee
Beijing ByteDance Network 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010006136.9A priority Critical patent/CN111200610B/en
Publication of CN111200610A publication Critical patent/CN111200610A/en
Application granted granted Critical
Publication of CN111200610B publication Critical patent/CN111200610B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Engineering (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a login method, a login device, a computer device and a storage medium, which can realize automatic login of a terminal device and avoid the problems of errors and low efficiency caused by manual account number input. A login method comprises the following steps: after accessing a target local area network, receiving account number distribution information broadcasted to the target local area network by a micro server; sending an account number distribution request to the micro server based on the account number distribution information; receiving account information fed back by the micro server based on the account allocation request; and logging in the application server based on the account information. The other login method comprises the following steps: periodically broadcasting account allocation information to a target local area network; and if an account allocation request sent by the terminal equipment based on the account allocation information is received, selecting one account information from a plurality of unassigned account information, and sending the determined target account information to the terminal equipment so that the terminal equipment logs in to the application server based on the determined target account information.

Description

Login method, login device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer communication technologies, and in particular, to a login method, an apparatus, a computer device, and a storage medium.
Background
The current method for logging in the terminal device to the application server generally requires a user to input an account and a password from a login page provided by the terminal device, then generates a login request based on the account and the password input by the user, and sends the login request to the application server. The application server carries out validity verification on an account number and a password carried in a login request after receiving the login request sent by the terminal equipment; and allowing the terminal equipment to log in to the application server on the basis of verifying that the account number and the password are legal.
In some fields, the account number and the password required to be input by the user are generally long and complicated, and the login method is long in time consumption and easy to make mistakes.
Disclosure of Invention
In view of this, an object of the embodiments of the present application is to provide a login method, which can implement automatic login of a terminal device.
In a first aspect, an embodiment of the present application provides a login method, which is applied to a terminal device, and the login method includes:
after accessing the target local area network, receiving account number distribution information broadcasted to the target local area network by the micro server;
sending an account number distribution request to the micro server based on the account number distribution information;
receiving account information fed back by the micro server based on the account allocation request;
logging in to an application server based on the account information.
In an optional embodiment, the micro server is an electronic device accessing the target lan and capable of communicating with a plurality of terminal devices in the target lan.
In an optional implementation manner, before sending an account allocation request to the micro server based on the account allocation information, the method further includes:
detecting whether the stored account information exists locally;
the sending of the account allocation request to the micro server based on the account allocation information includes:
and if the stored account information does not exist locally, sending an account allocation request to the micro server based on the account allocation information.
In an optional embodiment, the method further comprises: and if the stored account information exists locally, logging in the application server based on the stored account information.
In an optional implementation manner, after receiving newly allocated account information fed back by the micro server based on the account allocation request, the method further includes:
and storing the account information locally.
In an optional implementation manner, after the account information is stored locally, the method further includes:
in response to the account information release instruction, deleting the stored account information stored locally;
and the number of the first and second groups,
generating an account resetting instruction based on the stored account information and sending the account resetting instruction to the micro server; the account resetting instruction is used for instructing the micro server to reset the stored account information to an unassigned account.
In a second aspect, an embodiment of the present application provides a login method, which is applied to a micro server, where the login method includes:
periodically broadcasting account number distribution information in a target local area network;
if an account allocation request sent by the terminal device based on the account allocation information is received, selecting one account information from a plurality of unassigned account information, and sending the determined target account information to the terminal device, so that the terminal device logs in to an application server based on the determined target account information.
In an optional embodiment, the method further comprises: and changing the state of the selected target account information from unallocated to allocated.
In an optional embodiment, the method further comprises: and if an account resetting instruction sent by the terminal equipment is received, changing the state of the account information corresponding to the account resetting instruction from the allocated state to the unallocated state.
In a third aspect, an embodiment of the present application provides a login apparatus, which is applied to a terminal device, and the login apparatus includes:
the first receiving module is used for receiving account number distribution information broadcasted to the target local area network by the micro server after the target local area network is accessed;
the sending module is used for sending an account number distribution request to the micro server based on the account number distribution information;
the second receiving module is used for receiving account information fed back by the micro server based on the account allocation request;
and the login module is used for logging in the application server based on the account information.
In an optional embodiment, the micro server is an electronic device accessing the target lan and capable of communicating with a plurality of terminal devices in the target lan.
In an optional embodiment, the method further comprises: the detection module is used for detecting whether the stored account information exists locally or not before the sending module sends an account allocation request to the micro server based on the account allocation information;
and the sending module is used for sending an account number distribution request to the micro server based on the account number distribution information after the detection module detects that the stored account number information does not exist locally.
In an optional implementation manner, the login module is further configured to log in to the application server based on the stored account information after the detection module detects that the stored account information exists locally.
In an optional embodiment, the method further comprises: a storage module;
and the storage module is used for storing the account information in local after the second receiving module receives the newly allocated account information fed back by the micro server based on the account allocation request.
In an optional implementation manner, after the account information is locally saved, the saving module is further configured to:
in response to the account information release instruction, deleting the stored account information stored locally;
the sending module is further used for generating an account resetting instruction based on the stored account information and sending the account resetting instruction to the micro server; the account resetting instruction is used for instructing the micro server to reset the stored account information to an unassigned account.
In a third aspect, an embodiment of the present application further provides a login apparatus, which is applied to a micro server, where the login apparatus includes:
the broadcasting module is used for periodically broadcasting the account number distribution information in the target local area network;
the allocation module is used for selecting one account number information from a plurality of unallocated account number information if an account number allocation request sent by the terminal equipment based on the account number allocation information is received, and sending the determined target account number information to the terminal equipment so that the terminal equipment logs in to an application server based on the determined target account number information.
In an optional embodiment, the method further comprises: and the first processing module is used for changing the state of the selected target account information from unallocated to allocated.
In an optional embodiment, the method further comprises: and the second processing module is used for changing the state of the account information corresponding to the account resetting instruction from the allocated state to the unallocated state when the account resetting instruction sent by the terminal equipment is received.
In a fifth aspect, an embodiment of the present application further provides a computer device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the computer device is running, the machine-readable instructions when executed by the processor performing the steps of the first aspect, or any one of the possible implementations of the first aspect, or the second aspect, or any one of the possible implementations of the second aspect.
In a sixth aspect, this application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to perform the steps in the first aspect, or any one of the possible embodiments of the first aspect, or to perform the steps in the second aspect, or any one of the possible embodiments of the second aspect.
According to the method and the device, after the terminal equipment is connected to the target local area network, the account number distribution information broadcasted by the micro server to the target local area network is received, the account number distribution request is sent to the micro server based on the account number distribution information, and after the newly distributed account number information fed back by the micro server is received, the application server logs in based on the newly distributed account number information.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic diagram illustrating a login system provided in an embodiment of the present application;
fig. 2 shows a flowchart in a login method provided in an embodiment of the present application;
FIG. 3 is a flow chart illustrating another exemplary method of login provided by embodiments of the present application;
fig. 4 is a schematic diagram illustrating a login device provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of another login device provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of a computer device provided by an embodiment of the present application;
fig. 7 shows a schematic diagram of another computer device provided by an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
Research shows that the conventional method for logging in the application server by the terminal equipment generally requires a user to manually input an account and a password through a login page provided by the terminal equipment, and the terminal equipment realizes a subsequent login process based on the account and the password manually input by the user. However, in some application fields, such as intelligent classes, account numbers and passwords are allocated to users in advance; when a student needs to log in to an application server of an intelligent classroom by using equipment, the student needs to manually input an account number and a password in terminal equipment. The account number and the password are usually long and complicated, which results in a long time consumption and easy error in the input process. Particularly, for students with small ages, the process of inputting the account number and the password is uncontrollable; in order to avoid errors in the student account password process, a teacher or a worker is required to manually input the passwords for each student in turn.
Based on the research, the application provides a login system, a login method and a login device, which can receive account number distribution information broadcasted by a micro server to a target local area network after a terminal device is connected to the target local area network, send an account number distribution request to the micro server based on the account number distribution information, and log in to an application server based on newly distributed account number information after the newly distributed account number information fed back by the micro server is received.
The above-mentioned drawbacks are the results of the inventor after practical and careful study, and therefore, the discovery process of the above-mentioned problems and the solution proposed by the present application to the above-mentioned problems in the following should be the contribution of the inventor to the present application in the process of the present application.
The technical solutions in the present application will be described clearly and completely with reference to the drawings in the present application, and it should be understood that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the present application, as generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
To facilitate understanding of the embodiment, a detailed description will be given of a login system disclosed in the embodiment of the present application.
Referring to fig. 1, a schematic structural diagram of a login system provided in an embodiment of the present application includes: terminal device 10 and microserver 20.
The terminal device 10 includes, for example: any of a laptop computer, a desktop computer, a User Equipment (UE), a mobile device, a User terminal, a cellular phone, a cordless phone, a Personal Digital Assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, and a wearable device.
The micro server 20 is an electronic device that can communicate with a plurality of terminal devices 10 connected to a target lan and can assign account information to each terminal device 10, and may include any of a laptop computer, a desktop computer, a User Equipment (UE), a mobile device, a User terminal, a cellular phone, a cordless phone, a Personal Digital Assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, and a wearable device, for example.
After the micro server 20 is accessed into the target lan, the account assignment information is periodically broadcasted in the target lan. After accessing the same target lan, the terminal device 10 can receive account allocation information broadcasted by the micro server, and then send an account allocation request to the micro server 20 based on the account allocation information.
In receiving the account allocation request sent by the terminal device 10, the micro server 20 determines one account information from at least one account information that is not currently allocated, and sends the account information to the terminal device 10.
After receiving account information fed back by micro server 20 according to the account allocation request, terminal device 10 logs in to the application server based on the account information.
The following describes a login system provided in an embodiment of the present application, taking an example of applying the login method to an intelligent classroom.
The target local area network is, for example, a local area network constructed based on class-infinite Fidelity (Wi-Fi). For example, the network may be a local area network based on bluetooth communication, and may be specifically set according to actual needs.
Taking the example of building a local area network based on class Wi-Fi, the micro server 20 first needs to connect to the class Wi-Fi network, and after access is successful, periodically broadcasts account allocation information to the class Wi-Fi network. The account allocation information carries address information of the micro server 20.
After accessing the class Wi-Fi network, the terminal device 10 can receive the account allocation information broadcast by the micro server 20 to the class Wi-Fi network. Then, an account allocation request is generated, and the account allocation request is sent to the micro server 20 based on the address information of the micro server 20 carried in the account allocation information.
After receiving the account allocation request sent by the terminal device 10, the micro server 20 determines an unassigned account information from at least one unassigned account information, and sends the unassigned account information to the terminal device 10.
Here, the micro server 20 also changes the status of the selected target account information from unassigned to assigned.
After receiving the account information sent by the micro server 20, the terminal device 10 generates a login request directly based on the account information, and sends the login request to the application server through the class Wi-Fi network or through another communication method, so as to realize login of the terminal device 10 on the application server.
Here, the micro server 20 may pre-store a plurality of unassigned account information in advance in the micro server 20 when determining the account information for the terminal device 10.
For example, the microserver 20 is a device used by class teachers; the teacher can request account information of corresponding quantity from the application server through the micro server 20 according to the list of students in the class, and the applied account information corresponds to the identity of the students one by one. After receiving the request from the micro server 20, the application server generates corresponding account information for the students of the class, activates the account information, and sends the account information to the micro server 20, so that the micro server 20 can subsequently distribute the account information to each terminal device 10.
The additional account information may also be pre-generated from a student list and activated in the application server. When the application server receives a request sent by a certain micro server 20, the application server sends the corresponding account information to the micro server 20. Here, when the micro server 20 requests the account information from the application server, for example, the micro server may also carry class information so that the application server can transmit the account information of the corresponding class to the micro server 20.
In addition, the account information may have other sources, which are not described herein again.
In the embodiment of the present application, the account information, for example, may include an account; in this case, the terminal device 10 may not need a password to log in to the application server. Only account authentication is required. In this case, the account and the terminal device are usually in a binding relationship; and the terminal equipment and the student are in a binding relationship.
In another embodiment of the present application, the account information may include, for example, an account number and a password; in this case, the login of the terminal device 10 to the application server is password-required; the application server needs to verify the account number and the password; when the authentication is passed, the party allows the terminal device 10 to log in. In this case, the account and the terminal device do not have a binding relationship, and the terminal device and the student do not have a binding relationship. Students can replace terminal equipment, and can log in to be an application server as long as the students are ensured to input legal accounts and passwords on the terminal equipment.
In another embodiment of the present application, the terminal device 10 further detects whether the stored account information exists locally before sending the account allocation request to the micro server 20 based on the account allocation information.
If the stored account information exists locally, logging in an application server directly based on the stored account information; if no stored account information exists locally, an account assignment request is sent to micro-server 20.
In this way, when the allocated account information exists on the terminal device, the micro server 20 is no longer required to allocate the account information, but logs in to the application server based on the stored account information.
Furthermore, in another embodiment, after receiving the account information assigned by the micro server 20, the terminal device 10 also saves the account information, so that the terminal device can log in again based on the stored account information stored locally at the next login without being assigned by the micro server.
In addition, in another embodiment, in many cases, a situation is encountered in which a user who has logged in to the application server through a certain terminal device wants to replace the terminal device 10. In this case, the user can initiate an account information release instruction through the terminal device which has logged in, or receive an account information release instruction sent by the application server, or receive an account information release instruction sent by the micro server.
The terminal device 10 deletes the stored account information that is locally saved in response to the account information release instruction.
In this way, it can be changed to a new terminal device to log in its account.
In this case, the terminal device 10 further generates an account reset instruction based on the stored account information and sends the account reset instruction to the micro server. The account reset instruction carries the stored account.
After receiving the account resetting instruction, the micro server 20 resets the stored account information to the unassigned account. For example, the status of the account information may be changed from allocated to unallocated.
According to the method and the device, after the terminal equipment is connected to the target local area network, the account number distribution information broadcasted by the micro server to the target local area network is received, the account number distribution request is sent to the micro server based on the account number distribution information, and after the newly distributed account number information fed back by the micro server is received, the application server logs in based on the newly distributed account number information.
As shown in fig. 2, an embodiment of the present application further provides a login method, and since the principle of solving the problem of the method in the embodiment of the present application is similar to that of the login system in the embodiment of the present application, the implementation of the apparatus may refer to the implementation of the method, and repeated details are omitted.
Specifically, the login method is applied to the terminal equipment and comprises the following steps:
s201: after accessing the target local area network, receiving account number distribution information broadcasted to the target local area network by the micro server;
s202: sending an account number distribution request to the micro server based on the account number distribution information;
s203: receiving account information fed back by the micro server based on the account allocation request;
s204: logging in to an application server based on the account information.
According to the method and the device, after the terminal equipment is connected to the target local area network, the account number distribution information broadcasted by the micro server to the target local area network is received, the account number distribution request is sent to the micro server based on the account number distribution information, and after the newly distributed account number information fed back by the micro server is received, the application server logs in based on the newly distributed account number information.
In an optional embodiment, the micro server is a micro server accessing the target lan.
In an optional implementation manner, before sending an account allocation request to the micro server based on the account allocation information, the method further includes:
detecting whether the stored account information exists locally;
the sending of the account allocation request to the micro server based on the account allocation information includes:
and if the stored account information does not exist locally, sending an account allocation request to the micro server based on the account allocation information.
In an alternative embodiment, the method further comprises: and if the stored account information exists locally, logging in the application server based on the stored account information.
In an optional implementation manner, after receiving newly allocated account information fed back by the micro server based on the account allocation request, the method further includes:
and storing the account information locally.
In an optional implementation manner, after the storing the account information locally, the method further includes:
in response to the account information release instruction, deleting the stored account information stored locally;
and the number of the first and second groups,
generating an account resetting instruction based on the stored account information and sending the account resetting instruction to the micro server; the account resetting instruction is used for instructing the micro server to reset the stored account information to an unassigned account.
Referring to fig. 3, an embodiment of the present application further provides another login method, and since the principle of solving the problem of the method in the embodiment of the present application is similar to that of the login system in the embodiment of the present application, the implementation of the apparatus may refer to the implementation of the method, and repeated details are not repeated.
The login method is applied to the micro server and specifically comprises the following steps:
s301: periodically broadcasting account number distribution information in a target local area network;
s302: if an account allocation request sent by the terminal device based on the account allocation information is received, selecting one account information from at least one piece of unallocated account information, and sending the determined target account information to the terminal device, so that the terminal device logs in to an application server based on the determined target account information.
In the embodiment of the application, the micro server broadcasts the account number distribution information in the target local area network periodically; when a certain terminal device is connected to the target local area, an account allocation request can be sent to the micro server based on account allocation information; the micro server selects one account number information from at least one piece of unallocated account number information according to an account number allocation request sent by the terminal equipment, and sends the determined target account number information to the terminal equipment, so that the terminal equipment logs in the application server based on the determined target account number information, and therefore the terminal equipment automatically logs in the application server.
In an alternative embodiment, the method further comprises: and changing the state of the selected target account information from unallocated to allocated.
In an alternative embodiment, the method further comprises: and if an account resetting instruction sent by the terminal equipment is received, changing the state of the account information corresponding to the account resetting instruction from the allocated state to the unallocated state.
Based on the same inventive concept, a login device corresponding to the login method is also provided in the embodiments of the present application, and as the principle of solving the problem of the device in the embodiments of the present application is similar to the login method in the embodiments of the present application, the implementation of the device may refer to the implementation of the method, and repeated details are not repeated.
Referring to fig. 4, a schematic diagram of a login apparatus provided in an embodiment of the present application is shown, where the login apparatus is installed in a terminal device, and the apparatus includes: a first receiving module 41, a sending module 42, a second receiving module 43, and a login module 44; wherein the content of the first and second substances,
a first receiving module 41, configured to receive account allocation information broadcast by the micro server to the target local area network after accessing the target local area network;
a sending module 42, configured to send an account allocation request to the micro server based on the account allocation information;
a second receiving module 43, configured to receive account information fed back by the micro server based on the account allocation request;
and a login module 44, configured to log in to the application server based on the account information.
In one possible implementation, the micro server is an electronic device accessing the target lan and capable of communicating with a plurality of terminal devices in the target lan.
In a possible embodiment, the method further comprises: a detection module, configured to detect whether there is locally stored account information before the sending module 42 sends an account allocation request to the micro server based on the account allocation information;
the sending module 42 is configured to send an account allocation request to the micro server based on the account allocation information after the detecting module detects that the stored account information does not exist locally.
In a possible implementation manner, the login module is further configured to log in to the application server based on the stored account information after the detection module detects that the stored account information exists locally.
In a possible embodiment, the method further comprises: a saving module 45;
the saving module 45 is configured to, after the second receiving module 43 receives the newly allocated account information fed back by the micro server based on the account allocation request, save the account information locally.
In a possible implementation manner, after the account information is stored locally, the storage module 45 is further configured to:
in response to the account information release instruction, deleting the stored account information stored locally;
the sending module 42 is further configured to generate an account resetting instruction based on the stored account information and send the account resetting instruction to the micro server; the account resetting instruction is used for instructing the micro server to reset the stored account information to an unassigned account.
The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.
Referring to fig. 5, a schematic diagram of another login apparatus provided in an embodiment of the present application, where the login apparatus is applied to a micro server, the apparatus includes: a broadcasting module 51, a distribution module 52;
a broadcasting module 51, configured to periodically broadcast account assignment information in a target local area network;
the allocating module 52 is configured to, if an account allocation request sent by a terminal device based on the account allocation information is received, select one piece of account information from a plurality of pieces of unassigned account information, and send determined target account information to the terminal device, so that the terminal device logs in to an application server based on the determined target account information.
In a possible embodiment, the method further comprises: the first processing module 53 is configured to change the status of the selected target account information from unassigned to assigned.
In a possible embodiment, the method further comprises: the second processing module 54 is configured to, after receiving an account resetting instruction sent by the terminal device, change the state of the account information corresponding to the account resetting instruction from allocated to unallocated.
The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.
An embodiment of the present application further provides a computer device 60, as shown in fig. 6, which is a schematic structural diagram of the computer device 60 provided in the embodiment of the present application, and includes: a processor 61, a memory 62, and a bus 63. The memory 62 stores machine-readable instructions executable by the processor 61 (for example, corresponding execution instructions of the first receiving module 41, the sending module 42, the second receiving module 43, and the login module 44 in the apparatus in fig. 4, and the like), when the computer device 60 runs, the processor 61 communicates with the memory 62 through the bus 63, and when the processor 61 executes the following processes:
after accessing the target local area network, receiving account number distribution information broadcasted to the target local area network by the micro server;
sending an account number distribution request to the micro server based on the account number distribution information;
receiving account information fed back by the micro server based on the account allocation request;
logging in to an application server based on the account information.
In a possible implementation, in the instructions executed by processor 61, the micro server is an electronic device accessing the target lan and capable of communicating with a plurality of terminal devices in the target lan.
In a possible implementation manner, before the sending, by the processor 61, an account allocation request to the micro server based on the account allocation information, the method further includes:
detecting whether the stored account information exists locally;
the sending of the account allocation request to the micro server based on the account allocation information includes:
and if the stored account information does not exist locally, sending an account allocation request to the micro server based on the account allocation information.
In a possible implementation, the instructions executed by the processor 61 further include: and if the stored account information exists locally, logging in the application server based on the stored account information.
In a possible implementation manner, after the instructions executed by the processor 61 receive newly allocated account information fed back by the micro server based on the account allocation request, the method further includes:
and storing the account information locally.
In a possible implementation manner, the instructions executed by the processor 61 further include, after the storing the account information locally:
in response to the account information release instruction, deleting the stored account information stored locally;
and the number of the first and second groups,
generating an account resetting instruction based on the stored account information and sending the account resetting instruction to the micro server; the account resetting instruction is used for instructing the micro server to reset the stored account information to an unassigned account.
An embodiment of the present application further provides a computer device 70, as shown in fig. 7, which is a schematic structural diagram of the computer device 70 provided in the embodiment of the present application, and includes: a processor 71, a memory 72, and a bus 73. The memory 72 stores machine-readable instructions executable by the processor 71 (such as, for example, the execution instructions corresponding to the broadcast module 51, the distribution module 52, etc. in the apparatus in fig. 5), when the computer device 70 runs, the processor 71 communicates with the memory 72 via the bus 73, and when the machine-readable instructions are executed by the processor 71, the following processes are performed:
periodically broadcasting account number distribution information in a target local area network;
if an account allocation request sent by the terminal device based on the account allocation information is received, selecting one account information from a plurality of unassigned account information, and sending the determined target account information to the terminal device, so that the terminal device logs in to an application server based on the determined target account information.
In a possible implementation, the instructions executed by the processor 71 further include: and changing the state of the selected target account information from unallocated to allocated.
In a possible implementation, the instructions executed by the processor 71 further include: and if an account resetting instruction sent by the terminal equipment is received, changing the state of the account information corresponding to the account resetting instruction from the allocated state to the unallocated state.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of the login method in the foregoing method embodiment.
The computer program product of the login method provided in the embodiment of the present application includes a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the steps of the login method in the above method embodiment, which may be referred to specifically in the above method embodiment, and are not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above 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, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, an application server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (20)

1. A login method is applied to terminal equipment and comprises the following steps:
after accessing the target local area network, receiving account number distribution information broadcasted to the target local area network by the micro server;
sending an account number distribution request to the micro server based on the account number distribution information;
receiving account information fed back by the micro server based on the account allocation request;
logging in to an application server based on the account information.
2. The method of claim 1, wherein the micro server is an electronic device accessing the target local area network and capable of communicating with a plurality of terminal devices within the target local area network.
3. The login method according to claim 1, wherein before sending the account allocation request to the micro server based on the account allocation information, the method further comprises:
detecting whether the stored account information exists locally;
the sending of the account allocation request to the micro server based on the account allocation information includes:
and if the stored account information does not exist locally, sending an account allocation request to the micro server based on the account allocation information.
4. The method of claim 3, further comprising: and if the stored account information exists locally, logging in the application server based on the stored account information.
5. The login method according to claim 1, wherein after receiving the account information fed back by the micro server based on the account allocation request, the method further comprises:
and storing the account information locally.
6. The login method according to claim 5, wherein after the account information is stored locally, the method further comprises:
in response to the account information release instruction, deleting the stored account information stored locally;
and the number of the first and second groups,
generating an account resetting instruction based on the stored account information and sending the account resetting instruction to the micro server; the account resetting instruction is used for instructing the micro server to reset the stored account information to an unassigned account.
7. A login method is applied to a micro server, and comprises the following steps:
periodically broadcasting account number distribution information in a target local area network;
if an account allocation request sent by the terminal device based on the account allocation information is received, selecting one piece of target account information from a plurality of pieces of unallocated account information, and sending the selected target account information to the terminal device, so that the terminal device logs in to an application server based on the target account information.
8. The login method according to claim 7, further comprising: and changing the state of the selected target account information from unallocated to allocated.
9. The login method according to claim 7, further comprising: and if an account resetting instruction sent by the terminal equipment is received, changing the state of the account information corresponding to the account resetting instruction from the allocated state to the unallocated state.
10. A login device is applied to a terminal device, and comprises:
the first receiving module is used for receiving account number distribution information broadcasted to the target local area network by the micro server after the target local area network is accessed;
the sending module is used for sending an account number distribution request to the micro server based on the account number distribution information;
the second receiving module is used for receiving account information fed back by the micro server based on the account allocation request;
and the login module is used for logging in the application server based on the account information.
11. The apparatus of claim 10, wherein the micro server is an electronic device accessing the target lan and capable of communicating with a plurality of terminal devices within the target lan.
12. The login apparatus according to claim 10, further comprising: the detection module is used for detecting whether the stored account information exists locally or not before the sending module sends an account allocation request to the micro server based on the account allocation information;
and the sending module is used for sending an account number distribution request to the micro server based on the account number distribution information after the detection module detects that the stored account number information does not exist locally.
13. The apparatus of claim 12, wherein the login module is further configured to log in to the application server based on the stored account information after the detection module detects that the stored account information exists locally.
14. The login apparatus according to claim 10, further comprising: a storage module;
and the storage module is used for storing the account information in local after the second receiving module receives the newly allocated account information fed back by the micro server based on the account allocation request.
15. The login apparatus according to claim 14, wherein the saving module, after saving the account information locally, is further configured to:
in response to the account information release instruction, deleting the stored account information stored locally;
the sending module is further used for generating an account resetting instruction based on the stored account information and sending the account resetting instruction to the micro server; the account resetting instruction is used for instructing the micro server to reset the stored account information to an unassigned account.
16. A login device applied to a micro server, the login device comprising:
the broadcasting module is used for periodically broadcasting the account number distribution information in the target local area network;
the allocation module is used for selecting one account number information from a plurality of unallocated account number information if an account number allocation request sent by the terminal equipment based on the account number allocation information is received, and sending the determined target account number information to the terminal equipment so that the terminal equipment logs in to an application server based on the determined target account number information.
17. The login apparatus according to claim 16, further comprising: and the first processing module is used for changing the state of the selected target account information from unallocated to allocated.
18. The login apparatus according to claim 16, further comprising: and the second processing module is used for changing the state of the account information corresponding to the account resetting instruction from the allocated state to the unallocated state when the account resetting instruction sent by the terminal equipment is received.
19. A computer device, comprising: processor, memory and bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when a computer device is running, the machine-readable instructions when executed by the processor performing the steps of the login method according to any one of claims 1 to 9.
20. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the login method according to one of claims 1 to 9.
CN202010006136.9A 2020-01-03 2020-01-03 Login method, login device, computer equipment and storage medium Active CN111200610B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010006136.9A CN111200610B (en) 2020-01-03 2020-01-03 Login method, login device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010006136.9A CN111200610B (en) 2020-01-03 2020-01-03 Login method, login device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111200610A true CN111200610A (en) 2020-05-26
CN111200610B CN111200610B (en) 2022-04-26

Family

ID=70746676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010006136.9A Active CN111200610B (en) 2020-01-03 2020-01-03 Login method, login device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111200610B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625810A (en) * 2020-05-28 2020-09-04 百度在线网络技术(北京)有限公司 Device login method, device and system
CN113037780A (en) * 2021-04-22 2021-06-25 读书郎教育科技有限公司 Automatic deployment method for intelligent classroom learning tablet
CN114765548A (en) * 2020-12-30 2022-07-19 成都鼎桥通信技术有限公司 Target service processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104518873A (en) * 2013-09-29 2015-04-15 北京新媒传信科技有限公司 Anonymous login method and device
CN105939362A (en) * 2016-06-27 2016-09-14 乐视控股(北京)有限公司 User account management method and device
CN108897844A (en) * 2018-06-27 2018-11-27 广州视源电子科技股份有限公司 The distribution of tutoring system account and method of calibration, device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104518873A (en) * 2013-09-29 2015-04-15 北京新媒传信科技有限公司 Anonymous login method and device
CN105939362A (en) * 2016-06-27 2016-09-14 乐视控股(北京)有限公司 User account management method and device
CN108897844A (en) * 2018-06-27 2018-11-27 广州视源电子科技股份有限公司 The distribution of tutoring system account and method of calibration, device and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625810A (en) * 2020-05-28 2020-09-04 百度在线网络技术(北京)有限公司 Device login method, device and system
CN111625810B (en) * 2020-05-28 2023-09-05 百度在线网络技术(北京)有限公司 Equipment login method, equipment and system
CN114765548A (en) * 2020-12-30 2022-07-19 成都鼎桥通信技术有限公司 Target service processing method and device
CN114765548B (en) * 2020-12-30 2023-09-05 成都鼎桥通信技术有限公司 Target service processing method and device
CN113037780A (en) * 2021-04-22 2021-06-25 读书郎教育科技有限公司 Automatic deployment method for intelligent classroom learning tablet

Also Published As

Publication number Publication date
CN111200610B (en) 2022-04-26

Similar Documents

Publication Publication Date Title
CN111200610B (en) Login method, login device, computer equipment and storage medium
CN109525605B (en) Account management method, device and system and computer readable storage medium
US9519654B2 (en) Method, device, processing center and system for desktop synchronization
CN109741755B (en) Voice awakening word threshold management device and method for managing voice awakening word threshold
US20180232515A1 (en) Client login method and apparatus and storage medium
CN102594817A (en) Password agent method, user terminal equipment and password agent server
CN108881228A (en) Cloud registration activation method, device, equipment and storage medium
CN109688183B (en) Group control equipment identification method, device, equipment and computer readable storage medium
CN104077123A (en) Interface display method, device, terminal and server
CN103036597A (en) Method and device of sharing resources among devices in close range
CN106790350B (en) Information pushing device, server and method
CN104125485A (en) Method, equipment and system for sharing user information
JP2022501757A (en) Automatic link-based message validation
CN111817999A (en) User login method and device
CN104866743A (en) Method and device for calling interface in browser
CN112333289A (en) Reverse proxy access method, device, electronic equipment and storage medium
CN106161356B (en) Method and system for rapidly logging in website through client
CN104679824A (en) Webpage generating method and webpage generating system of network platform
CN112423281A (en) Wireless module upgrading method and device, computer equipment and storage medium
CN104092694A (en) Method and system for allocation of account numbers of mobile game
US20160277384A1 (en) Information processing apparatus, information processing method, and information processing system
CN110231965B (en) Cloud device, application processing method and electronic device
CN109525485B (en) Message leaving method and terminal equipment
CN113079085B (en) Business service interaction method, business service interaction device, business service interaction equipment and storage medium
CN110717173B (en) Account activation method, account activation device, network terminal and computer readable storage 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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: Tiktok vision (Beijing) Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.