CN107623690B - Login method, device and storage medium - Google Patents
Login method, device and storage medium Download PDFInfo
- Publication number
- CN107623690B CN107623690B CN201710886512.6A CN201710886512A CN107623690B CN 107623690 B CN107623690 B CN 107623690B CN 201710886512 A CN201710886512 A CN 201710886512A CN 107623690 B CN107623690 B CN 107623690B
- Authority
- CN
- China
- Prior art keywords
- login
- application
- phone number
- account
- request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 85
- 230000004044 response Effects 0.000 claims abstract description 46
- 238000012795 verification Methods 0.000 claims description 36
- 238000004590 computer program Methods 0.000 claims description 9
- 230000001960 triggered effect Effects 0.000 claims description 4
- 230000008569 process Effects 0.000 abstract description 17
- 238000010586 diagram Methods 0.000 description 10
- 238000004891 communication Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000013475 authorization Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 239000000835 fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
Images
Landscapes
- Information Transfer Between Computers (AREA)
- Telephonic Communication Services (AREA)
Abstract
本申请公开了登录方法、设备和存储介质。该方法的一具体实施方式包括:响应于接收到用户设备上应用程序发送的授权登录请求,查询与用户设备绑定的一个或多个登录账号,其中,授权登录请求基于用户通过用户设备向应用程序发送的登录请求生成,一个或多个登录账号包括一个默认登录账号;向用户设备发送以默认登录账号登录的登录页面,以供用户选择以默认登录账号登录;响应于接收到用户选择以默认登录账号登录的请求,向应用程序返回登录成功消息,其中用户选择以默认登录账号登录的请求中不含登录密码。该实施方式简化了登录过程,提高了信息安全性。
The present application discloses a login method, device and storage medium. A specific implementation of the method includes: in response to receiving an authorized login request sent by an application on the user equipment, querying one or more login accounts bound to the user equipment, wherein the authorized login request is based on the user sending the application through the user equipment to the application. The login request sent by the program is generated, and the one or more login accounts include a default login account; a login page for logging in with the default login account is sent to the user equipment, so that the user can choose to log in with the default login account; For a request to log in with a login account, a login success message is returned to the application, where the user chooses to log in with the default login account without the login password. This embodiment simplifies the login process and improves information security.
Description
技术领域technical field
本申请涉及计算机技术领域,具体涉及互联网技术领域,尤其涉及登录方法、设备和存储介质。The present application relates to the field of computer technology, in particular to the field of Internet technology, and in particular to a login method, device, and storage medium.
背景技术Background technique
现在因为多家运营商的存在,每个人有多个手机号成为现在一个比较普遍的想象,例如,现有的双卡双待的第二个号码的登录是输入第二个手机的手机号,通过下行短信的方式,基于动态验证码的方式登录,后面的每一次退出重新登录,都需要按照下行短信的方式,来认证用户的手机号。Now, because of the existence of multiple operators, it has become a common imagination for each person to have multiple mobile phone numbers. For example, the login of the second number of the existing dual-card dual-standby is to enter the mobile phone number of the second mobile phone. Log in by means of downlink SMS and based on dynamic verification code, and each subsequent logout and re-login requires the user's mobile phone number to be authenticated by means of downlink SMS.
因此,对于用户登录来说,用户使用手机号登录一个应用后,再使用另外一个手机号来登录,必须把所有的登录流程走一遍,如果再扩大多个这个手机上面更多号码、更多应用的登录,不仅体验很差,而且带来了额外的开销成本和信息安全问题。Therefore, for user login, after the user logs in to an application with a mobile phone number, and then uses another mobile phone number to log in, all the login processes must be repeated. If more numbers and applications are added to the mobile phone not only has a poor experience, but also brings additional overhead costs and information security issues.
发明内容SUMMARY OF THE INVENTION
本申请实施例的目的在于提出一种改进的登录方法、设备和存储介质,来解决以上背景技术部分提到的技术问题。The purpose of the embodiments of the present application is to propose an improved login method, device and storage medium to solve the technical problems mentioned in the above background technology section.
第一方面,本申请实施例提供了一种应用程序登录方法,该方法包括:响应于接收到用户设备上应用程序发送的授权登录请求,查询与用户设备绑定的一个或多个登录账号,其中,授权登录请求基于用户通过用户设备向应用程序发送的登录请求生成,一个或多个登录账号包括一个默认登录账号;向用户设备发送以默认登录账号登录的登录页面,以供用户选择以默认登录账号登录;响应于接收到用户选择以默认登录账号登录的请求,向应用程序返回登录成功消息,其中所述用户选择以所述默认登录账号登录的请求中不含登录密码。。In a first aspect, an embodiment of the present application provides an application login method, the method includes: in response to receiving an authorized login request sent by an application on a user equipment, querying one or more login accounts bound to the user equipment, Wherein, the authorized login request is generated based on the login request sent by the user to the application program through the user equipment, and the one or more login accounts include a default login account; a login page for logging in with the default login account is sent to the user equipment for the user to choose to use the default login account. Logging in with a login account; in response to receiving a request for logging in with a default login account, a login success message is returned to the application, wherein the request for logging in with the default login account does not contain a login password. .
在一些实施例中,该方法还包括:一个或多个登录账号还包括至少一个备用登录账号;登录页面还包括供用户选择切换至至少一个备用登录账号中的一个进行登录的页面。In some embodiments, the method further includes: the one or more login accounts further includes at least one backup login account; the login page further includes a page for the user to choose to switch to one of the at least one backup login account for login.
在一些实施例中,该方法还包括:响应于接收到用户设备发送的切换至至少一个备用登录账号中的一个进行登录的请求,将用户选择的备用登录账号设置为新的默认登录账号,其中,切换至至少一个备用登录账号中的一个进行登录的请求基于用户通过登录页面选择切换至至少一个备用登录账号登录的切换请求生成;向用户设备发送以新的默认登录账号登录以及切换至备用登录账号登录的登录页面,以供用户选择以新的默认登录账号登录或切换至备用登录账号登录;响应于接收到用户选择以新的默认登录账号登录的请求,向应用程序返回登录成功消息,其中用户选择以新的默认登录账号登录的请求中不含登录密码。In some embodiments, the method further includes: in response to receiving a request sent by the user equipment to switch to one of the at least one backup login account for logging in, setting the backup login account selected by the user as a new default login account, wherein , the request to switch to one of the at least one standby login account for logging in is generated based on the user's selection of switching to the at least one standby login account through the login page. A login page for account login, for the user to choose to log in with a new default login account or switch to an alternate login account to log in; in response to receiving a request from the user to choose to log in with a new default login account, a login success message is returned to the application, wherein The request that the user chooses to log in with the new default login account does not include the login password.
在一些实施例中,该方法还包括:响应于接收到应用程序发送的获取用户登录信息请求,查询用户预先设置的登录信息;向应用程序发送所查询到的登录信息。In some embodiments, the method further includes: in response to receiving a request for obtaining user login information sent by the application program, querying the login information preset by the user; and sending the queried login information to the application program.
在一些实施例中,登录账号包括登录电话号码。In some embodiments, the login account number includes a login phone number.
在一些实施例中,该方法还包括绑定设备信息与电话号码的步骤,包括:响应于接收到用户设备发送的包括用户设备的设备信息和认证口令的用于认证电话号码的请求,认证口令由运营商服务器基于用户设备向其申请获取电话号码的请求生成;基于认证口令从运营商服务器获取设备信息对应的电话号码;将电话号码与设备信息进行绑定。In some embodiments, the method further includes the step of binding the device information and the phone number, including: in response to receiving a request from the user equipment for authenticating the phone number including the device information of the user equipment and the authentication password, authenticating the password It is generated by the operator server based on the request of the user equipment for obtaining the phone number; the phone number corresponding to the device information is obtained from the operator server based on the authentication password; the phone number is bound with the device information.
在一些实施例中,该方法还包括绑定设备信息与电话号码的步骤,包括:响应于接收到包括用户设备的设备信息和电话号码的短信认证请求,通知运营商服务器根据电话号码向用户设备发送短信验证码;响应于接收到用户设备发送的包括短信验证码的认证请求,将从用户设备接收到的短信验证码和运营商服务器发送的短信验证码进行验证;若验证成功,则将电话号码与设备信息进行绑定。In some embodiments, the method further includes the step of binding the device information and the phone number, including: in response to receiving a short message authentication request including the device information and the phone number of the user equipment, notifying the operator server to send the user equipment according to the phone number Send SMS verification code; in response to receiving the authentication request including the SMS verification code sent by the user equipment, verify the SMS verification code received from the user equipment and the SMS verification code sent by the operator's server; if the verification is successful, the phone The number is bound to the device information.
在一些实施例中,将电话号码与设备信息进行绑定的步骤,还包括:向用户设备发送电话号码认证成功消息;以及响应于接收到用户设备发送的将电话号码设置为默认登录电话号码的请求,将登录电话号码设置为默认登录电话号码。In some embodiments, the step of binding the phone number with the device information further includes: sending a phone number authentication success message to the user equipment; and setting the phone number as the default login phone number in response to receiving the message sent by the user equipment. Request to set the login phone number as the default login phone number.
第二方面,本申请实施例提供了另外一种应用程序登录方法,该方法包括:响应于接收到用户触发的登录用户设备上的应用程序的登录请求,生成包括用户设备的设备信息的授权登录请求,并向统一登录应用发送授权登录请求,以供统一登录应用查询与设备信息绑定的一个或多个登录账号;接收统一登录应用发送的以绑定的登录账号中默认登录账号登录的登录页面;若检测到用户选择以默认登录账号登录,则向统一登录应用发送以默认登录账号登录的请求,其中向统一登录应用发送以所述默认登录账号登录的请求中不含登录密码。In a second aspect, an embodiment of the present application provides another method for logging in to an application. The method includes: in response to receiving a login request triggered by a user to log in to an application on a user equipment, generating an authorized login including device information of the user equipment request, and send an authorized login request to the unified login application, so that the unified login application can query one or more login accounts bound to the device information; receive the login sent by the unified login application with the default login account in the bound login account page; if it is detected that the user chooses to log in with the default login account, a request for logging in with the default login account is sent to the unified login application, and the request for logging in with the default login account sent to the unified login application does not contain a login password.
在一些实施例中,该方法还包括:一个或多个登录账号还包括至少一个备用登录账号;登录页面还包括供用户选择切换至至少一个备用登录账号中的一个进行登录的页面。In some embodiments, the method further includes: the one or more login accounts further includes at least one backup login account; the login page further includes a page for the user to choose to switch to one of the at least one backup login account for login.
在一些实施例中,该方法还包括:响应于接收到用户选择切换至至少一个备用登录账号中的一个进行登录的操作,生成并向统一登录应用发送切换至至少一个备用登录账号中的一个进行登录的请求,以指示统一登录应用将将用户选择的备用登录账号设置为新的默认登录账号;响应接收到统一登录应用发送的以新的默认登录账号登录以及切换至备用登录账号登录的登录页面,显示登录页面以供用户选择;响应于检测到用户选择以新的默认登录账号登录,向统一登录应用发送以新的默认登录账号登录的请求,其中向统一登录应用发送以所述新的默认登录账号登录的请求中不含登录密码。In some embodiments, the method further includes: in response to receiving an operation of the user selecting to switch to one of the at least one alternate login accounts for logging in, generating and sending the unified login application to switch to one of the at least one alternate login accounts for logging in. A login request to instruct the unified login application to set the alternate login account selected by the user as the new default login account; in response to receiving a login page sent by the unified login application to log in with the new default login account and switch to the login page of the alternate login account , display the login page for the user to choose; in response to detecting that the user chooses to log in with the new default login account, send a request to log in with the new default login account to the unified login application, wherein the unified login application is sent to the unified login application with the new default login The login request does not contain the login password.
在一些实施例中,登录账号包括登录电话号码。In some embodiments, the login account number includes a login phone number.
在一些实施例中,该方法还包括绑定设备信息与登录电话号码的步骤,包括:向运营商服务器发送申请获取电话号码的请求,以触发运营商服务器基于获取电话号码的请求生成认证口令;响应于接收到运营商服务器返回的认证口令,向统一登录应用发送包括用户设备的设备信息和认证口令的用于认证电话号码的请求。In some embodiments, the method further includes the step of binding the device information and the login phone number, including: sending a request for applying for obtaining the phone number to the operator server, so as to trigger the operator server to generate an authentication password based on the request for obtaining the phone number; In response to receiving the authentication password returned by the operator server, a request for authenticating the phone number including the device information of the user equipment and the authentication password is sent to the unified login application.
在一些实施例中,该方法还包括绑定设备信息与登录电话号码的步骤,包括:向统一登录应用发送包括用户设备的设备信息和电话号码的短信认证请求,以使得统一登录应用通知运营商服务器根据电话号码向用户设备发送短信验证码;接收运营商服务器返回的短信验证码;向统一登录应用发送短信验证码的认证请求。In some embodiments, the method further includes the step of binding the device information and the login phone number, including: sending an SMS authentication request including the device information and phone number of the user equipment to the unified login application, so that the unified login application notifies the operator The server sends the SMS verification code to the user equipment according to the phone number; receives the SMS verification code returned by the operator's server; and sends the authentication request of the SMS verification code to the unified login application.
在一些实施例中,将电话号码与设备信息进行绑定的步骤,还包括:接收统一登录应用返回的电话号码认证成功消息;以及向统一登录应用发送将电话号码设置为默认登录电话号码的请求。In some embodiments, the step of binding the phone number with the device information further includes: receiving a phone number authentication success message returned by the unified login application; and sending a request for setting the phone number as the default login phone number to the unified login application .
第三方面,本申请提供了一种设备,包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如第一方面中任一的方法。In a third aspect, the present application provides a device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, so that a or a plurality of processors implementing a method as in any one of the first aspects.
第四方面,本申请提供了一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如第一方面中任一的方法。In a fourth aspect, the present application provides a computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the method according to any one of the first aspects is implemented.
本申请实施例提供的登录方法和设备,通过预先绑定设备信息和默认登录账号,在检测到用户的登录操作时直接显示默认登录账号的登录界面,不需要每次登录时绑定设备信息和默认登录账号,简化了登录过程,从而提高了信息安全性。The login method and device provided by the embodiments of the present application, by pre-binding the device information and the default login account, directly display the login interface of the default login account when the user's login operation is detected, and it is not necessary to bind the device information and the default login account every time you log in. The default login account simplifies the login process, thereby improving information security.
附图说明Description of drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
图1是本申请可以应用于其中的示例性系统架构图;FIG. 1 is an exemplary system architecture diagram to which the present application can be applied;
图2是根据本申请的登录方法的一个实施例的流程图;2 is a flowchart of an embodiment of a login method according to the present application;
图3是根据本申请的登录方法的一个应用场景的示意图;3 is a schematic diagram of an application scenario of the login method according to the present application;
图4是根据本申请的登录方法的又一个应用场景的示意图;4 is a schematic diagram of another application scenario of the login method according to the present application;
图5是根据本申请的登录方法的又一个实施例的流程图;Fig. 5 is a flow chart of yet another embodiment of the login method according to the present application;
图6是适于用来实现本申请实施例的网络设备和用户设备的计算机系统的结构示意图。FIG. 6 is a schematic structural diagram of a computer system suitable for implementing the network equipment and user equipment according to the embodiments of the present application.
具体实施方式Detailed ways
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the related invention, but not to limit the invention. In addition, it should be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
图1示出了可以应用本申请的登录方法或设备的实施例的示例性系统架构100。FIG. 1 illustrates an
如图1所示,系统架构100可以包括用户设备101、102、103,网络104和网络设备105。网络104用以在用户设备101、102、103和网络设备105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1 , the
用户可以使用用户设备101、102、103通过网络104与网络设备105交互,以接收或发送消息等。用户设备101、102、103上可以安装有各种通讯客户端应用,例如网页浏览器应用、购物类应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等。A user may use
用户设备101、102、103可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、MP3播放器(Moving Picture ExpertsGroup Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving PictureExperts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、膝上型便携计算机和台式计算机等等。The
网络设备105可以是提供各种服务的服务器,例如对用户设备101、102、103上显示的登录页面提供支持的后台登录服务器。后台登录服务器可以对接收到的登录请求等数据进行分析等处理,并将处理结果(例如登录页面数据)反馈给用户设备。The
需要说明的是,本申请实施例所提供的登录方法一般由用户设备101、102、103和网络设备105执行,相应地,登录装置一般设置于用户设备101、102、103和网络设备105中。It should be noted that the login methods provided in the embodiments of the present application are generally performed by the
应该理解,图1中的用户设备、网络和网络设备的数目仅仅是示意性的。根据实现需要,可以具有任意数目的用户设备、网络和网络设备。It should be understood that the numbers of user equipments, networks and network devices in FIG. 1 are merely illustrative. There may be any number of user devices, networks, and network devices depending on implementation needs.
继续参考图2,示出了根据本申请的登录方法的一个实施例的流程200。该登录方法,包括以下步骤:Continuing to refer to FIG. 2 , a
步骤201,响应于接收到用户设备上应用程序发送的授权登录请求,查询与所述用户设备绑定的一个或多个登录账号。
在本实施例中,当登录方法运行于其上的电子设备(例如图1所示的网络设备,当然登录方法也可以运行于用户设备)通过有线连接方式或者无线连接方式接收到用户设备上应用程序发送的授权登录请求,上述电子设备查询与设备信息绑定的一个或多个登录账号。查询操作可以在本地进行,也可以通过向网络设备发送查询请求,由网络设备查询后返回。一个或多个登录账号包括一个默认登录账号。登录账号可以包括登录电话号码。还可以包括数字、字母等字符的组合。例如,用户可能有两个已经绑定的账号138XXXX8888和157XXXX6666。可设置其中任一个账号为默认登录账号。授权登录请求可包括用户设备的设备信息。授权登录请求基于用户通过用户设备向应用程序发送的登录请求生成,该设备信息的提取可以有多种方式:苹果公司的用户设备可采用用户设备的广告号,移动设备可获取imei(International Mobile Equipment Identity,国际移动设备标识)码等等,只要能标识用户设备唯一性的机器码都可以使用。用户的登录账号在第一次注册到网络设备上时,已经与用户设备的设备信息绑定。因此,网络设备可根据接收到的设备信息查询到之前绑定的默认登录账号。登录方法可以由统一登录应用来实现。In this embodiment, when the electronic device on which the login method runs (for example, the network device shown in FIG. 1 , of course, the login method can also run on the user equipment) receives the application on the user equipment through a wired connection or a wireless connection In the authorization login request sent by the program, the above electronic device queries one or more login accounts bound with the device information. The query operation can be performed locally, or a query request can be sent to the network device, and the network device can query and return it. The one or more login accounts include a default login account. The login account number may include a login phone number. Combinations of characters such as numbers, letters, etc. can also be included. For example, a user may have two bound accounts 138XXXX8888 and 157XXXX6666. You can set any of these accounts as the default login account. The authorized login request may include device information of the user device. The authorized login request is generated based on the login request sent by the user to the application through the user device. The device information can be extracted in several ways: Apple's user device can use the advertising number of the user device, and mobile devices can obtain imei (International Mobile Equipment Identity, International Mobile Equipment Identity) code, etc., as long as the machine code that can identify the uniqueness of the user equipment can be used. When the user's login account is registered to the network device for the first time, it has been bound with the device information of the user's device. Therefore, the network device can query the previously bound default login account according to the received device information. The login method may be implemented by a unified login application.
在本实施例的一些可选的实现方式中,该方法还包括:一个或多个登录账号还包括至少一个备用登录账号;登录页面还包括供用户选择切换至至少一个备用登录账号中的一个进行登录的页面。其中所述至少一个备用登录账号可通过列表方式呈现在登录页面,以供用户通过点击选择通过哪一个备用登录账号进行登录。例如,用户可能有两个已经绑定的账号138XXXX8888和157XXXX6666。如果已经设置账号138XXXX8888为默认登录账号,则157XXXX6666为备用登录账号。用户可以选择以哪个账号登录,默认显示以默认登录账号登录的页面,但用户可以通过点选157XXXX6666以选择切换成以备用登录账号登录的页面。In some optional implementations of this embodiment, the method further includes: the one or more login accounts further include at least one backup login account; the login page further includes a log-in page for the user to choose to switch to one of the at least one backup login account. login page. The at least one alternate login account can be presented on the login page in a list manner, so that the user can select which alternate login account to use to log in by clicking. For example, a user may have two bound accounts 138XXXX8888 and 157XXXX6666. If the account 138XXXX8888 has been set as the default login account, then 157XXXX6666 is the backup login account. The user can choose which account to log in with. By default, the login page with the default login account is displayed, but the user can switch to the login page with the alternate login account by clicking 157XXXX6666.
在本实施例的一些可选的实现方式中,登录账号包括登录电话号码,该方法还包括绑定设备信息与电话号码的步骤,如图4所示的基于运营商的认证流程,包括:401用户设备预先安装统一登录应用;402用户设备向运营商服务器发送包括设备信息的用于获取电话号码的请求,以使得运营商服务器根据设备信息生成认证口令;403用户设备接收到运营商服务器返回的认证口令,404用户设备向统一登录应用发送包括设备信息和认证口令的用于获取电话号码的请求,405统一登录应用基于认证口令从运营商服务器发送获取设备信息对应的电话号码的请求,406用户设备接收到运营商服务器返回的电话号码;407用户设备接收统一登录应用返回的电话号码,413用户设备设置默认登录电话号码,414用户设备向统一登录应用发送用于将电话号码设置为默认登录电话号码的请求,以使得统一登录应用将默认登录电话号码与设备信息绑定。In some optional implementations of this embodiment, the login account includes a login phone number, and the method further includes the step of binding device information and phone number. The operator-based authentication process shown in FIG. 4 includes: 401 The user equipment pre-installs the unified login application; 402 the user equipment sends a request for obtaining a phone number including the device information to the operator server, so that the operator server generates an authentication password according to the device information; 403 The user equipment receives the returned information from the operator server. Authentication password, 404 the user equipment sends a request for obtaining the phone number including device information and authentication password to the unified login application, 405 the unified login application sends a request for obtaining the phone number corresponding to the device information from the operator server based on the authentication password, 406 user The device receives the phone number returned by the operator's server; 407 the user device receives the phone number returned by the unified login application, 413 the user device sets the default login phone number, and 414 the user device sends the unified login application to set the phone number as the default login phone number Number request, so that the unified login application binds the default login phone number to the device information.
在本实施例的一些可选的实现方式中,登录账号包括登录电话号码,该方法还包括绑定设备信息与电话号码的步骤,如图4所示的基于手机短信的认证流程,包括:408用户设备向统一登录应用发送包括设备信息和电话号码的短信认证请求,以使得409统一登录应用通知运营商服务器根据电话号码发送短信验证码;410用户设备接收到运营商服务器发送的短信验证码,411用户设备向统一登录应用发送包括短信验证码(该短信验证码可以是用户输入的,还可以是系统自动读取并写入的)的登录请求,以使得统一登录应用对接收到的短信验证码和运营商服务器发送的短信验证码进行验证;412用户设备接收统一登录应用发送的验证成功消息,413用户设备设置默认登录电话号码,414用户设备向统一登录应用发送用于将电话号码设置为默认登录电话号码的请求,以使得统一登录应用将默认登录电话号码与设备信息绑定。In some optional implementations of this embodiment, the login account includes a login phone number, and the method further includes the step of binding the device information and the phone number. As shown in FIG. 4 , the authentication process based on the mobile phone short message includes: 408 The user equipment sends the SMS authentication request including the device information and the phone number to the unified login application, so that the 409 unified login application notifies the operator server to send the SMS verification code according to the phone number; 410 the user equipment receives the SMS verification code sent by the operator server, 411 The user equipment sends a login request including a SMS verification code (the SMS verification code can be input by the user or automatically read and written by the system) to the unified login application, so that the unified login application can verify the received SMS 412 The user equipment receives the verification success message sent by the unified login application, 413 the user equipment sets the default login phone number, and 414 the user equipment sends the unified login application to set the phone number as A request for a default login phone number, so that the unified login application binds the default login phone number with device information.
在本实施例的一些可选的实现方式中,将电话号码与设备信息进行绑定的步骤,还包括:向用户设备发送电话号码认证成功消息;以及响应于接收到用户设备发送的将电话号码设置为默认登录电话号码的请求,将登录电话号码设置为默认登录电话号码。In some optional implementations of this embodiment, the step of binding the phone number with the device information further includes: sending a phone number authentication success message to the user equipment; and in response to receiving the phone number sent by the user equipment A request to set as the default login phone number, sets the login phone number as the default login phone number.
步骤202,向用户设备发送以默认登录账号登录的登录页面,以供用户选择以默认登录账号登录。Step 202: Send a login page for logging in with the default login account to the user equipment, so that the user can choose to log in with the default login account.
在本实施例中,统一登录应用预先绑定了默认登录账号和用户设备的设备信息。当用户的用户设备登录时,无需手动输入账号,统一登录应用会反馈以默认登录账号登录的登录页面。用户可以选择在以默认登录账号登录的登录页面上确认登录,也可选择切换成别的用于登录的账号。In this embodiment, the unified login application is pre-bound with the default login account and the device information of the user equipment. When the user's user device logs in, there is no need to manually enter the account, and the unified login application will feed back the login page of logging in with the default login account. The user can choose to confirm the login on the login page logged in with the default login account, or choose to switch to another account for login.
步骤203,响应于接收到用户选择以默认登录账号登录的请求,其中用户选择以所述默认登录账号登录的请求中不含登录密码,向应用程序返回登录成功消息。
在本实施例中,用户选择以默认登录账号登录,则直接反馈登录成功的消息,用户设备可根据登录成功的消息显示登录成功页面,无需再进行账号认证。In this embodiment, if the user chooses to log in with the default login account, a message of successful login is directly fed back, and the user equipment can display a successful login page according to the message of successful login, and no account authentication is required.
在本实施例的一些可选的实现方式中,响应于接收到用户设备发送的切换至至少一个备用登录账号中的一个进行登录的请求,将用户选择的备用登录账号设置为新的默认登录账号,其中,切换至至少一个备用登录账号中的一个进行登录的请求基于用户通过登录页面选择切换至至少一个备用登录账号登录的切换请求生成;向用户设备发送以新的默认登录账号登录以及切换至备用登录账号登录的登录页面,以供用户选择以新的默认登录账号登录或切换至备用登录账号登录;响应于接收到用户选择以新的默认登录账号登录的请求,其中用户选择以新的默认登录账号登录的请求中不含登录密码,向应用程序返回登录成功消息。如果用户选择以非默认登录账号登录,则用户设备向统一登录应用发送登录其它账号的指示。统一登录应用返回以备用登录账号登录的登录页面以供用户选择是否以备用登录账号登录。例如,在默认登录账号的登录页面上有两种选项,“以默认登录账号登录”和“以其它登录账号登录”,以其它登录账号登录时,其他账号可通过列表方式呈现在登录页面,如果用户选择了“以其它登录账号登录”,则用户设备给统一登录应用发送切换登录账号的请求,由统一登录应用将与设备信息绑定的备用登录账号设置为默认登录账号,再重新执行由用户选择登录账号的过程。In some optional implementations of this embodiment, in response to receiving a request sent by the user equipment to switch to one of the at least one backup login account for logging in, the backup login account selected by the user is set as a new default login account , wherein, the request to switch to one of the at least one standby login account for logging in is generated based on the user selecting through the login page to switch to the at least one standby login account to log in. The switching request is generated; The login page for logging in with the alternate login account, for the user to choose to log in with the new default login account or switch to the alternate login account to log in; in response to receiving a request for the user to choose to log in with the new default login account, the user chooses to log in with the new default login account. The login request for the login account does not contain the login password, and a login success message is returned to the application. If the user chooses to log in with a non-default login account, the user equipment sends an instruction to log in to another account to the unified login application. The unified login application returns the login page for logging in with the alternate login account for the user to choose whether to log in with the alternate login account. For example, there are two options on the login page of the default login account, "Login with the default login account" and "Login with other login accounts". When logging in with other login accounts, other accounts can be displayed on the login page in a list. If If the user selects "Login with another login account", the user device sends a request to switch the login account to the unified login application, and the unified login application sets the backup login account bound with the device information as the default login account, and then executes it again by the user. Select the process to log in to your account.
在本实施例的一些可选的实现方式中,该方法还包括:响应于接收到应用程序发送的获取用户登录信息请求,查询用户预先设置的登录信息;向应用程序发送所查询到的登录信息。登录信息可以包括昵称、头像、权限、隐私数据等信息。可以将以A账号登录的登录信息,在以B账号登录时使用。因此,无需重复设置登录信息。In some optional implementations of this embodiment, the method further includes: in response to receiving a request for obtaining user login information sent by the application program, querying the login information preset by the user; sending the queried login information to the application program . The login information may include information such as nickname, avatar, permissions, and private data. The login information logged in with the A account can be used when logging in with the B account. Therefore, there is no need to set up login information repeatedly.
继续参见图3,图3是根据本实施例的登录方法的应用场景的一个示意图。登录过程如图3所示,301用户向手机A上安装的应用A请求登录统一登录应用,302应用A向统一登录应用请求统一认证。303统一登录应用向存储设备获取已经绑定的默认登录账号138XXXX8888(存储设备上还存储了已经绑定的备用登录账号157XXXX6666)。304存储设备向统一登录应用发送默认登录账号138XXXX8888。305统一登录应用向用户设备发送以默认登录账号138XXXX8888登录的登录页面。如果用户想用默认登录账号138XXXX8888登录,则309用户向统一登录应用确认使用相应信息登录、310统一登录应用发送确认成功消息、311应用A通知用户设备显示登录成功页面,312向存储设备发送请求获取用户的登录信息,313存储设备返回登录信息。如果用户想要切换账号登录,则在过程309之前还需要306手机A向统一登录应用发送切换成备用登录账号157XXXX6666的请求,307手机A通知统一登录应用将备用登录账号157XXXX6666设置为默认登录账号,308统一登录应用通过存储设备保存设置数据。Continue to refer to FIG. 3 , which is a schematic diagram of an application scenario of the login method according to this embodiment. The login process is shown in FIG. 3 , 301 the user requests the application A installed on the mobile phone A to log in to the unified login application, and 302 the application A requests the unified login application for unified authentication. 303 The unified login application obtains the bound default login account 138XXXX8888 from the storage device (the storage device also stores the bound alternate login account 157XXXX6666). 304 The storage device sends the default login account number 138XXXX8888 to the unified login application. 305 The unified login application sends a login page for logging in with the default login account number 138XXXX8888 to the user equipment. If the user wants to log in with the default login account 138XXXX8888, 309 the user confirms the login with the corresponding information to the unified login application, 310 the unified login application sends a confirmation success message, 311 application A notifies the user device to display the login success page, and 312 sends a request to the storage device to obtain User's login information, 313 the storage device returns the login information. If the user wants to switch account login, 306 mobile phone A needs to send a request to the unified login application to switch to the alternate login account 157XXXX6666 before process 309, 307 mobile phone A notifies the unified login application to set the alternate login account 157XXXX6666 as the default login account, 308 The unified login application saves the setting data through the storage device.
本申请的上述实施例提供的方法通过将已经绑定的设备信息发送给统一登录应用,直接进行登录,简化了登录的账号验证过程,提高了信息安全性。The method provided by the above embodiments of the present application simplifies the login account verification process and improves information security by sending the bound device information to the unified login application to log in directly.
进一步参考图5,其示出了登录方法的又一个实施例的流程500。该登录方法的流程500,包括以下步骤:With further reference to FIG. 5, a
步骤501,响应于接收到用户触发的登录用户设备上的应用程序的登录请求,生成包括用户设备的设备信息的授权登录请求,并向统一登录应用发送授权登录请求,以供统一登录应用查询与设备信息绑定的一个或多个登录账号。
在本实施例中,当用户通过登录方法运行于其上的电子设备(例如图1所示的用户设备)登录应用程序时,上述电子设备检测到用户的登录操作,生成包括用户设备的设备信息的授权登录请求。并通过有线连接方式或者无线连接方式向网络设备发送授权登录请求。该授权登录请求包括用户设备的设备信息。其中,用户设备的设备信息的提取可以有多种方式:苹果公司的用户设备可采用用户设备的广告号,移动设备可获取imei(International Mobile Equipment Identity,国际移动设备标识)码等等,只要能标识用户设备唯一性的机器码都可以使用。登录账号可以包括登录电话号码。还可以包括数字、字母等字符的组合。用户的登录账号在第一次注册到统一登录应用上时,已经与用户设备的设备信息绑定。因此,统一登录应用可根据接收到的设备信息查询到之前绑定的一个或多个登录账号。In this embodiment, when a user logs into an application program through an electronic device (eg, the user device shown in FIG. 1 ) on which the login method runs, the electronic device detects the user's login operation, and generates device information including the user device authorized login request. And send an authorization login request to the network device through a wired connection or a wireless connection. The authorized login request includes device information of the user equipment. Among them, the device information of the user equipment can be extracted in various ways: Apple's user equipment can use the advertisement number of the user equipment, the mobile device can obtain the imei (International Mobile Equipment Identity, International Mobile Equipment Identity) code, etc., as long as it can Any machine code that identifies the uniqueness of the user's device can be used. The login account number may include a login phone number. Combinations of characters such as numbers, letters, etc. can also be included. When the user's login account is registered to the unified login application for the first time, it has been bound to the device information of the user's device. Therefore, the unified login application can query one or more previously bound login accounts according to the received device information.
在本实施例的一些可选的实现方式中,该方法还包括:一个或多个登录账号还包括至少一个备用登录账号;登录页面还包括供用户选择切换至至少一个备用登录账号中的一个进行登录的页面。例如,用户可能有两个已经绑定的账号138XXXX8888和157XXXX6666。如果已经设置账号138XXXX8888为默认登录账号,则157XXXX6666为备用登录账号。用户可以选择以哪个账号登录,默认显示以默认登录账号登录的页面,但用户可以选择切换成以备用登录账号登录的页面。In some optional implementations of this embodiment, the method further includes: the one or more login accounts further include at least one backup login account; the login page further includes a log-in page for the user to choose to switch to one of the at least one backup login account. login page. For example, a user may have two bound accounts 138XXXX8888 and 157XXXX6666. If the account 138XXXX8888 has been set as the default login account, then 157XXXX6666 is the backup login account. The user can choose which account to log in with. By default, the login page with the default login account is displayed, but the user can choose to switch to the login page with the alternate login account.
在本实施例的一些可选的实现方式中,登录账号包括登录电话号码,该方法还包括绑定设备信息与电话号码的步骤,如图4所示的基于运营商的认证流程,包括:401预先安装登录设备;402向运营商服务器发送包括设备信息的用于获取电话号码的请求,以使得运营商服务器根据设备信息生成认证口令;403响应于接收到运营商服务器返回的认证口令,404向统一登录应用发送包括设备信息和认证口令的用于获取电话号码的请求,405统一登录应用基于认证口令从运营商服务器发送获取设备信息对应的电话号码的请求,406接收到运营商服务器返回的电话号码;407响应于接收到统一登录应用返回的电话号码,413设置默认登录电话号码,414向统一登录应用发送用于将电话号码设置为默认登录电话号码的请求,以使得统一登录应用将默认登录电话号码与设备信息绑定。In some optional implementations of this embodiment, the login account includes a login phone number, and the method further includes the step of binding device information and phone number. The operator-based authentication process shown in FIG. 4 includes: 401 Pre-install the login device; 402 send a request for obtaining a phone number including device information to the operator server, so that the operator server generates an authentication password according to the device information; 403 In response to receiving the authentication password returned by the operator server, 404 sends a request to the operator server. The unified login application sends a request for obtaining the phone number including the device information and the authentication password, 405 the unified login application sends a request for obtaining the phone number corresponding to the device information from the operator server based on the authentication password, and 406 receives the call returned by the operator server 407 In response to receiving the phone number returned by the unified login application, 413 sets the default login phone number, 414 sends a request for setting the phone number as the default login phone number to the unified login application, so that the unified login application will log in by default The phone number is bound to the device information.
在本实施例的一些可选的实现方式中,登录账号包括登录电话号码,该方法还包括绑定设备信息与电话号码的步骤,如图4所示的基于手机短信的认证流程,包括:408向统一登录应用发送包括设备信息和电话号码的短信认证请求,以使得409统一登录应用通知运营商服务器根据电话号码发送短信验证码;410响应于接收到运营商服务器发送的短信验证码,411向统一登录应用发送包括短信验证码(该短信验证码可以是用户输入的,还可以是系统自动读取并写入的)的登录请求,以使得统一登录应用对接收到的短信验证码和运营商服务器发送的短信验证码进行验证;412响应于接收到统一登录应用发送的验证成功消息,413设置默认登录电话号码,414向统一登录应用发送用于将电话号码设置为默认登录电话号码的请求,以使得统一登录应用将默认登录电话号码与设备信息绑定。In some optional implementations of this embodiment, the login account includes a login phone number, and the method further includes the step of binding the device information and the phone number. As shown in FIG. 4 , the authentication process based on the mobile phone short message includes: 408 Send the SMS authentication request including the device information and the phone number to the unified login application, so that 409 the unified login application notifies the operator server to send the SMS verification code according to the phone number; 410 In response to receiving the SMS verification code sent by the operator server, 411 to The unified login application sends a login request including a SMS verification code (the SMS verification code can be input by the user or automatically read and written by the system), so that the unified login application can communicate with the received SMS verification code and the operator. 412 In response to receiving the verification success message sent by the unified login application, 413 set the default login phone number, 414 send a request for setting the phone number as the default login phone number to the unified login application, So that the unified login application binds the default login phone number with the device information.
在本实施例的一些可选的实现方式中,将电话号码与设备信息进行绑定的步骤,还包括:接收统一登录应用返回的电话号码认证成功消息;以及向所述统一登录应用发送将所述电话号码设置为默认登录电话号码的请求。可将绑定的电话号码设置为默认登录电话号码并在统一登录应用上存储,以备下次登录时使用默认登录电话号码进行登录。In some optional implementations of this embodiment, the step of binding the phone number and the device information further includes: receiving a phone number authentication success message returned by the unified login application; and sending the unified login application to the unified login application. The above phone number is set as the default login phone number for requests. The bound phone number can be set as the default login phone number and stored on the unified login application, so that the default login phone number can be used to log in next time.
步骤502,接收统一登录应用发送的以绑定的登录账号中默认登录账号登录的登录页面。Step 502: Receive a login page sent by the unified login application for logging in with the default login account among the bound login accounts.
在本实施例中,统一登录应用预先绑定了默认登录账号和用户设备的设备信息。当用户的用户设备登录时,无需手动输入账号,统一登录应用会反馈以默认进行登录的账号的登录页面。用户如果想要用统一登录应用反馈的登录账号进行登录则直接确认即可,否则选择切换用于登录的账号。In this embodiment, the unified login application is pre-bound with the default login account and the device information of the user equipment. When the user's user device logs in, there is no need to manually enter the account number, and the unified login application will feed back the login page of the account that is logged in by default. If the user wants to log in with the login account fed back by the unified login application, just confirm it directly, otherwise choose to switch the account used for login.
步骤503,若检测到用户选择以默认登录账号登录,则向统一登录应用发送以默认登录账号登录的请求,其中向所述统一登录应用发送以所述默认登录账号登录的请求中不含登录密码。
在本实施例中,用户设备可根据用户的选择生成以默认登录账号登录的请求发向统一登录应用。In this embodiment, the user equipment may generate a request for logging in with the default login account according to the user's selection and send it to the unified login application.
在本实施例的一些可选的实现方式中,应用程序接收统一登录应用返回的登录成功消息,直接可显示登录成功页面,无需再进行账号认证。In some optional implementations of this embodiment, the application receives the login success message returned by the unified login application, and can directly display the login success page, without the need for account authentication.
在本实施例的一些可选的实现方式中,响应于接收到用户选择切换至至少一个备用登录账号中的一个进行登录的操作,生成并向统一登录应用发送切换至至少一个备用登录账号中的一个进行登录的请求,以指示统一登录应用将将用户选择的备用登录账号设置为新的默认登录账号;响应接收到统一登录应用发送的以新的默认登录账号登录以及切换至备用登录账号登录的登录页面,显示登录页面以供用户选择;响应于检测到用户选择以新的默认登录账号登录,向统一登录应用发送以新的默认登录账号登录的请求,其中向所述统一登录应用发送以所述新的默认登录账号登录的请求中不含登录密码。备用登录账号在第一次登录的时候通过下发短信验证或认证口令等方式已经和用户设备绑定。后面的每一次退出重新登录,直接登录即可,不需要重新验证动态短信验证码或者认证口令。统一登录应用收到切换指示后,将备用登录账号设置为默认登录账号并返回给用户设备。显示备用登录账号登录的登录页面以供用户选择是否以备用登录账号登录。如果用户仍要切换账号则可重复执行步骤503,否则进行以备用登录账号登录的界面。In some optional implementations of this embodiment, in response to receiving an operation that the user selects to switch to one of the at least one standby login account for login, generating and sending the unified login application a switch to the at least one standby login account. A request to log in to instruct the unified login application to set the alternate login account selected by the user as the new default login account; in response to receiving a message sent by the unified login application to log in with the new default login account and switch to the alternate login account Login page, displaying the login page for the user to select; in response to detecting that the user chooses to log in with the new default login account, a request for logging in with the new default login account is sent to the unified login application, wherein the unified login application is sent to the unified login application. The new default login account login request does not contain the login password. The backup login account has been bound to the user device by sending SMS verification or authentication password when logging in for the first time. After each logout and re-login, you can log in directly without re-verifying the dynamic SMS verification code or authentication password. After receiving the switching instruction, the unified login application sets the backup login account as the default login account and returns it to the user device. Display the login page of the alternate login account for users to choose whether to log in with the alternate login account. If the user still wants to switch accounts, step 503 can be performed repeatedly, otherwise, the interface of logging in with the alternate login account is performed.
在本实施例的一些可选的实现方式中,该方法还包括:向统一登录应用发送用于获取用户的登录信息的请求;接收统一登录应用返回的登录信息。登录信息可以包括昵称、头像等信息。In some optional implementations of this embodiment, the method further includes: sending a request for acquiring the user's login information to the unified login application; and receiving the login information returned by the unified login application. The login information may include information such as nickname and avatar.
在本实施例的一些可选的实现方式中,绑定设备信息与账号的两种方式已经在步骤201中作出说明,因此不再赘述。In some optional implementation manners of this embodiment, the two manners of binding the device information and the account have already been described in
从图5中可以看出,与图2对应的实施例相比,本实施例中的登录方法的流程500突出了用户设备侧进行登录的步骤。由此,本实施例描述的方案可以在同一个手机上认证多个账号,避免了多次手机认证的问题,保证了账号的敏感信息多次流失的问题。对于应用来说,在登录过程中无需进行密码的输入,并能实现无缝的账号切换,统一的用户实名问题,能够减少额外的用户实名认证成本。As can be seen from FIG. 5 , compared with the embodiment corresponding to FIG. 2 , the
下面参考图6,其示出了适于用来实现本申请实施例的网络设备和用户设备的计算机系统600的结构示意图。图6示出的网络设备和用户设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Referring to FIG. 6 below, it shows a schematic structural diagram of a
如图6所示,计算机系统600包括中央处理单元(CPU)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储部分608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有系统600操作所需的各种程序和数据。CPU 601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6, a
以下部件连接至I/O接口605:包括触摸屏、键盘、鼠标等的输入部分606;包括诸如触摸屏、液晶显示器(LCD)等以及扬声器等的输出部分607;包括硬盘等的存储部分608;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分609。通信部分609经由诸如因特网的网络执行通信处理。驱动器610也根据需要连接至I/O接口605。可拆卸介质611,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器610上,以便于从其上读出的计算机程序根据需要被安装入存储部分608。The following components are connected to the I/O interface 605: an input section 606 including a touch screen, a keyboard, a mouse, etc.; an
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分609从网络上被下载和安装,和/或从可拆卸介质611被安装。在该计算机程序被中央处理单元(CPU)601执行时,执行本申请的方法中限定的上述功能。需要说明的是,本申请所述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的装置中所包含的;也可以是单独存在,而未装配入该装置中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该装置执行时,使得该装置:响应于接收到用户设备上应用程序发送的授权登录请求,查询与用户设备绑定的一个或多个登录账号,其中,授权登录请求基于用户通过用户设备向应用程序发送的登录请求生成,一个或多个登录账号包括一个默认登录账号;向用户设备发送以默认登录账号登录的登录页面,以供用户选择以默认登录账号登录;响应于接收到用户选择以默认登录账号登录的请求,向应用程序返回登录成功消息。或者使得该装置:响应于接收到用户触发的登录用户设备上的应用程序的登录请求,生成包括用户设备的设备信息的授权登录请求,并向网络设备发送授权登录请求,以供网络设备查询与设备信息绑定的一个或多个登录账号;接收网络设备发送的以绑定的登录账号中默认登录账号登录的登录页面;若检测到用户选择以默认登录账号登录,则向网络设备发送以默认登录账号登录的请求。As another aspect, the present application also provides a computer-readable medium, which may be included in the apparatus described in the above-mentioned embodiments, or may exist independently without being assembled into the apparatus. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the apparatus, the apparatus causes the apparatus to: in response to receiving the authorization login request sent by the application program on the user equipment, query the binding with the user equipment. One or more predetermined login accounts, wherein the authorized login request is generated based on the login request sent by the user to the application through the user equipment, and the one or more login accounts include a default login account; A login page for the user to choose to log in with the default login account; in response to receiving a request for the user to choose to log in with the default login account, a login success message is returned to the application. Or make the apparatus: in response to receiving a user-triggered login request for logging in to an application on the user equipment, generate an authorized login request including device information of the user equipment, and send an authorized login request to the network device for the network device to query and connect with. One or more login accounts bound by the device information; receive the login page sent by the network device to log in with the default login account in the bound login account; if it is detected that the user chooses to log in with the default login account, it will send the default login account to the network device. A request to log in to an account.
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离所述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an illustration of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solution formed by the specific combination of the above-mentioned technical features, and should also cover the above-mentioned technical features without departing from the inventive concept. Other technical solutions formed by any combination of its equivalent features. For example, a technical solution is formed by replacing the above-mentioned features with the technical features disclosed in this application (but not limited to) with similar functions.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710886512.6A CN107623690B (en) | 2017-09-27 | 2017-09-27 | Login method, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710886512.6A CN107623690B (en) | 2017-09-27 | 2017-09-27 | Login method, device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107623690A CN107623690A (en) | 2018-01-23 |
CN107623690B true CN107623690B (en) | 2020-08-18 |
Family
ID=61091068
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710886512.6A Active CN107623690B (en) | 2017-09-27 | 2017-09-27 | Login method, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107623690B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109033874B (en) * | 2018-07-19 | 2021-12-10 | 数海信息技术有限公司 | Multi-role login method and system for Android program of digital sea information based on SQlite database |
CN110417723B (en) * | 2019-03-29 | 2022-05-06 | 广州腾讯科技有限公司 | Application login method, device, terminal and storage medium |
CN110505245B (en) * | 2019-09-24 | 2022-06-03 | 北京百度网讯科技有限公司 | Application login method, device and device |
CN110830479B (en) * | 2019-11-13 | 2022-11-18 | 苏州达家迎信息技术有限公司 | Multi-card-based one-key login method, device, equipment and storage medium |
CN110719590B (en) * | 2019-11-13 | 2023-04-18 | 苏州达家迎信息技术有限公司 | One-key login method, device, equipment and storage medium based on mobile phone number |
CN111552944A (en) * | 2020-04-28 | 2020-08-18 | 成都新潮传媒集团有限公司 | Login verification method and device |
CN111970341B (en) * | 2020-07-31 | 2023-04-07 | 广州汽车集团股份有限公司 | Account number close exchange-free method and device based on Internet of vehicles, automobile and medium |
CN113162935B (en) * | 2021-04-25 | 2022-06-24 | 东风汽车集团股份有限公司 | Method and system for preventing abnormal login of vehicle-mounted terminal vehicle owner account |
CN113157375A (en) * | 2021-04-27 | 2021-07-23 | 北京达佳互联信息技术有限公司 | Content display method, device, equipment, system and storage medium |
CN114172713A (en) * | 2021-12-02 | 2022-03-11 | 北京金山云网络技术有限公司 | Login method, login device, electronic equipment and storage medium |
CN114157483B (en) * | 2021-12-02 | 2024-04-05 | 北京金山云网络技术有限公司 | Login method, login device, electronic equipment and storage medium |
CN115001803B (en) * | 2022-05-30 | 2024-04-16 | 中国银行股份有限公司 | Mobile phone bank login method and device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102448029A (en) * | 2011-09-29 | 2012-05-09 | 美商威睿电通公司 | Mobile phone client for managing multi micro blog accounts and method |
CN102868670A (en) * | 2011-07-08 | 2013-01-09 | 北京亿赞普网络技术有限公司 | Unified registration and logon system as well as registration and logon method for mobile user |
CN103152402A (en) * | 2013-02-07 | 2013-06-12 | 百度在线网络技术(北京)有限公司 | Method and system for logging in through mobile terminal and cloud server |
CN103327480A (en) * | 2013-06-20 | 2013-09-25 | 张家港保税区润桐电子技术研发有限公司 | Intelligent mobile phone multiple-account contact information synchronizing method |
CN104883259A (en) * | 2015-06-11 | 2015-09-02 | 郑存粮 | Method for automatic registration by using mobile phone number as network application account number |
CN105208015A (en) * | 2015-08-31 | 2015-12-30 | 小米科技有限责任公司 | Application multi-account login processing method and device and terminal device |
CN105430183A (en) * | 2015-11-12 | 2016-03-23 | 广州华多网络科技有限公司 | Method for mobile terminal to switch account and mobile terminal |
CN105956429A (en) * | 2016-04-21 | 2016-09-21 | 三星半导体(中国)研究开发有限公司 | Account login method used for portable electronic device with multi-account system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7305470B2 (en) * | 2003-02-12 | 2007-12-04 | Aol Llc | Method for displaying web user's authentication status in a distributed single login network |
-
2017
- 2017-09-27 CN CN201710886512.6A patent/CN107623690B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102868670A (en) * | 2011-07-08 | 2013-01-09 | 北京亿赞普网络技术有限公司 | Unified registration and logon system as well as registration and logon method for mobile user |
CN102448029A (en) * | 2011-09-29 | 2012-05-09 | 美商威睿电通公司 | Mobile phone client for managing multi micro blog accounts and method |
CN103152402A (en) * | 2013-02-07 | 2013-06-12 | 百度在线网络技术(北京)有限公司 | Method and system for logging in through mobile terminal and cloud server |
CN103327480A (en) * | 2013-06-20 | 2013-09-25 | 张家港保税区润桐电子技术研发有限公司 | Intelligent mobile phone multiple-account contact information synchronizing method |
CN104883259A (en) * | 2015-06-11 | 2015-09-02 | 郑存粮 | Method for automatic registration by using mobile phone number as network application account number |
CN105208015A (en) * | 2015-08-31 | 2015-12-30 | 小米科技有限责任公司 | Application multi-account login processing method and device and terminal device |
CN105430183A (en) * | 2015-11-12 | 2016-03-23 | 广州华多网络科技有限公司 | Method for mobile terminal to switch account and mobile terminal |
CN105956429A (en) * | 2016-04-21 | 2016-09-21 | 三星半导体(中国)研究开发有限公司 | Account login method used for portable electronic device with multi-account system |
Also Published As
Publication number | Publication date |
---|---|
CN107623690A (en) | 2018-01-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107623690B (en) | Login method, device and storage medium | |
US11627129B2 (en) | Method and system for contextual access control | |
TWI706265B (en) | Third-party authorized login method and system | |
US10861000B2 (en) | Method, system, and apparatus for application loading | |
CN106105139B (en) | The authentication method and system detected automatically carried out by gateway | |
CN108632253B (en) | Client data security access method and device based on mobile terminal | |
EP2887615A1 (en) | Cloud-based scalable authentication for electronic devices | |
WO2017024842A1 (en) | Internet access authentication method, client, computer storage medium | |
WO2015070732A1 (en) | Access control system, authorization method and device thereof, and storage medium | |
CN107690792A (en) | Single sign-on for unmanaged mobile devices | |
CN104601641A (en) | Application link sharing method, device and system | |
KR102778156B1 (en) | System and method for pre-authentication of customer support calls | |
CN106375465B (en) | A data migration method and server | |
CN104079409A (en) | Account login method and device | |
US11082813B2 (en) | Message-based management service enrollment | |
CN113572763B (en) | Data processing method and device, electronic equipment and storage medium | |
CN104363226A (en) | Method, device and system for logging in operating system | |
CN108809969B (en) | Authentication method, system and device | |
CN106716956A (en) | Cloud end operation interface sharing method, related device and system | |
WO2017054510A1 (en) | Data communication method, apparatus and system in communication process | |
CN105790945B (en) | An authentication method, device and system for realizing unique user identity authentication | |
CN106161356B (en) | Method and system for rapidly logging in website through client | |
CN116112172B (en) | Android client gRPC interface security verification method and device | |
CN104375999A (en) | System and method for communicating different social networks | |
CN108880923A (en) | The method and apparatus that policer operation applied to application server is requested |
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 | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: Room 80536, Shanghai Patentee after: Shanghai Zongzhang Technology Group Co.,Ltd. Country or region after: China Address before: Room 80536, Shanghai Patentee before: SHANGHAI ZHANGMEN SCIENCE AND TECHNOLOGY Co.,Ltd. Country or region before: China |