Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Artful Two for Clipper 5.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

Syntax

LOGIN( [ cUserName[, cPassword[, cSysFile ]]] )

Purpose

Generalised login procedure featuring user validation and password
protection.

Arguments

     cUserName -- initial user name to present to user; defaults to a
                      blank string

     cPassword -- initial password to present to user; defaults to a
                      blank string

     cSysFile -- DBF name of SYS file

Setup

You SYS table should previously have been filled with a record for each
user who will be using the system. For the purpose of this function, the
most important fields are Username and Password.

You only need to pass cSysFile if SYS is not open.

Pass cUserName and/or cPassword by reference if you need to retain
the values.

Example

     CHK_DICT( "AAI_DICT" )

     IF !LOGIN()

          QUITPROG()

     ENDIF

Returns

.T. if the user name and password entered conform to an entry in the
SYS table.

Side Effects

If the user name and password entered correspond to an entry in the SYS
table, the record pointer in SYS will rest on the matching record. If there
is no corresponding user name and password entry, a message indicating
unauthorized entry will be presented.

Artful Calls

IS_OPEN, DB_OPEN, IS_CHAR, BLANK, ENCRYPT_IT, POP_MSG, PROPER

Source File

AA_LOGIN.PRG

See Also: SIGN_ON() SIGN_OFF() CONFIGURE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson