Re: Identify/validate user
- From: "Tom de Neef" <tdeneef@xxxxxxxx>
- Date: Sun, 27 Nov 2005 15:43:33 +0100
"DG" <dg@xxxxxxxxxxx> schreef in bericht
news:4389c243$0$63089$ed2e19e4@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Sorry if this has been raised before but I am drawing a complete blank.
>
> I can identify the current logged on user using GetCurrentUserName.
>
> My difficulty comes in validating that user and terminating the program if
> not correctly authenticated.
>
> I'm sure I've missed something quite straightforward but would appreciate
> any help.
>
if NOT AuthorisedUser(username) then halt;
You will have to write a function AuthorisedUser(name : string) : boolean
that verifies the name against some list of valid user names.
Without further context I do not understand what your problem is.
Tom
.
- References:
- Identify/validate user
- From: DG
- Identify/validate user
- Prev by Date: Identify/validate user
- Next by Date: Resizing handles
- Previous by thread: Identify/validate user
- Next by thread: Resizing handles
- Index(es):
Relevant Pages
|
|