Patent ID: 9602502
Date: 2017-03-21
CPC Classifications: G06F,H04L,H04W

Claim:
1. A user login method for use in a terminal, comprising: receiving, by the terminal an automatic login request from a user through a website or a software application installed on the terminal, the automatic login request including a target server identifier; acquiring, by the terminal, a terminal identifier of the terminal from a memory of the terminal by calling an application programming interface function; sending, by the terminal, to a server associated with the target server identifier, a query request about a user account associated with the terminal identifier and a password corresponding to the user account, the query request including the terminal identifier; receiving, by the terminal, from the server, a query result based on a query request; if the query result is empty, displaying, by the terminal, a new user account login control element on a login interface to acquire a user account and a corresponding password inputted by the user for authentication; detecting, by the terminal, whether a new user account login request signal is generated from the new user account login control element; acquiring, by the terminal, the new user account and the corresponding password from the new user account login control element, when the new user account login request signal is detected; sending, by the terminal, the acquired user account and the acquired corresponding password to the server to login after authentication by the server; if the query result is not empty, selecting, by the terminal, a user account from the query result and a password corresponding to the selected user account according to a user selection on the login interface; and sending, by the terminal, to the server, the selected user account and the corresponding password, for the selected user account to login after authentication by the server; authenticating, by the server, the terminal according to the selected user account and the corresponding password or the acquired user account and the acquired corresponding password; receiving, by the terminal, the information indicating successful login returned from the server; after the terminal receives the information indicating successful login returned from the server, providing an option in the login interface of the terminal for the user to choose whether or not to bind the new user account and the corresponding password of the new user account with the terminal; sending, by the terminal, the terminal identifier, the acquired user name, and the acquired corresponding password to the server, when the terminal receives a signal from the login interface indicating the user chooses to bind the new user account with the terminal; and binding and storing, by the server, the terminal identifier, the acquired user name, and the acquired corresponding password.