CN106295271A - Account automatic logging method, device and related system - Google Patents
Account automatic logging method, device and related system Download PDFInfo
- Publication number
- CN106295271A CN106295271A CN201510369661.6A CN201510369661A CN106295271A CN 106295271 A CN106295271 A CN 106295271A CN 201510369661 A CN201510369661 A CN 201510369661A CN 106295271 A CN106295271 A CN 106295271A
- Authority
- CN
- China
- Prior art keywords
- program
- identification information
- module
- unit
- logging
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing 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/2133—Verifying human interaction, e.g., Captcha
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing 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/2141—Access rights, e.g. capability lists, access control lists, access tables, access matrices
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种账户自动登录方法、装置及相关系统,所述方法包括第一设备接收第二设备通过广播发送的广播信号;获取所述广播信号中的标识信息;当所述广播信号中的标识信息与预存储标识信息相同时,确定待登录程序;调用所述待登录程序对应的账户信息登录所述待登录程序。与现有技术相比,本发明的技术方案中,如果用户切换登录终端,第一设备首先验证所接收的标识信息,当验证通过,向当前运行的待登录程序输入相应的账户信息,执行自动登录,从而无须用户在切换终端设备时反复输入账户信息,能够简化操作流程,提高用户体验。
The present invention discloses an account automatic login method, device and related system. The method includes a first device receiving a broadcast signal sent by a second device through broadcasting; acquiring identification information in the broadcast signal; When the identification information is the same as the pre-stored identification information, determine the program to be registered; call the account information corresponding to the program to be registered to log in the program to be registered. Compared with the prior art, in the technical solution of the present invention, if the user switches the login terminal, the first device first verifies the received identification information, and when the verification is passed, enters the corresponding account information into the currently running program to be logged in, and executes automatic Login, so that the user does not need to repeatedly input account information when switching terminal devices, which can simplify the operation process and improve user experience.
Description
技术领域technical field
本发明涉及互联网技术领域,更具体而言,涉及一种账户自动登录方法、装置及相关系统。The present invention relates to the technical field of the Internet, and more specifically, to an account automatic login method, device and related system.
背景技术Background technique
作为方便快捷、简单易行的信息交互平台,网络已经渗透到人们工作和生活的各个领域,人们的很多活动均能够借助网络平台完成,例如,人们的商品交易活动可以通过淘宝网等电子商务网站进行;人们日常的信息分享活动可以通过微博等网络平台实现。而人们使用网络平台进行活动前,需要注册属于自己的账户,并以该账户登录进入平台,以淘宝网为例,当用户需要使用该平台进行商品交易时,首先,需要注册属于自己的淘宝账号,并设置密码,以保护账户隐私,然后,通过输入相应的账号和密码进入平台,执行交易行为。As a convenient, fast, simple and easy information exchange platform, the Internet has penetrated into all areas of people's work and life. Many activities of people can be completed with the help of the network platform. carry out; people's daily information sharing activities can be realized through network platforms such as Weibo. Before people use the network platform to carry out activities, they need to register their own account and log in to the platform with this account. Taking Taobao as an example, when users need to use this platform for commodity transactions, they first need to register their own Taobao account. , and set a password to protect account privacy, and then enter the platform by entering the corresponding account number and password to execute transactions.
随着技术的飞速发展,接入网络的方式从有线发展为更加方便无线,从而也使得普及网络的区域越来越大,与此同时,人们日常使用的终端设备也越来越智能化,例如智能手机等,使得用户能够随时随地登录网络平台。例如,当用户在家时,可以通过电脑登录淘宝网,当用户等车或者外出时,可以通过手机或者平板电脑登录淘宝网,而当用户回到家后,可以再次通过电脑登录淘宝网。With the rapid development of technology, the way of accessing the network has evolved from wired to more convenient wireless, which also makes the area where the network is popularized. At the same time, the terminal devices that people use every day are becoming more and more intelligent, such as Smart phones, etc., enable users to log in to the network platform anytime, anywhere. For example, when a user is at home, he can log in to Taobao through a computer; when the user is waiting for a car or going out, he can log in to Taobao through a mobile phone or tablet; and when the user returns home, he can log in to Taobao again through a computer.
然而,虽然终端设备的形式越来越多,保证用户能够使用多台终端设备登录网络平台,但是,每个用户在相同的平台仅能够使用一个账户进行登录,造成用户在切换登录设备时需要多次重复输入账户的账号、密码或者密码,导致操作过程繁琐,用户体验差。However, although there are more and more types of terminal devices to ensure that users can use multiple terminal devices to log in to the network platform, each user can only use one account to log in on the same platform, resulting in the need for users to switch login devices. Repeatedly entering the account number, password or password of the account, resulting in cumbersome operation process and poor user experience.
发明内容Contents of the invention
为了解决上述技术问题,本发明实施例提供一种账户自动登录的方法、装置及相关系统,能够解决用户在多台终端上重复输入账户信息的问题,从而简化操作过程,提高用户体验。In order to solve the above technical problems, embodiments of the present invention provide a method, device and related system for automatic account login, which can solve the problem of users repeatedly inputting account information on multiple terminals, thereby simplifying the operation process and improving user experience.
第一方面,本发明提供了一种账户自动登录方法,包括:第一设备接收第二设备通过广播发送的广播信号;获取所述广播信号中的标识信息;当所述广播信号中的标识信息与预存储标识信息相同时,确定待登录程序;调用所述待登录程序对应的账户信息登录所述待登录程序。In a first aspect, the present invention provides a method for automatic account login, including: the first device receives a broadcast signal sent by the second device through broadcast; acquires the identification information in the broadcast signal; when the identification information in the broadcast signal When it is the same as the pre-stored identification information, determine the program to be registered; call the account information corresponding to the program to log in to log in the program to be registered.
结合第一方面,在第一方面的第一种可能的实施方式中,在获取所述广播信号中的标识信息之后,确定待登录程序之前,还包括:根据所述广播信号的信号强度计算与所述第二设备的距离;判断所述距离是否在预设范围内;当所述距离在预设范围内时,执行所述确定待登录程序的步骤。With reference to the first aspect, in the first possible implementation manner of the first aspect, after obtaining the identification information in the broadcast signal and before determining the program to be registered, the method further includes: calculating and the distance of the second device; judging whether the distance is within a preset range; when the distance is within a preset range, executing the step of determining the program to be logged in.
结合上述第一方面,在第二种可能的实施方式中,所述确定待登录程序,包括:检测系统当前所运行的程序;在当前所运行的程序中查找包含账户信息控件的程序,其中,所述账户信息控件为用于输入账户信息的控件;将所述包含账户信息控件的程序确定为所述待登录程序。With reference to the first aspect above, in a second possible implementation manner, the determining the program to be logged in includes: detecting the program currently running in the system; searching for a program containing an account information control in the currently running program, wherein, The account information control is a control for inputting account information; the program including the account information control is determined as the program to be logged in.
结合上述第一方面,在第三种可能的实施方式中,所述调用所述待登录程序对应的账户信息登录所述待登录程序,包括:读取所述待登录程序的程序标识;判断是否存储有所述程序标识;如果存储有所述程序标识,调用所述程序标识对应的账户信息,将所述账户信息输入相应的所述账户信息控件;如果未存储所述程序标识,获取所述待登录程序的账户信息,将所述程序标识与所述账户信息对应存储。In combination with the first aspect above, in a third possible implementation manner, the calling the account information corresponding to the program to be registered to log in to the program to be registered includes: reading the program identifier of the program to be registered; The program identification is stored; if the program identification is stored, call the account information corresponding to the program identification, and input the account information into the corresponding account information control; if the program identification is not stored, obtain the For the account information of the program to be logged in, store the program identifier and the account information correspondingly.
结合上述第一方面,在第四种可能的实施方式中,所述获取所述广播信号中的标识信息,包括:读取所述广播信号中的标识信息;按照预设规则将所述标识信息进行解密。With reference to the first aspect above, in a fourth possible implementation manner, the acquiring the identification information in the broadcast signal includes: reading the identification information in the broadcast signal; to decrypt.
结合上述第一方面,在第五种可能的实施方式中,在获取所述待登录程序对应的账户信息并执行登录操作之后,还包括:接收所述第二设备发送的广播信号;获取所述广播信号中的标识信息;当所述广播信号中的标识信息与预存储标识信息相同时,根据所述广播信号的信号强度计算与所述第二设备的距离;当所述距离不在预设范围内时,获取当前的已登录程序;修改所述已登录程序的状态退出登录。With reference to the first aspect above, in a fifth possible implementation manner, after obtaining the account information corresponding to the program to be logged in and performing the login operation, the method further includes: receiving a broadcast signal sent by the second device; obtaining the The identification information in the broadcast signal; when the identification information in the broadcast signal is the same as the pre-stored identification information, calculate the distance from the second device according to the signal strength of the broadcast signal; when the distance is not within the preset range When it is inside, obtain the current logged-in program; modify the status of the logged-in program and log out.
第二方面,本发明提供了一种账户自动登录装置,包括:接收模块,用于接收第二设备通过广播发送的广播信号;获取模块,用于获取所述接收模块所接收的广播信号中的标识信息;确定模块,用于在所述获取模块获取的广播信号中的标识信息与预存储标识信息相同时,确定待登录程序;调用模块,用于调用所述确定模块所确定的待登录程序对应的账户信息登录所述待登录程序。In a second aspect, the present invention provides an automatic account login device, including: a receiving module, configured to receive a broadcast signal sent by a second device through broadcast; an obtaining module, configured to obtain the broadcast signal received by the receiving module Identification information; a determination module, used to determine the program to be registered when the identification information in the broadcast signal acquired by the acquisition module is the same as the pre-stored identification information; a calling module, used to call the program to be registered determined by the determination module The corresponding account information is used to log in the program to be logged in.
结合第二方面,在第二方面的第一种可能的实施方式中,还包括:计算模块,用于根据所述广播信号的信号强度计算与所述第二设备的距离;判断模块,用于判断所述计算模块计算得到的距离是否在预设范围内;当所述距离在预设范围内时,所述确定模块确定所述待登录程序。With reference to the second aspect, in a first possible implementation manner of the second aspect, the method further includes: a calculation module, configured to calculate a distance from the second device according to the signal strength of the broadcast signal; a judging module, configured to judging whether the distance calculated by the calculating module is within a preset range; when the distance is within a preset range, the determining module determines the program to be registered.
结合上述第二方面,在第二种可能的实施方式中,所述确定模块包括检测单元,查找单元和确定单元,其中,所述检测单元,用于检测系统当前所运行的程序;所述查找单元,用于在所述检测单元所检测到的当前所运行的程序中查找包含账户信息控件的程序,其中,所述账户信息控件为用于输入账户信息的控件;所述确定单元,用于将所述查找单元查找到的包含账户信息控件的程序确定为所述待登录程序。With reference to the second aspect above, in a second possible implementation manner, the determination module includes a detection unit, a search unit, and a determination unit, wherein the detection unit is used to detect the program currently running in the system; the search A unit, configured to search for a program that includes an account information control among currently running programs detected by the detection unit, wherein the account information control is a control for inputting account information; the determining unit is configured to The program including the account information control found by the search unit is determined as the program to be logged in.
结合上述第二方面,在第三种可能的实施方式中,所述调用模块包括读取单元,调用单元,输入单元,获取单元和存储单元,其中,所述读取单元,用于读取所述待登录程序的程序标识;所述判断模块,还用于判断是否存储有所述程序标识;所述调用单元,用于在所述判断模块判断存储有所述程序标识时,调用所述程序标识对应的账户信息;所述输入单元,用于将所述调用单元所调用的账户信息输入相应的所述账户信息控件;所述获取单元,用于在所述判断模块判断未存储有所述程序标识时,获取所述待登录程序的账户信息;所述存储单元,用于将所述程序标识与所述获取单元获取的账户信息对应存储。With reference to the second aspect above, in a third possible implementation manner, the calling module includes a reading unit, a calling unit, an input unit, an acquiring unit, and a storage unit, wherein the reading unit is used to read the Describe the program identifier of the program to be registered; the judging module is also used to judge whether the program identifier is stored; the calling unit is used to call the program when the judging module judges that the program identifier is stored Identify the corresponding account information; the input unit is used to input the account information called by the calling unit into the corresponding account information control; the acquiring unit is used to judge in the judging module that the When the program is identified, the account information of the program to be logged in is obtained; the storage unit is configured to store the program identification corresponding to the account information obtained by the obtaining unit.
结合上述第二方面,在第四种可能的实施方式中,所述获取模块包括解密单元,其中,所述读取单元,还用于读取所述广播信号中的标识信息;所述解密单元,用于按照预设规则将所述读取单元读取的标识信息进行解密。With reference to the second aspect above, in a fourth possible implementation manner, the acquisition module includes a decryption unit, wherein the reading unit is further configured to read the identification information in the broadcast signal; the decryption unit , for decrypting the identification information read by the reading unit according to a preset rule.
结合上述第二方面,在第五种可能的实施方式中,还包括状态修改模块,其中,所述获取模块,还用于在所述距离不在预设范围内时,获取当前的已登录程序;所述状态修改模块,用于修改所述获取模块获取的已登录程序的状态退出登录。With reference to the second aspect above, in a fifth possible implementation manner, a state modification module is further included, wherein the obtaining module is further configured to obtain a currently logged-in program when the distance is not within a preset range; The state modifying module is configured to modify the state of the logged-in program obtained by the obtaining module and log out.
第三方面,本发明提供了一种账户自动登录系统,包括:第一设备和第二设备,其中,所述第一设备如第二方面所述;所述第二设备,用于通过广播发送广播信号。In a third aspect, the present invention provides an account automatic login system, including: a first device and a second device, wherein the first device is as described in the second aspect; the second device is used to broadcast broadcast signal.
由以上描述可知,对于多终端切换时需要重复登录账户的问题,本发明实施例的技术方案,第一设备在登录前,接收第二设备发送的广播信号,在接收到之后,获取广播信号中的标识信息,当广播信号中的标识信息与预存储标识信息相同时,确定待登录程序,并调用待登录程序对应的账户信息登录所述待登录程序。与现有技术相比,如果用户切换登录终端,第一设备首先验证所接收的标识信息,当验证通过,向当前运行的待登录程序输入相应的账户信息,执行自动登录,从而无须用户在切换终端设备时反复输入账户信息,能够简化操作流程,提高用户体验。As can be seen from the above description, for the problem of repeatedly logging in to the account when switching between multiple terminals, the technical solution of the embodiment of the present invention is that the first device receives the broadcast signal sent by the second device before logging in, and after receiving it, obtains the broadcast signal. When the identification information in the broadcast signal is the same as the pre-stored identification information, the program to be registered is determined, and the account information corresponding to the program to be registered is called to log in the program to be registered. Compared with the existing technology, if the user switches the login terminal, the first device first verifies the received identification information, and when the verification is passed, enters the corresponding account information into the currently running program to be logged in, and performs automatic login, so that the user does not need to switch Repeatedly inputting account information when using a terminal device can simplify the operation process and improve user experience.
应当理解的是,以上的一般描述和后文的细节描述仅为示例性和解释性描述,对本发明技术方案并不构成限制。It should be understood that the above general description and the following detailed description are only exemplary and explanatory descriptions, and do not limit the technical solution of the present invention.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。通过附图所示,本发明的上述及其它目的、特征和优势将更加清晰。在全部附图中相同的附图标记指示相同的部分。并未刻意按实际尺寸等比例缩放绘制附图,重点在于示出本发明的主旨。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the accompanying drawings required in the embodiments. Obviously, the accompanying drawings in the following description are only some of the present invention. Embodiments, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort. The above and other objects, features and advantages of the present invention will be more clearly illustrated by the accompanying drawings. Like reference numerals designate like parts throughout the drawings. The drawings are not intentionally scaled according to the actual size, and the emphasis is on illustrating the gist of the present invention.
图1是本发明实施例提供的账户自动登录方法的流程图;FIG. 1 is a flowchart of an account automatic login method provided by an embodiment of the present invention;
图2是本发明实施例提供的另一种账户自动登录方法的流程图;Fig. 2 is a flowchart of another account automatic login method provided by an embodiment of the present invention;
图3是本发明提供的第一次登录网站时的界面示意图;Fig. 3 is a schematic diagram of the interface when logging into the website for the first time provided by the present invention;
图4是本发明实施例提供的账户自动登录装置的结构示意图;Fig. 4 is a schematic structural diagram of an account automatic login device provided by an embodiment of the present invention;
图5是本发明实施例提供的另一种账户自动登录装置的结构示意图;Fig. 5 is a schematic structural diagram of another automatic account login device provided by an embodiment of the present invention;
图6是本发明实施例提供的账户自动登录系统的结构示意图。Fig. 6 is a schematic structural diagram of an account automatic login system provided by an embodiment of the present invention.
具体实施方式detailed description
目前,由于智能移动终端的普遍使用,当用户从智能移动终端切换到PC(personalcomputer,个人电脑)登录某网站时,为了避免重复输入账户信息,现有的一种方式为,使用移动终端扫描PC上的二维码登录。然而,当本次登录失效,在下次登录时,仍然需要再次扫描二维码,同样操作繁琐。当然,现有的技术中还包括一种自动登录方式,在用户第一次登录某网站时,设备记录账户信息,以后打开该网站时,设备自动填写账户信息,实现自动登录。但是这种方式无论谁打开该网站,设备均会自动填写用户的账户信息,造成安全性差。为了解决上述问题,本发明实施例提供了一种既方便又安全的账户登录方法。At present, due to the widespread use of smart mobile terminals, when a user switches from a smart mobile terminal to a PC (personal computer) to log in to a website, in order to avoid repeatedly inputting account information, an existing method is to use a mobile terminal to scan the PC Login with the QR code above. However, when the current login fails, the next login still needs to scan the QR code again, which is also cumbersome. Of course, the existing technology also includes an automatic login method. When the user logs in to a website for the first time, the device records the account information, and when the website is opened later, the device automatically fills in the account information to realize automatic login. However, no matter who opens the website in this way, the device will automatically fill in the user's account information, resulting in poor security. In order to solve the above problems, an embodiment of the present invention provides a convenient and safe account login method.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整的描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
请参见图1,图1为本发明实施例提供的账户自动登录方法的流程图。如图1所示,该方法包括以下步骤。Please refer to FIG. 1 . FIG. 1 is a flowchart of an account automatic login method provided by an embodiment of the present invention. As shown in Figure 1, the method includes the following steps.
步骤S101,第一设备接收第二设备通过广播发送的广播信号。In step S101, the first device receives a broadcast signal sent by the second device through broadcast.
其中,本发明实施例的技术方案中,第一设备和第二设备分别具有近场广播收发功能,或者第一、第二设备均同时具有近场广播收发功能,近场广播收发功能可以通过ibeacon技术实现。Among them, in the technical solution of the embodiment of the present invention, the first device and the second device respectively have a near-field broadcast sending and receiving function, or the first and second devices both have a near-field broadcast sending and receiving function, and the near-field broadcast sending and receiving function can be passed through ibeacon Technical realization.
预先在第一设备终端设备中设置实现自动登录的应用程序,在设置应用程序时,为第二设备设置标识信息,并将标识信息存储在第一、第二设备中,本实施例中,通过标识信息将属于同一用户的第一、第二设备相互关联。在执行时,应用程序可以将标识信息包含在数据包中,数据包以广播信号的方式进行传输,第二设备将广播信号进行广播,第一设备接收由第二设备广播的广播信号,并解析广播信号获得第二设备的标识信息,根据预先设置在第一设备中的标识信息对广播信号中的标识信息进行验证,从而判断是否为相关联的第一、第二设备,进而确定是否执行自动登录。An application program for automatic login is pre-set in the terminal device of the first device. When setting the application program, the identification information is set for the second device, and the identification information is stored in the first and second devices. In this embodiment, by The identification information associates the first and second devices belonging to the same user with each other. During execution, the application program can include the identification information in the data packet, and the data packet is transmitted in the form of a broadcast signal, the second device broadcasts the broadcast signal, and the first device receives the broadcast signal broadcast by the second device, and analyzes the The broadcast signal obtains the identification information of the second device, and verifies the identification information in the broadcast signal according to the identification information preset in the first device, so as to judge whether it is the associated first and second devices, and then determine whether to perform automatic Log in.
本实施例中,标识信息可以是组成iBeacon数据的UUID(Universally UniqueIdentifier,通用唯一识别码)。当然,上述仅为本发明实施例的优选实施方式,本发明实施例的技术方案不限于此。此外,需要指出的是,标识信息可以由应用程序设置,也可以用户手动设置,本发明实施例对此不做限制。In this embodiment, the identification information may be a UUID (Universally Unique Identifier, Universally Unique Identifier) constituting the iBeacon data. Of course, the foregoing is only a preferred implementation manner of the embodiment of the present invention, and the technical solution of the embodiment of the present invention is not limited thereto. In addition, it should be pointed out that the identification information may be set by an application program or manually by a user, which is not limited in this embodiment of the present invention.
此外,本发明实施例中,接收广播信号的第一设备可以为PC、平板电脑、手机或者智能手环等;作为信号广播的第二设备也可以为PC、平板电脑、手机或者智能手环等,而且,本发明实施例的技术方案,多台第一设备可以对应一台第二设备。In addition, in the embodiment of the present invention, the first device receiving the broadcast signal may be a PC, a tablet computer, a mobile phone, or a smart bracelet, etc.; the second device used as a signal broadcast may also be a PC, a tablet computer, a mobile phone, or a smart bracelet, etc. Moreover, according to the technical solution of the embodiment of the present invention, multiple first devices may correspond to one second device.
步骤S102,获取所述广播信号中的标识信息。Step S102, acquiring identification information in the broadcast signal.
其中,由于设置标识信息的目的是将属于同一用户的设备进行关联,因此,本实施例中,可以将同一用户所使用的第一、第二设备的标识信息设置为相同的标识信息。例如,将姓名为李明的用户的手机、PC、平板电脑及工作所用电脑的标识信息全部设置为“lm010”。需要说明的是,本实施例中第一、第二设备不仅仅只是两个设备,也可以包括多个设备,用户可以通过设置相同的标识信息将多个第一、第二设备进行关联。同时,第一、第二设备仅为了方便说明本实施例是在不同的设备之间实施的,在一些场景下,第一设备和第二设备完全可以进行互换,只要第一、第二设备均具有近场广播的收发功能。Wherein, since the purpose of setting the identification information is to associate devices belonging to the same user, in this embodiment, the identification information of the first and second devices used by the same user may be set as the same identification information. For example, set all identification information of the mobile phone, PC, tablet computer and work computer of the user named Li Ming to "lm010". It should be noted that the first and second devices in this embodiment are not only two devices, but may also include multiple devices, and the user can associate multiple first and second devices by setting the same identification information. At the same time, the first and second devices are only for convenience to illustrate that this embodiment is implemented between different devices. In some scenarios, the first device and the second device can be completely interchanged, as long as the first and second devices Both have near-field broadcasting sending and receiving functions.
本步骤中,当第一设备接收到广播信号后,从广播信号中获取标识信息,并通过判断广播信号中的标识信息与预存储标识信息是否相同,对标识信息进行验证。当广播信号中的标识信息与预存储标识信息相同时,说明第二设备与第一设备为关联设备,验证通过,执行账户自动登录的步骤;如果广播信号中的标识信息与预存储标识信息不相同,说明第二设备并非第一设备的关联设备,用户可能不在附近,第一设备的应用程序不执行任何操作。In this step, after receiving the broadcast signal, the first device obtains the identification information from the broadcast signal, and verifies the identification information by judging whether the identification information in the broadcast signal is the same as the pre-stored identification information. When the identification information in the broadcast signal is the same as the pre-stored identification information, it means that the second device and the first device are associated devices, and the verification is passed, and the step of automatically logging in to the account is performed; if the identification information in the broadcast signal is not the same as the pre-stored identification information Similarly, it means that the second device is not an associated device of the first device, the user may not be nearby, and the application program of the first device does not perform any operation.
当然,需要说明的是,将关联设备的标识信息设置为相同标识信息的方式,仅为本发明技术方案的一个优选实施方式,本发明实施例还可以将标识信息设置为其他形式,例如,如果用户常使用两台终端设备,那么,可以将其中一台终端设备的标识信息通过某种加密算法运算,将运算结果作为另一台终端设备的标识信息。Of course, it should be noted that the method of setting the identification information of the associated device to the same identification information is only a preferred implementation of the technical solution of the present invention, and the embodiment of the present invention can also set the identification information in other forms, for example, if The user often uses two terminal devices, so the identification information of one of the terminal devices can be calculated through a certain encryption algorithm, and the calculation result can be used as the identification information of the other terminal device.
步骤S103,当所述广播信号中的标识信息与预存储标识信息相同时,确定待登录程序。Step S103, when the identification information in the broadcast signal is the same as the pre-stored identification information, determine the program to be registered.
其中,当标识信息验证通过,向终端运行的待登录程序输入相应账户信息,执行自动登录。需要说明的是,应用程序预先存储每个可登录程序的程序标识及其对应账户信息,而由于可登录程序的数量较大,而且不可能同时运行,因此,在执行自动登录前,首先需要确定当前正在运行的待登录程序。Wherein, when the verification of the identification information is passed, the corresponding account information is input into the waiting-to-login program running on the terminal, and automatic login is performed. It should be noted that the application program pre-stores the program ID of each log-in program and its corresponding account information. Since there are a large number of log-in programs and it is impossible to run them at the same time, before performing automatic login, you must first determine The program currently running to be logged on.
目前,基于程序的操作系统,例如,windows操作系统、IOS操作系统和安卓系统等,前台运行任何程序及当前程序的状态,操作系统均进行实时监控,因此,本实施例中,可以通过操作系统确定当前所运行的程序,然后,进一步对所运行的程序进行判断,将包含账户信息控件的程序确定为待登录程序。其中,本发明实施例中,账户信息控件是指,登录程序时需要输入账户信息的控件。由于程序中每个控件均设置有标识或者属性值,登录所需的账户信息通常包括账号和密码两项信息,而账号所对应的控件的属性值为username,密码对应的控件的属性值为password,因此,本发明实施例中,可以将属性为username及password的控件确定为账户信息控件。当然,本发明实施例还可以通过控件的其他性质判断,此处不再赘述。At present, based on the operating system of program, for example, windows operating system, IOS operating system and Android system, etc., any program running in the foreground and the status of the current program are monitored in real time by the operating system. Therefore, in this embodiment, the operating system can Determine the currently running program, and then further judge the running program, and determine the program including the account information control as the program to be logged in. Wherein, in the embodiment of the present invention, the account information control refers to a control that needs to input account information when logging into a program. Since each control in the program is set with an identifier or attribute value, the account information required for login usually includes account and password information, and the attribute value of the control corresponding to the account is username, and the attribute value of the control corresponding to the password is password Therefore, in the embodiment of the present invention, the control whose attributes are username and password can be determined as the account information control. Of course, this embodiment of the present invention can also be judged by other properties of the control, which will not be repeated here.
此外,本发明实施例中,待登录程序可以是电脑操作系统管理员账户,用户社交平台或者网购平台等,例如,淘宝网、人人网及微博等,当然,还可以包括其他网络平台,本发明实施例对此不做限制。需要说明的是,用户可以根据网络平台对安全性的要求,自行选择可以自动登录的账户,例如,支付宝账户对安全性的要求较高,用户可以选择将支付宝平台设置为始终手动输入账户信息进行登录。In addition, in the embodiment of the present invention, the program to be logged in can be a computer operating system administrator account, a user social platform or an online shopping platform, such as Taobao, Renren and Weibo, etc. Of course, other network platforms can also be included. This embodiment of the present invention does not limit this. It should be noted that users can choose accounts that can be automatically logged in according to the security requirements of the network platform. For example, Alipay accounts have higher security requirements, and users can choose to set the Alipay platform to always manually enter account information Log in.
步骤S104:调用所述待登录程序对应的账户信息登录所述待登录程序。Step S104: calling the account information corresponding to the program to be registered to log in the program to be registered.
其中,在确定当前待登录程序后,可以读取待登录程序的程序标识,根据程序标识查找待登录程序对应的账户信息,如果能够查找到所述账户信息,则可以调取所述账户信息,并将所述账户信息输入待登录程序的账户信息控件,完成自动登录;如果无法查找到所述账户信息,说明待登录网站为第一次登录,在用户手动输入账户信息后,获取所述账户信息,将所述程序标识与所述账户信息对应存储。Wherein, after the current program to be logged in is determined, the program identifier of the program to be logged in can be read, and the account information corresponding to the program to be logged in can be searched according to the program identifier, and if the account information can be found, the account information can be called, And input the account information into the account information control of the program to be logged in to complete the automatic login; if the account information cannot be found, it means that the website to be logged in is the first login, and after the user manually enters the account information, the account is obtained information, storing the program identifier and the account information correspondingly.
需要说明的是,由于在存储账户信息时,将账户信息中的账号信息和密码信息全部存储,而很多程序运行时,自动填写账号信息,此时仅自动输入密码信息即可,因此,当查找到所述账户信息后,可以检测账号信息控件的内容,如果账号信息控件的内容为空,则调用所述账户信息时,调用账号信息和密码信息;如果账号信息控件的内容不为空,调用所述账户信息时只调用密码信息即可。It should be noted that when storing the account information, all the account information and password information in the account information are stored, and when many programs are running, the account information is automatically filled in, and only the password information is automatically entered at this time. Therefore, when searching After obtaining the account information, the content of the account information control can be detected. If the content of the account information control is empty, when calling the account information, call the account information and password information; if the content of the account information control is not empty, call For the account information, only the password information can be called.
此外,当待登录程序为第一次登录时,可以将账户信息与程序标识对应存储,由于账户信息中的账号信息和密码信息均为字符串,为了将两字符串的属性进行区分,在存储时,可以以表1所示的方式进行存储,将信息写入相应标识下。In addition, when the program to be logged in is the first login, the account information and the program identifier can be stored correspondingly. Since the account information and password information in the account information are both strings, in order to distinguish the attributes of the two strings, the , it can be stored in the manner shown in Table 1, and the information can be written under the corresponding identifier.
表1Table 1
本实施例所述的技术方案,通过标识信息将用户经常使用的终端设备进行关联,在使用其中任意一台设备登录网站时,均需要验证其关联设备的标识信息,从而不仅能够实现自动登录,而且能够为用户的账户信息提供一层安全保障。The technical solution described in this embodiment associates the terminal devices frequently used by users through identification information. When using any of the devices to log in to the website, it is necessary to verify the identification information of the associated device, so that not only can automatic login be realized, And it can provide a layer of security for the user's account information.
上述实施例从整体角度对本发明实施例的技术方案进行的描述,为了使本领域技术人员对本发明实施例的技术方案进行更加深刻、更加详细的了解,下面在上述实施例的基础上,将结合实际案例对本发明实施例的技术方案进行展开描述。The above-mentioned embodiments describe the technical solutions of the embodiments of the present invention from an overall perspective. In order to enable those skilled in the art to have a deeper and more detailed understanding of the technical solutions of the embodiments of the present invention, on the basis of the above-mentioned embodiments, we will combine Actual cases describe the technical solutions of the embodiments of the present invention.
由于本实施例是对上述实施例的补充描述,本实施例中,与上述实施例相同的步骤参见上述实施例的描述,本实施例此处不再赘述。Since this embodiment is a supplementary description to the above embodiment, in this embodiment, for the same steps as those in the above embodiment, refer to the description of the above embodiment, and this embodiment will not be repeated here.
请参见图2,图2为本发明实施例提供的另一种账户自动登录方法的流程图,该方法包括下列步骤:Please refer to Fig. 2, Fig. 2 is a flowchart of another account automatic login method provided by an embodiment of the present invention, the method includes the following steps:
步骤S201:第一设备接收第二设备通过广播发送的广播信号。Step S201: the first device receives a broadcast signal sent by the second device through broadcast.
假设本实施例中,用户惯常使用的终端设备为智能手机和PC,需要经常在智能手机和PC之间切换登录网站。Assume that in this embodiment, the user's usual terminal devices are smartphones and PCs, and it is necessary to frequently switch between the smartphones and the PC to log in to the website.
假设用户使用PC登录网站,PC接收手机发送的广播信号,并对广播信号中的标识信息进行验证。当然,如果还有其他设备发送广播信号,PC也将接收并验证。例如,PC周围有其他用户时,PC同样能够接收到其他用户的手机所发送的广播信号。Assuming that the user logs in to the website using a PC, the PC receives the broadcast signal sent by the mobile phone, and verifies the identification information in the broadcast signal. Of course, if there are other devices sending broadcast signals, the PC will also receive and verify them. For example, when there are other users around the PC, the PC can also receive broadcast signals sent by mobile phones of other users.
步骤S202:读取所述广播信号中的标识信息。Step S202: Read the identification information in the broadcast signal.
由于用户仅在两台终端设备之间进行切换,因此,本实施例中,将智能手机的标识信息按照一定规则进行加密,将加密后的标识信息作为PC的标识信息。例如,智能手机的标识信息为lm010,按照逆序规则将lm010进行逆序处理得到010ml,那么将010ml作为PC的标识信息,并存储到PC端。Since the user only switches between two terminal devices, in this embodiment, the identification information of the smart phone is encrypted according to certain rules, and the encrypted identification information is used as the identification information of the PC. For example, the identification information of the smart phone is lm010, and lm010 is processed in reverse order according to the reverse sequence rule to obtain 010ml, then 010ml is used as the identification information of the PC and stored on the PC side.
当然,上述仅为本发明的一个优选示例,本发明的技术方案,也可以按照其他加密规则设置两台关联设备的标识信息,本发明实施例对此不做限制。Of course, the above is only a preferred example of the present invention. In the technical solution of the present invention, the identification information of the two associated devices can also be set according to other encryption rules, which is not limited in the embodiment of the present invention.
本实施例的技术方案,通过将两台关联设备的标识信息按照预设加密规则进行设置,使得标识信息不易破解,从而提高了用户账户信息的安全性。In the technical solution of this embodiment, by setting the identification information of two associated devices according to preset encryption rules, the identification information is not easy to crack, thereby improving the security of user account information.
步骤S203:按照预设规则将所述标识信息进行解密。Step S203: Decrypt the identification information according to preset rules.
基于上述步骤,PC的标识信息与智能手机的标识信息互为加密信息,因此,与上述实施例相比,本实施例中,当PC获取智能手机的标识信息后,需要先根据预设解密规则将标识信息进行解密处理,得到用于验证的标识信息,并判断解密后的标识信息与预存储的标识信息是否相同。当然,如果用户使用智能手机时,智能手机读取到的PC的标识信息后,同样需要进行解密操作,本实施例此处不再赘述。Based on the above steps, the identification information of the PC and the identification information of the smart phone are mutually encrypted information. Therefore, compared with the above-mentioned embodiment, in this embodiment, after the PC obtains the identification information of the smart phone, it needs to first decrypt according to the preset decryption rules. The identification information is decrypted to obtain identification information for verification, and it is judged whether the decrypted identification information is the same as the pre-stored identification information. Of course, if the user uses a smart phone, the smart phone also needs to perform a decryption operation after reading the identification information of the PC, which will not be repeated here in this embodiment.
例如,PC端预存储的标识信息为010ml,而读取到智能手机的标识信息lm010,由于lm010为010ml按照逆序规则处理后得到的标识信息,即,lm010为加密后的标识信息,在判断之前,按照解密规则将lm010进行逆序处理,本实施例中,解密规则依然为逆序规则,得到用于验证的标识信息010ml。For example, the identification information pre-stored on the PC is 010ml, and the identification information lm010 of the smartphone is read, since lm010 is the identification information obtained after processing 010ml according to the reverse order rule, that is, lm010 is the encrypted identification information, before judging , process lm010 in reverse order according to the decryption rule. In this embodiment, the decryption rule is still the reverse order rule, and the identification information 010ml for verification is obtained.
需要说明的是,如果加密规则为其他处理方式,那么,解密规则为加密规则的逆运算,本发明实施例此处不再详述。It should be noted that if the encryption rule is another processing method, then the decryption rule is an inverse operation of the encryption rule, which will not be described in detail here in this embodiment of the present invention.
步骤S204:当所述广播信号中的标识信息与预存储标识信息相同时,根据所述广播信号的信号强度计算与所述第二设备的距离。Step S204: When the identification information in the broadcast signal is the same as the pre-stored identification information, calculate the distance to the second device according to the signal strength of the broadcast signal.
其中,本发明实施例的技术方案,终端设备在执行自动登录前,对关联终端设备的标识进行验证,目的在于对用户的身份进行验证,从而增设安全认证,为了进一步提高账户信息的安全性,还提供了本实施例的实施方式。Among them, in the technical solution of the embodiment of the present invention, the terminal device verifies the identity of the associated terminal device before performing automatic login, the purpose is to verify the identity of the user, thereby adding security authentication, in order to further improve the security of account information, Implementations of this embodiment are also provided.
本实施例中,预先设置距离范围,当智能手机与PC的距离在预设范围内时,执行下一步操作;当智能手机与PC的距离不在预设范围内时,不执行自动登录操作。具体的,由于广播信号的信号强度随距离的增加而减弱,所以,在广播信号中的标识信息验证通过后,PC可以根据广播信号的强度计算与智能手机的距离,并判断当前距离是否在预设距离范围内,根据判断结果触发下一步执行程序。In this embodiment, the distance range is preset, and when the distance between the smartphone and the PC is within the preset range, the next operation is performed; when the distance between the smartphone and the PC is not within the preset range, the automatic login operation is not performed. Specifically, since the signal strength of the broadcast signal decreases with the increase of the distance, after the identification information in the broadcast signal is verified, the PC can calculate the distance to the smartphone according to the strength of the broadcast signal, and judge whether the current distance is within the preset distance. Within the set distance range, the next step is triggered to execute the program according to the judgment result.
需要说明的是,根据信号强度计算距离的方法,为本领域技术人员所熟知的技术手段,本发明实施例此处不再赘述。It should be noted that the method for calculating the distance according to the signal strength is a technical means well known to those skilled in the art, and will not be repeated here in the embodiment of the present invention.
步骤S205:判断所述距离是否在预设范围内。Step S205: Determine whether the distance is within a preset range.
基于上述描述,假设预设范围是1m,当智能手机与PC的距离小于或者等于1m时,执行自动登录操作;当智能手机与PC的距离大于1m时,PC不执行任何操作。Based on the above description, assuming that the preset range is 1m, when the distance between the smartphone and the PC is less than or equal to 1m, the automatic login operation is performed; when the distance between the smartphone and the PC is greater than 1m, the PC does not perform any operation.
步骤S206:当所述距离在预设范围内时,确定待登录程序。Step S206: When the distance is within the preset range, determine the program to be registered.
根据上述实施例的描述可知,采用自动登录的程序可以由用户自行设置,自动登录的程序可以为操作系统的锁定程序、浏览器运行的待登录网站程序及QQ等独立软件程序。因此,当智能手机与PC的距离在1m之内时,本实施例的具体登录过程可以为,PC可以首先检测操作系统是否为锁定状态,如果操作系统为锁定状态,那么,待登录网站程序及待登录的软件程序可能还未运行,即使在运行,由于操作系统被锁定,账户信息的安全性也不会受到影响,所以,可以先调用操作系统的账户密码,登录操作系统。According to the description of the above-mentioned embodiment, it can be known that the program for automatic login can be set by the user, and the program for automatic login can be the locking program of the operating system, the website program to be logged in and the QQ etc. independent software programs run by the browser. Therefore, when the distance between the smart phone and the PC is within 1m, the specific login process of this embodiment can be as follows: the PC can first detect whether the operating system is in a locked state, if the operating system is in a locked state, then the website program to be logged in and The software program to be logged in may not be running yet. Even if it is running, the security of the account information will not be affected because the operating system is locked. Therefore, the account password of the operating system can be called first to log in to the operating system.
当操作系统为运行状态时,待登录程序通过浏览器运行,或者通过独立的软件运行。在获取浏览器中运行的待登录程序的程序标识时,PC可以将待登录程序的域名作为程序标识,在浏览器中读取,例如,淘宝网的域名taobao.com;在获取软件程序的程序标识时,例如,QQ,可以直接通过操作系统读取该软件的标识信息,并将软件的标识信息作为程序标识。When the operating system is in the running state, the program to be logged in runs through the browser, or runs through independent software. When obtaining the program identification of the program to be registered running in the browser, the PC can use the domain name of the program to be registered as the program identification to read in the browser, for example, the domain name taobao.com of Taobao; When identifying, for example, QQ, the identification information of the software can be read directly through the operating system, and the identification information of the software can be used as the program identification.
需要说明的是,当操作系统处于运行状态时,如果所运行的待登录程序为多个,PC可以将所运行的待登录程序同时自动登录。与现有技术相比,不仅能够避免输入待登录程序的账户信息,而且能够实现多程序账户共同登录,大大简化了操作流程,提高用户体验。It should be noted that, when the operating system is in the running state, if there are multiple programs running to be registered, the PC can automatically log in the running programs to be registered at the same time. Compared with the prior art, it can not only avoid inputting the account information of the program to be logged in, but also realize the co-login of multiple program accounts, which greatly simplifies the operation process and improves the user experience.
此外,根据上述实施例的描述,如果待登录程序在本台PC上第一次登录,那么需要将该待登录程序的账户信息进行保存。本实施例以淘宝网为例,对存储账户信息的过程进行详细描述。In addition, according to the description of the above embodiment, if the program to be logged in logs in for the first time on the local PC, the account information of the program to be logged in needs to be saved. This embodiment takes Taobao as an example to describe the process of storing account information in detail.
请参见图3,图3为第一次登录网站时的界面示意图,如果PC无法查找到淘宝网的域名,则创建两个控件,两个控件的ID分别对应账户信息中“账号”和“密码”两个标识。用户在淘宝网界面中输入账户信息后,所创建的控件在PC界面上显示,用户可以通过拖线的方式将账户信息发送至所创建的控件。如图所示,将包含账号信息的控件与标识为“账号”的控件连接,将包含密码信息的控件与标识为“密码”的控件连接。拖线时,PC检测相互连接的两控件及箭头指向,按照箭头指向获取账号信息和密码信息存储到表1对应的位置,同时建立网站中输入账号的控件与创建的“账号”控件的对应关系,以及网站中输入密码的控件与创建的“密码”控件的对应关系。Please refer to Figure 3. Figure 3 is a schematic diagram of the interface when logging in to the website for the first time. If the PC cannot find the domain name of Taobao, create two controls. The IDs of the two controls correspond to the "account" and "password" in the account information respectively. "Two logos. After the user enters the account information in the Taobao interface, the created control is displayed on the PC interface, and the user can send the account information to the created control by dragging a line. As shown in the figure, connect the control containing account information to the control marked "account", and connect the control containing password information to the control marked "password". When dragging the line, the PC detects the two connected controls and the direction of the arrow, obtains the account information and password information according to the direction of the arrow and stores them in the corresponding position in Table 1, and establishes the corresponding relationship between the control for entering the account in the website and the created "account" control , and the corresponding relationship between the control for entering the password in the website and the created "Password" control.
步骤S207:调用所述待登录程序对应的账户信息登录所述待登录程序。Step S207: call the account information corresponding to the program to be registered to log in the program to be registered.
其中,需要说明的是,登录任何程序时,在输入账户信息后,还需要点击触发控件才能够成功登录,所以,在上述实施例的基础上,在存储待登录程序对应的账户信息的同时,还可以获取触发控件的控件标识,并添加模拟触控功能,在执行自动登录操作时,输入相应账户信息后,对触发控件执行模拟触控操作。Among them, it should be noted that when logging in to any program, after entering the account information, you need to click the trigger control to successfully log in. Therefore, on the basis of the above embodiments, while storing the account information corresponding to the program to be logged in, It is also possible to obtain the control identification of the trigger control, and add a simulated touch function, and perform a simulated touch operation on the trigger control after inputting corresponding account information when performing an automatic login operation.
此外,需要说明的是,智能手机作为用户的随身设备,可能随用户的位置改变与PC的距离,而智能手机以一定频率通过广播发送广播信号,因此,即使当前程序处于登录状态,但是PC不断接收智能手机的预设标识信号,每接收一次,重复执行一次获取标识信息、判断及计算与智能手机距离的步骤,当用户携智能手机远离PC时,PC与智能手机的距离可能会大于1m的预设距离范围,此时,为了提高账户信息的安全性,PC可以通过检测当前所运行程序状态的方式,判断当前是否存在已登录的程序,当存在已登录程序时,可以通过修改程序状态的方式,将已登录程序退出登录。In addition, it should be noted that, as a user's portable device, the smartphone may change its distance from the PC according to the user's location, and the smartphone sends broadcast signals at a certain frequency. Therefore, even if the current program is in the login state, the PC continues to Receive the preset identification signal of the smart phone, and repeat the steps of obtaining the identification information, judging and calculating the distance from the smart phone every time it is received. When the user takes the smart phone away from the PC, the distance between the PC and the smart phone may be greater than 1m The preset distance range. At this time, in order to improve the security of the account information, the PC can judge whether there is a registered program by detecting the status of the currently running program. When there is a logged-in program, you can modify the status of the program. mode to log out the logged-in program.
当然,如果PC设置有锁定操作系统的功能,只要PC检测到与智能手机的距离大于1m,无论当前是否存在已登录的程序,PC均可以直接执行锁定操作系统的操作,而不更改其他程序的状态。当然,当存在已登录程序时,也可以同时执行退出登录和锁定操作系统两种操作,本发明实施例对此不做限制。Of course, if the PC is equipped with the function of locking the operating system, as long as the PC detects that the distance between the PC and the smartphone is greater than 1m, regardless of whether there are currently logged-in programs, the PC can directly perform the operation of locking the operating system without changing the settings of other programs. state. Certainly, when there is a logged-in program, two operations of logging out and locking the operating system may also be performed at the same time, which is not limited in this embodiment of the present invention.
需要指出的,本实施例仅为本发明技术方案的优选示例,并不对本发明的技术方案造成限制,本实施例中,PC也可以替换为智能手机、平板电脑或者智能手环等;智能手机也可以替换为PC、平板电脑或者智能手环等。无论替换为哪种终端,执行过程与上述描述类似,本发明实施例此处不再赘述。It should be pointed out that this embodiment is only a preferred example of the technical solution of the present invention, and does not limit the technical solution of the present invention. In this embodiment, the PC can also be replaced by a smart phone, a tablet computer or a smart bracelet, etc.; It can also be replaced by a PC, a tablet computer or a smart bracelet. No matter what kind of terminal is replaced, the execution process is similar to the above description, and will not be repeated here in this embodiment of the present invention.
综合上述,本发明实施例的账户自动登录方法,对于多终端切换时需要重复登录账户的问题,第一设备在登录前,接收第二设备发送的广播信号,在接收到之后,获取广播信号中的标识信息,当广播信号中的标识信息与预存储标识信息相同时,确定待登录程序,并调用待登录程序对应的账户信息登录所述待登录程序。与现有技术相比,如果用户切换登录终端,第一设备首先验证所接收的标识信息,当验证通过,向当前运行的待登录程序输入相应的账户信息,执行自动登录,从而无须用户在切换终端设备时反复输入账户信息,能够简化操作流程,提高用户体验。To sum up the above, the account automatic login method of the embodiment of the present invention needs to repeatedly log in to the account when switching between multiple terminals. Before logging in, the first device receives the broadcast signal sent by the second device, and after receiving it, obtains the broadcast signal When the identification information in the broadcast signal is the same as the pre-stored identification information, the program to be registered is determined, and the account information corresponding to the program to be registered is called to log in the program to be registered. Compared with the existing technology, if the user switches the login terminal, the first device first verifies the received identification information, and when the verification is passed, enters the corresponding account information into the currently running program to be logged in, and performs automatic login, so that the user does not need to switch Repeatedly inputting account information when using a terminal device can simplify the operation process and improve user experience.
与上述实现方法相对应的,本发明实施例还提供了一种账户自动登录装置,请参见图4,图4为本发明实施例提供的账户自动登录装置的结构示意图,所述装置包括:接收模块11、获取模块12、确定模块13和调用模块14。其中,接收模块11,用于接收第二设备通过广播发送的广播信号;获取模块12,用于获取所述接收模块11所接收的广播信号中的标识信息;确定模块13,用于在所述获取模块12获取的广播信号中的标识信息与预存储标识信息相同时,确定待登录程序;调用模块14,用于调用所述确定模块13所确定的待登录程序对应的账户信息登录所述待登录程序。Corresponding to the above implementation method, the embodiment of the present invention also provides an automatic account login device, please refer to FIG. 4, which is a schematic structural diagram of the account automatic login device provided by the embodiment of the present invention. The device includes: module 11 , obtaining module 12 , determining module 13 and calling module 14 . Among them, the receiving module 11 is used to receive the broadcast signal sent by the second device through broadcasting; the obtaining module 12 is used to obtain the identification information in the broadcast signal received by the receiving module 11; When the identification information in the broadcast signal acquired by the acquisition module 12 is the same as the pre-stored identification information, the program to be registered is determined; the calling module 14 is used to call the account information corresponding to the program to be registered determined by the determination module 13 to log in the program to be registered. Login program.
所述装置中各个单元的功能和作用的实现过程详见上述方法中对应的实现过程,在此不再赘述。For the implementation process of the functions and effects of each unit in the device, refer to the corresponding implementation process in the above method for details, and details will not be repeated here.
与现有技术相比,本实施例所述的装置,通过标识信息将用户经常使用的终端设备进行关联,在使用其中任意一台设备登录网站时,均需要验证其关联设备的标识信息,从而不仅能够实现自动登录,而且能够为用户的账户信息提供一层安全保障。Compared with the prior art, the device described in this embodiment associates the terminal devices frequently used by users through identification information, and when using any of the devices to log in to the website, it is necessary to verify the identification information of the associated device, so that Not only can automatic login be realized, but also a layer of security can be provided for the user's account information.
当然,上述实施例为本发明提供的优选实施例,为了对上述实施例的装置进行补充,在上述实施例的基础上,还提供了本实施例的实施方式。Of course, the above-mentioned embodiments are preferred embodiments provided by the present invention. In order to supplement the devices of the above-mentioned embodiments, an implementation manner of this embodiment is also provided on the basis of the above-mentioned embodiments.
请参见图5,图5是本发明实施例提供的另一种账户自动登录装置的结构示意图,本实施例中,所述装置包括:接收模块21、获取模块22、计算模块23、判断模块24、确定模块25、调用模块26和状态修改模块27。其中,接收模块21、获取模块22、确定模块25和调用模块26的功能和作用于上述实施例类似,本发明实施例此处不再赘述。计算模块23,用于根据所述广播信号的信号强度计算与所述第二设备的距离;判断模块24,用于判断所述计算模块23计算得到的距离是否在预设范围内;本实施例中,当所述距离在预设范围内时,所述确定模块25确定所述待登录程序。Please refer to FIG. 5. FIG. 5 is a schematic structural diagram of another automatic account login device provided by an embodiment of the present invention. In this embodiment, the device includes: a receiving module 21, an obtaining module 22, a computing module 23, and a judging module 24 , a determination module 25 , a call module 26 and a state modification module 27 . Wherein, the functions of the receiving module 21 , the obtaining module 22 , the determining module 25 and the invoking module 26 are similar to those of the above-mentioned embodiments, so the embodiments of the present invention will not be repeated here. The calculation module 23 is used to calculate the distance from the second device according to the signal strength of the broadcast signal; the judgment module 24 is used to judge whether the distance calculated by the calculation module 23 is within a preset range; this embodiment Among them, when the distance is within a preset range, the determination module 25 determines the program to be registered.
在上述实施例的基础上,在另一个实施例中,获取模块22,还用于在所述距离不在预设范围内时,获取当前的已登录程序;状态修改模块27,用于修改所述获取模块22获取的已登录程序的状态退出登录。On the basis of the above embodiments, in another embodiment, the obtaining module 22 is also used to obtain the current logged-in program when the distance is not within the preset range; the status modification module 27 is used to modify the The state of the logged-in program obtained by the obtaining module 22 is logged out.
在本实施例中,确定模块25包括检测单元,查找单元和确定单元,其中,所述检测单元,用于检测系统当前所运行的程序;所述查找单元,用于在所述检测单元所检测到的当前所运行的程序中查找包含账户信息控件的程序,其中,所述账户信息控件为用于输入账户信息的控件;所述确定单元,用于将所述查找单元查找到的包含账户信息控件的程序确定为所述待登录程序。In this embodiment, the determination module 25 includes a detection unit, a search unit and a determination unit, wherein the detection unit is used to detect the program currently running in the system; Find the program containing the account information control from the currently running program, wherein the account information control is a control for inputting account information; the determining unit is used to find the program containing the account information The program of the control is determined as the program to be registered.
结合上述实施例,在本实施例中,调用模块26包括读取单元,调用单元,输入单元,获取单元和存储单元,其中,所述读取单元,用于读取所述待登录程序的程序标识;在本实施例中,判断模块24,还用于判断是否存储有所述程序标识;所述调用单元,用于在所述判断模块判断存储有所述程序标识时,调用所述程序标识对应的账户信息;所述输入单元,用于将所述调用单元所调用的账户信息输入相应的所述账户信息控件;所述获取单元,用于在所述判断模块判断未存储有所述程序标识时,获取所述待登录程序的账户信息;所述存储单元,用于将所述程序标识与所述获取单元获取的账户信息对应存储。In conjunction with the above embodiment, in this embodiment, the calling module 26 includes a reading unit, a calling unit, an input unit, an acquisition unit and a storage unit, wherein the reading unit is used to read the program of the program to be registered identification; in this embodiment, the judging module 24 is also used to judge whether the program logo is stored; the calling unit is used to call the program logo when the judging module judges that the program logo is stored Corresponding account information; the input unit is used to input the account information called by the calling unit into the corresponding account information control; the acquiring unit is used to judge that the program is not stored in the judging module When identifying, the account information of the program to be logged in is acquired; the storage unit is configured to store the program identification corresponding to the account information acquired by the acquisition unit.
此外,在另一种实施方式中,所述获取模块22包括解密单元,其中,所述读取单元,还用于读取所述广播信号中的标识信息;所述解密单元,用于按照预设规则将所述读取单元读取的标识信息进行解密。In addition, in another implementation manner, the acquisition module 22 includes a decryption unit, wherein the reading unit is further configured to read the identification information in the broadcast signal; the decryption unit is configured to A rule is set to decrypt the identification information read by the reading unit.
所述装置中各个单元的功能和作用的实现过程详见上述方法中对应的实现过程,在此不再赘述。For the implementation process of the functions and effects of each unit in the device, refer to the corresponding implementation process in the above method for details, and details will not be repeated here.
根据上述描述,本发明实施例提供的账户自动登录装置,在第一设备登录前,接收第二设备发送的广播信号,在接收到之后,获取广播信号中的标识信息,当广播信号中的标识信息与预存储标识信息相同时,确定待登录程序,并调用待登录程序对应的账户信息登录所述待登录程序。与现有技术相比,如果用户切换登录终端,第一设备首先验证所接收的标识信息,当验证通过,向当前运行的待登录程序输入相应的账户信息,执行自动登录,从而无须用户在切换终端设备时反复输入账户信息,能够简化操作流程,提高用户体验。According to the above description, the account automatic login device provided by the embodiment of the present invention receives the broadcast signal sent by the second device before the first device logs in, and obtains the identification information in the broadcast signal after receiving it. When the identification information in the broadcast signal When the information is the same as the pre-stored identification information, the program to be registered is determined, and the account information corresponding to the program to be registered is called to log in the program to be registered. Compared with the existing technology, if the user switches the login terminal, the first device first verifies the received identification information, and when the verification is passed, enters the corresponding account information into the currently running program to be logged in, and performs automatic login, so that the user does not need to switch Repeatedly inputting account information when using a terminal device can simplify the operation process and improve user experience.
此外,与上述实现方法及装置相对应的,本发明实施例还提供了一种账户自动登录系统,如图6所示,图6为本发明实施例提供的账户自动登录系统,所述系统包括第一设备1和第二设备2。其中,第一设备1包括如上文所述的账户自动登录装置,其结构和功能如上文所述,本发明实施例此处不再赘述;第二设备2,用于通过广播发送广播信号。In addition, corresponding to the above implementation method and device, an embodiment of the present invention also provides an automatic account login system, as shown in FIG. 6 , which is an automatic account login system provided by an embodiment of the present invention. The system includes First device 1 and second device 2. Among them, the first device 1 includes the above-mentioned automatic account login device, its structure and function are as described above, and the embodiment of the present invention will not be repeated here; the second device 2 is used to send broadcast signals through broadcasting.
需要说明的是,第一设备1具体可以为PC、平板电脑、手机或者智能手环等;第二设备2可以为PC、平板电脑、手机或者智能手环等。其中,一台第二设备2可以对应一台或者多台第一设备1,当一台第二设备2可以对应多台第一设备1时,每台第一设备1的账户自动登录过程均如上述描述,本发明实施例此处不再赘述。It should be noted that the first device 1 may specifically be a PC, a tablet computer, a mobile phone, or a smart bracelet; the second device 2 may be a PC, a tablet computer, a mobile phone, or a smart bracelet. Wherein, one second device 2 can correspond to one or more first devices 1, and when one second device 2 can correspond to multiple first devices 1, the account automatic login process of each first device 1 is as follows: For the above description, the embodiments of the present invention will not be repeated here.
综合上述,对于多终端切换时需要重复登录账户的问题,本发明实施例的技术方案,第一设备在登录前,接收第二设备发送的广播信号,在接收到之后,获取广播信号中的标识信息,当广播信号中的标识信息与预存储标识信息相同时,确定待登录程序,并调用待登录程序对应的账户信息登录所述待登录程序。与现有技术相比,如果用户切换登录终端,第一设备首先验证所接收的标识信息,当验证通过,向当前运行的待登录程序输入相应的账户信息,执行自动登录,从而无须用户在切换终端设备时反复输入账户信息,能够简化操作流程,提高用户体验。To sum up the above, for the problem of repeatedly logging in to the account when switching between multiple terminals, the technical solution of the embodiment of the present invention is that the first device receives the broadcast signal sent by the second device before logging in, and obtains the identifier in the broadcast signal after receiving it. Information, when the identification information in the broadcast signal is the same as the pre-stored identification information, determine the program to be registered, and call the account information corresponding to the program to be registered to log in the program to be registered. Compared with the existing technology, if the user switches the login terminal, the first device first verifies the received identification information, and when the verification is passed, enters the corresponding account information into the currently running program to be logged in, and performs automatic login, so that the user does not need to switch Repeatedly inputting account information when using a terminal device can simplify the operation process and improve user experience.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本发明旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本发明未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. The present invention is intended to cover any modification, use or adaptation of the present invention, and these modifications, uses or adaptations follow the general principles of the present invention and include common knowledge or conventional technical means in the technical field not disclosed in the present invention . The specification and examples are to be considered exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It should be understood that the present invention is not limited to the precise constructions which have been described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510369661.6A CN106295271A (en) | 2015-06-29 | 2015-06-29 | Account automatic logging method, device and related system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510369661.6A CN106295271A (en) | 2015-06-29 | 2015-06-29 | Account automatic logging method, device and related system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106295271A true CN106295271A (en) | 2017-01-04 |
Family
ID=57651164
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510369661.6A Pending CN106295271A (en) | 2015-06-29 | 2015-06-29 | Account automatic logging method, device and related system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106295271A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107682358A (en) * | 2017-10-31 | 2018-02-09 | 珠海市魅族科技有限公司 | Using login method, device, computer installation and computer-readable recording medium |
| CN109325340A (en) * | 2018-10-26 | 2019-02-12 | 北京深思数盾科技股份有限公司 | A kind of method, apparatus and Internet Server of software client automated log on |
| CN110225035A (en) * | 2019-06-11 | 2019-09-10 | 深圳市微付充科技有限公司 | The binding of third party's account and login method, server, terminal and device |
| CN113961293A (en) * | 2021-10-22 | 2022-01-21 | 维沃移动通信有限公司 | Application display method and device and electronic equipment |
| WO2022151974A1 (en) * | 2021-01-15 | 2022-07-21 | 华为技术有限公司 | Website login method, communication system and electronic device |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101677442A (en) * | 2008-09-17 | 2010-03-24 | 艾威梯科技(北京)有限公司 | Method and equipment for automatically logging in application programs |
| US20130160113A1 (en) * | 2011-12-15 | 2013-06-20 | Samsung Electronics Co., Ltd. | Computing apparatus and method for operating application |
| CN104158883A (en) * | 2014-08-20 | 2014-11-19 | 乐视网信息技术(北京)股份有限公司 | Method, device, equipment and system for carrying out user login through cross-terminal equipment |
-
2015
- 2015-06-29 CN CN201510369661.6A patent/CN106295271A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101677442A (en) * | 2008-09-17 | 2010-03-24 | 艾威梯科技(北京)有限公司 | Method and equipment for automatically logging in application programs |
| US20130160113A1 (en) * | 2011-12-15 | 2013-06-20 | Samsung Electronics Co., Ltd. | Computing apparatus and method for operating application |
| CN104158883A (en) * | 2014-08-20 | 2014-11-19 | 乐视网信息技术(北京)股份有限公司 | Method, device, equipment and system for carrying out user login through cross-terminal equipment |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107682358A (en) * | 2017-10-31 | 2018-02-09 | 珠海市魅族科技有限公司 | Using login method, device, computer installation and computer-readable recording medium |
| CN109325340A (en) * | 2018-10-26 | 2019-02-12 | 北京深思数盾科技股份有限公司 | A kind of method, apparatus and Internet Server of software client automated log on |
| CN110225035A (en) * | 2019-06-11 | 2019-09-10 | 深圳市微付充科技有限公司 | The binding of third party's account and login method, server, terminal and device |
| CN110225035B (en) * | 2019-06-11 | 2022-11-11 | 深圳市微付充科技有限公司 | Third party account binding and logging method, server, terminal and device |
| WO2022151974A1 (en) * | 2021-01-15 | 2022-07-21 | 华为技术有限公司 | Website login method, communication system and electronic device |
| CN113961293A (en) * | 2021-10-22 | 2022-01-21 | 维沃移动通信有限公司 | Application display method and device and electronic equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10757102B2 (en) | Methods, apparatus, and systems for identity authentication | |
| CN109996234B (en) | A network connection method, hotspot terminal and management terminal | |
| CN104967997B (en) | A kind of Wi-Fi cut-in method, Wi-Fi equipment, terminal device and system | |
| CN104767713B (en) | Account binding method, server and system | |
| CN107197462B (en) | Wireless network type detection method and device and electronic equipment | |
| CN105119901B (en) | A kind of detection method and system of fishing hot spot | |
| CN106375465B (en) | A data migration method and server | |
| CN106412909A (en) | Device connection method and device | |
| CN106295271A (en) | Account automatic logging method, device and related system | |
| CN107493378A (en) | Application program login method and device, computer equipment and readable storage medium | |
| CN105094506A (en) | Screen unlocking method for intelligent terminal, intelligent terminal and operating platform | |
| CN105306202B (en) | Auth method, device and server | |
| WO2017088548A1 (en) | Communication method based on social identity, and server | |
| CN110730446A (en) | Login method, terminal and computer storage medium | |
| CN104363609A (en) | Access control equipment of wireless hot spot | |
| WO2017088745A1 (en) | Information processing method and apparatus, and electronic device | |
| CN106656985A (en) | Backup account login method, device and system | |
| CN103561063A (en) | Method and terminal for logging onto set top box | |
| CN100428820C (en) | Subscriber identification module and method capable of realizing mobile terminal area locking | |
| CN104902480A (en) | Smartphone WIFI grading management method | |
| CN105373715A (en) | Wearable device based data access method and apparatus | |
| US20150082445A1 (en) | Information processing method and electronic device | |
| CN105376274A (en) | Login processing method, device and system | |
| KR20140023085A (en) | A method for user authentication, a authentication server and a user authentication system | |
| US20160042168A1 (en) | Method and apparatus for authenticating users |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 1232974 Country of ref document: HK |
|
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170104 |
|
| RJ01 | Rejection of invention patent application after publication | ||
| REG | Reference to a national code |
Ref country code: HK Ref legal event code: WD Ref document number: 1232974 Country of ref document: HK |