CN107864163B - Login method and terminal - Google Patents

Login method and terminal Download PDF

Info

Publication number
CN107864163B
CN107864163B CN201711407752.XA CN201711407752A CN107864163B CN 107864163 B CN107864163 B CN 107864163B CN 201711407752 A CN201711407752 A CN 201711407752A CN 107864163 B CN107864163 B CN 107864163B
Authority
CN
China
Prior art keywords
login information
login
field
name
record
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711407752.XA
Other languages
Chinese (zh)
Other versions
CN107864163A (en
Inventor
翁康发
周仁锟
潘金文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FUJIAN RONGJI SOFTWARE CO LTD
Original Assignee
FUJIAN RONGJI SOFTWARE CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by FUJIAN RONGJI SOFTWARE CO LTD filed Critical FUJIAN RONGJI SOFTWARE CO LTD
Priority to CN201711407752.XA priority Critical patent/CN107864163B/en
Publication of CN107864163A publication Critical patent/CN107864163A/en
Application granted granted Critical
Publication of CN107864163B publication Critical patent/CN107864163B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Storage Device Security (AREA)
  • Telephone Function (AREA)

Abstract

The present invention relates to the field of data processing, and in particular, to a login method and a terminal. The method comprises the steps of obtaining a user name and a first password; obtaining login information corresponding to the user name to obtain first login information; acquiring a password corresponding to the first login information to obtain a second password; and logging in the system when the first password is the same as the second password. The method and the device realize improvement of the login convenience of the user.

Description

Login method and terminal
Technical Field
The present invention relates to the field of data processing, and in particular, to a login method and a terminal.
Background
In an information system, users with the same name are encountered when logging in through a user name and a password, and when the user name is set, other users with the same name can be distinguished by pinyin and numbers or complicated numbers such as a job number, an identity card and the like are used as the user name of the system, so that the problem of the same name is solved. However, according to the existing login method, the user needs to remember the composition mode of the user name, which is very inconvenient.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: how to improve the convenience of user login.
In order to solve the technical problems, the invention adopts the technical scheme that:
the invention provides a login method, which comprises the following steps:
acquiring a user name and a first password;
obtaining login information corresponding to the user name to obtain first login information;
acquiring a password corresponding to the first login information to obtain a second password;
and logging in the system when the first password is the same as the second password.
The present invention also provides a login terminal comprising one or more processors and a memory, the memory storing a program and configured to be executed by the one or more processors to perform the steps of:
acquiring a user name and a first password;
obtaining login information corresponding to the user name to obtain first login information;
acquiring a password corresponding to the first login information to obtain a second password;
and logging in the system when the first password is the same as the second password.
The invention has the beneficial effects that: according to the invention, through the mode of combining the user name and the login information, the user can use a simple and easy-to-remember name as the user name of the system, and can distinguish the user from other users with duplicate names according to the login information, so that the login convenience of the user is improved.
Drawings
Fig. 1 is a flowchart of a specific embodiment of a login method provided in the present invention;
fig. 2 is a block diagram of a login terminal according to an embodiment of the present invention;
description of reference numerals:
1. a processor; 2. a memory.
Detailed Description
In order to explain technical contents, achieved objects, and effects of the present invention in detail, the following description is made with reference to the accompanying drawings in combination with the embodiments.
Referring to fig. 1 and fig. 2,
as shown in fig. 1, the present invention provides a login method, including:
acquiring a user name and a first password;
obtaining login information corresponding to the user name to obtain first login information;
acquiring a password corresponding to the first login information to obtain a second password;
and logging in the system when the first password is the same as the second password.
Further, still include:
presetting an account information table; each record in the account information table comprises a Chinese name field, a full spelling field of a Chinese name, a simple spelling field of the Chinese name, a password field and a login information field;
and adding a record to the account information table.
According to the description, when the user inputs the user name on the login interface of the system, the Chinese name consisting of Chinese characters, the complete spelling of the Chinese name consisting of letters or the simple spelling of the Chinese name can be input, and the login convenience of the user is improved.
Further, obtaining login information corresponding to the user name to obtain first login information, specifically:
acquiring more than one login information matched with the user name to obtain a login information set; the login information consists of one or two of an identity card number and department information;
and selecting login information from the login information set to obtain first login information.
As can be seen from the above description, a user is uniquely identified through the identification number or department information, or the combination of the identification number and the department information, and the user is distinguished from other users with duplicate names, so that the name of the user can be directly used as a user name to log in the system.
Further, more than one login information adapted to the user name is obtained to obtain a login information set, which specifically comprises:
presetting an account information table; each record in the account information table comprises a Chinese name field, a full spelling field of a Chinese name, a simple spelling field of the Chinese name, a password field and a login information field;
identifying a type of the username; the types comprise Chinese characters and letters;
when the type of the user name is Chinese character, acquiring records of the value of the Chinese name field and the user name adaptation from the account information table to obtain a first record set; obtaining the value of a login information field corresponding to each record in the first record set to obtain the login information set;
when the type of the user name is a letter, acquiring a record of matching the value of the full spelling field of the Chinese name with the user name and a record of matching the value of the simple spelling field of the Chinese name with the user name from the account information table to obtain a second record set; and obtaining the value of the login information field corresponding to each record in the second record set to obtain the login information set.
According to the description, when the user name input by the user on the login interface of the system is recognized to be the Chinese character type, only the value of the Chinese name field in the account information table needs to be compared, otherwise, only the value of the user name input by the user is compared with the value of the full spelling field of the Chinese name and the value of the simple spelling field of the Chinese name, and the efficiency of obtaining the login information matched with the user name input by the user is improved.
Further, selecting a login information from the login information set to obtain a first login information, specifically:
if the login information set is not empty, selecting login information from the login information set to obtain first login information; otherwise, displaying the prompt information that the user does not exist.
As shown in fig. 2, the present invention further provides a login terminal, comprising one or more processors 1 and a memory 2, wherein the memory 2 stores programs and is configured to be executed by the one or more processors 1 to:
acquiring a user name and a first password;
obtaining login information corresponding to the user name to obtain first login information;
acquiring a password corresponding to the first login information to obtain a second password;
and logging in the system when the first password is the same as the second password.
Further, still include:
presetting an account information table; each record in the account information table comprises a Chinese name field, a full spelling field of a Chinese name, a simple spelling field of the Chinese name, a password field and a login information field;
and adding a record to the account information table.
Further, obtaining login information corresponding to the user name to obtain first login information, specifically:
acquiring more than one login information matched with the user name to obtain a login information set; the login information consists of one or two of an identity card number and department information;
and selecting login information from the login information set to obtain first login information.
Further, more than one login information adapted to the user name is obtained to obtain a login information set, which specifically comprises:
presetting an account information table; each record in the account information table comprises a Chinese name field, a full spelling field of a Chinese name, a simple spelling field of the Chinese name, a password field and a login information field;
identifying a type of the username; the types comprise Chinese characters and letters;
when the type of the user name is Chinese character, acquiring records of the value of the Chinese name field and the user name adaptation from the account information table to obtain a first record set; obtaining the value of a login information field corresponding to each record in the first record set to obtain the login information set;
when the type of the user name is a letter, acquiring a record of matching the value of the full spelling field of the Chinese name with the user name and a record of matching the value of the simple spelling field of the Chinese name with the user name from the account information table to obtain a second record set; and obtaining the value of the login information field corresponding to each record in the second record set to obtain the login information set.
Further, selecting a login information from the login information set to obtain a first login information, specifically:
if the login information set is not empty, selecting login information from the login information set to obtain first login information; otherwise, displaying the prompt information that the user does not exist.
The first embodiment of the invention is as follows:
the embodiment provides a login method, which comprises the following steps:
s1, presetting an account information table; each record in the account information table comprises a Chinese name field, a full spelling field of a Chinese name, a simple spelling field of the Chinese name, a password field and a login information field; the login information consists of one or two of an identity card number and department information; and adding a record to the account information table.
For example, a record is added to the account information table, where the value of the name field in chinese is: zhang III; the value of the full-spelling field of the Chinese name is: zhangsan; the value of the abbreviated spelling field of the Chinese name is: zs; the value of the password field is: 123456; the values of the department information fields are: an office; the value of the identification number field is: 351222222222222222. the file and television room also has an employee name of Zhang III, at this time, a new record is added in the account information table, wherein the value of the name field of Chinese is as follows: zhang III; the value of the full-spelling field of the Chinese name is: zhangsan; the value of the abbreviated spelling field of the Chinese name is: zs; the value of the password field is: 897898, respectively; the values of the department information fields are: a galvanic cell; the value of the identification number field is: 351333333333333333.
and S2, acquiring the user name and the first password.
For example, the employee zhang san in the office inputs the user name zhang san in the login interface of the system, and the input password, i.e., the first password, is 123456.
S3, obtaining login information corresponding to the user name to obtain first login information; the method specifically comprises the following steps:
s31, identifying the type of the user name; the types comprise Chinese characters and letters;
s32, when the type of the user name is Chinese character, obtaining records of the value of the Chinese name field and the user name adaptation from the account information table to obtain a first record set; obtaining the value of a login information field corresponding to each record in the first record set to obtain the login information set;
s33, when the type of the user name is letter, obtaining a record of the matching of the value of the full spelling field of the Chinese name and the user name and a record of the matching of the value of the simple spelling field of the Chinese name and the user name from the account information table to obtain a second record set; and obtaining the value of the login information field corresponding to each record in the second record set to obtain the login information set.
For example, the login information set is composed of department information including two elements of an office and a teletext room.
S4, selecting one login information from the login information set to obtain first login information. The method specifically comprises the following steps:
if the login information set is not empty, selecting login information from the login information set to obtain first login information; otherwise, displaying the prompt information that the user does not exist.
S5, acquiring a password corresponding to the first login information to obtain a second password; and logging in the system when the first password is the same as the second password.
For example, if the employee zhang san in the office selects the office in the login information set, the password 123456 input by zhang san on the login interface is compared with the value 123456 of the password field of the record corresponding to the office in the account information table, and zhang san successfully logs in the system if the two passwords are the same. If the employee zhang san in the office selects the message room in the login information set, the password 123456 input by zhang san on the login interface is compared with the value 897898 of the password field of the record corresponding to the message room in the account information table, and if the two passwords are different, the login fails. The phenomenon that users with the same user name log in is effectively avoided.
The second embodiment of the invention is as follows:
the present embodiment provides a login terminal, including one or more processors 1 and a memory 2, where the memory 2 stores programs and is configured to be executed by the one or more processors 1 to perform the following steps:
s1, presetting an account information table; each record in the account information table comprises a Chinese name field, a full spelling field of a Chinese name, a simple spelling field of the Chinese name, a password field and a login information field; the login information consists of one or two of an identity card number and department information; and adding a record to the account information table.
And S2, acquiring the user name and the first password.
S3, obtaining login information corresponding to the user name to obtain first login information; the method specifically comprises the following steps:
s31, identifying the type of the user name; the types comprise Chinese characters and letters;
s32, when the type of the user name is Chinese character, obtaining records of the value of the Chinese name field and the user name adaptation from the account information table to obtain a first record set; obtaining the value of a login information field corresponding to each record in the first record set to obtain the login information set;
s33, when the type of the user name is letter, obtaining a record of the matching of the value of the full spelling field of the Chinese name and the user name and a record of the matching of the value of the simple spelling field of the Chinese name and the user name from the account information table to obtain a second record set; and obtaining the value of the login information field corresponding to each record in the second record set to obtain the login information set.
S4, selecting one login information from the login information set to obtain first login information. The method specifically comprises the following steps:
if the login information set is not empty, selecting login information from the login information set to obtain first login information; otherwise, displaying the prompt information that the user does not exist.
S5, acquiring a password corresponding to the first login information to obtain a second password; and logging in the system when the first password is the same as the second password.
In summary, the login method and the terminal provided by the invention enable the user to use a simple and easy-to-remember name as the user name of the system by combining the user name and the login information, and distinguish the user from other users with heavy names according to the login information, thereby improving the convenience of user login. Furthermore, when the user inputs the user name on the login interface of the system, the Chinese name consisting of Chinese characters, the full spelling of the Chinese name consisting of letters or the simple spelling of the Chinese name can be input, so that the login convenience of the user is improved. Furthermore, a user is uniquely confirmed through the identity card number or the department information or the combination of the identity card number and the department information, and the user is distinguished from other users with duplicate names, so that the name of the user can be directly used as a user name to log in the system. Further, when the user name input by the user on the login interface of the system is recognized to be the Chinese character type, only the value of the Chinese name field in the account information table needs to be compared, otherwise, only the value of the user name input by the user is compared with the value of the full spelling field of the Chinese name and the value of the simple spelling field of the Chinese name, and therefore the efficiency of obtaining the login information matched with the user name input by the user is improved.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to the related technical fields, are included in the scope of the present invention.

Claims (8)

1. A login method, comprising:
acquiring a user name and a first password;
the user name and the first password are input by a user in a login interface;
obtaining login information corresponding to the user name to obtain first login information;
acquiring a password corresponding to the first login information to obtain a second password;
logging in a system when the first password is the same as the second password;
obtaining login information corresponding to the user name to obtain first login information, specifically:
acquiring a plurality of login information adapted to the user name to obtain a login information set; the login information consists of one or two of an identity card number and department information;
the login information uniquely confirms a user and distinguishes the user from other users with duplicate names;
selecting login information from the login information set to obtain first login information;
the first login information is selected by a user from the set of login information.
2. The login method according to claim 1, further comprising:
presetting an account information table; each record in the account information table comprises a Chinese name field, a full spelling field of a Chinese name, a simple spelling field of the Chinese name, a password field and a login information field;
and adding a record to the account information table.
3. The login method according to claim 1, wherein more than one login information adapted to the user name is obtained to obtain a login information set, specifically:
presetting an account information table; each record in the account information table comprises a Chinese name field, a full spelling field of a Chinese name, a simple spelling field of the Chinese name, a password field and a login information field;
identifying a type of the username; the types comprise Chinese characters and letters;
when the type of the user name is Chinese character, acquiring records of the value of the Chinese name field and the user name adaptation from the account information table to obtain a first record set; obtaining the value of a login information field corresponding to each record in the first record set to obtain the login information set;
when the type of the user name is a letter, acquiring a record of matching the value of the full spelling field of the Chinese name with the user name and a record of matching the value of the simple spelling field of the Chinese name with the user name from the account information table to obtain a second record set; and obtaining the value of the login information field corresponding to each record in the second record set to obtain the login information set.
4. The login method according to claim 1, wherein a login information is selected from the login information set to obtain a first login information, specifically:
if the login information set is not empty, selecting login information from the login information set to obtain first login information; otherwise, displaying the prompt information that the user does not exist.
5. A login terminal comprising one or more processors and memory, the memory storing a program and configured to be executed by the one or more processors to perform the steps of:
acquiring a user name and a first password;
the user name and the first password are input by a user in a login interface;
obtaining login information corresponding to the user name to obtain first login information;
acquiring a password corresponding to the first login information to obtain a second password;
logging in a system when the first password is the same as the second password;
obtaining login information corresponding to the user name to obtain first login information, specifically:
acquiring a plurality of login information adapted to the user name to obtain a login information set; the login information consists of one or two of an identity card number and department information;
the login information uniquely confirms a user and distinguishes the user from other users with duplicate names;
selecting login information from the login information set to obtain first login information;
the first login information is selected by a user from the set of login information.
6. The login terminal of claim 5, further comprising:
presetting an account information table; each record in the account information table comprises a Chinese name field, a full spelling field of a Chinese name, a simple spelling field of the Chinese name, a password field and a login information field;
and adding a record to the account information table.
7. The login terminal according to claim 5, wherein more than one login information adapted to the user name is obtained to obtain a login information set, specifically:
presetting an account information table; each record in the account information table comprises a Chinese name field, a full spelling field of a Chinese name, a simple spelling field of the Chinese name, a password field and a login information field;
identifying a type of the username; the types comprise Chinese characters and letters;
when the type of the user name is Chinese character, acquiring records of the value of the Chinese name field and the user name adaptation from the account information table to obtain a first record set; obtaining the value of a login information field corresponding to each record in the first record set to obtain the login information set;
when the type of the user name is a letter, acquiring a record of matching the value of the full spelling field of the Chinese name with the user name and a record of matching the value of the simple spelling field of the Chinese name with the user name from the account information table to obtain a second record set; and obtaining the value of the login information field corresponding to each record in the second record set to obtain the login information set.
8. The login terminal according to claim 5, wherein a login information is selected from the login information set to obtain a first login information, specifically:
if the login information set is not empty, selecting login information from the login information set to obtain first login information; otherwise, displaying the prompt information that the user does not exist.
CN201711407752.XA 2017-12-22 2017-12-22 Login method and terminal Active CN107864163B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711407752.XA CN107864163B (en) 2017-12-22 2017-12-22 Login method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711407752.XA CN107864163B (en) 2017-12-22 2017-12-22 Login method and terminal

Publications (2)

Publication Number Publication Date
CN107864163A CN107864163A (en) 2018-03-30
CN107864163B true CN107864163B (en) 2021-05-04

Family

ID=61707147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711407752.XA Active CN107864163B (en) 2017-12-22 2017-12-22 Login method and terminal

Country Status (1)

Country Link
CN (1) CN107864163B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753309A (en) * 2009-12-28 2010-06-23 莫奇 User login information registration method and system thereof
CN105516059A (en) * 2014-09-25 2016-04-20 阿里巴巴集团控股有限公司 Resource access control method and device
CN105577626A (en) * 2014-10-28 2016-05-11 祝永康 User name registration and use method, system and device
CN105933296A (en) * 2016-04-12 2016-09-07 北京奇虎科技有限公司 Copyright registration method and system
CN106790107A (en) * 2016-12-26 2017-05-31 郑州云海信息技术有限公司 A kind of access control method and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753309A (en) * 2009-12-28 2010-06-23 莫奇 User login information registration method and system thereof
CN105516059A (en) * 2014-09-25 2016-04-20 阿里巴巴集团控股有限公司 Resource access control method and device
CN105577626A (en) * 2014-10-28 2016-05-11 祝永康 User name registration and use method, system and device
CN105933296A (en) * 2016-04-12 2016-09-07 北京奇虎科技有限公司 Copyright registration method and system
CN106790107A (en) * 2016-12-26 2017-05-31 郑州云海信息技术有限公司 A kind of access control method and server

Also Published As

Publication number Publication date
CN107864163A (en) 2018-03-30

Similar Documents

Publication Publication Date Title
EP3164795B1 (en) Prompting login account
CN105847288B (en) A kind of identifying code treating method and apparatus
US9369468B2 (en) Generation of a visually obfuscated representation of an alphanumeric message that indicates availability of a proposed identifier
CN101610157B (en) System and method for automatically signing with digital certificate in Web form
EP3306504A1 (en) Multi-user login method, device and storage medium
WO2015101334A1 (en) Method, terminal and system for associating user resource information
CN103546877A (en) Method and system for obtaining and inputting content code and mobile terminal
EP3396558B1 (en) Method for user identifier processing, terminal and nonvolatile computer readable storage medium thereof
CN103425914A (en) Login method of application program and communication terminal
KR20190019067A (en) Information leak detection method and apparatus, server and computer readable storage medium
US10681146B2 (en) Method and apparatus for isolating page cookie
CN106878275B (en) Identity verification method and device and server
CN107688733B (en) Service interface calling method, device, user terminal and readable storage medium
CN103312519B (en) A kind of dynamic password device and method of work thereof
CN106130980A (en) A kind of vulnerability scanning method and device
CN107277068B (en) Identity recognition method and terminal
CN104618388A (en) Quick registration and login method and corresponding reset server and information server
CN101674327B (en) Heterogeneous system message integration method, framework and system
CN107864163B (en) Login method and terminal
CN104270357A (en) Service information sending method and device
CN106843526A (en) A kind of Account Administration system and its application method based on input method
WO2017070600A1 (en) System and method for authenticating a user through unique aspects of the user's keyboard of typing cadence data
CN105141673A (en) Intelligent terminal and user information processing method thereof
CN108228623B (en) Data processing method and client device
JP2009059235A (en) User authentication system

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