Re: Identify/validate user



"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


.



Relevant Pages

  • Identify/validate user
    ... 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 ... Prev by Date: ...
    (comp.lang.pascal.delphi.misc)
  • Re: OT: Borat
    ... trying to place it in the same context. ... You have no idea what comparison I was drawing, ... # Use Jim Davidson attack. ... # Throw the hippy down the well... ...
    (uk.rec.motorcycles)
  • Re: Help and support?
    ... you're drawing everything out of the context they were set in ... Do I draw everything out of the ... context they were not set in. ... I apologize if this is so. ...
    (uk.people.support.depression)
  • Re: Out-dated theory
    ... mythical character who never existed as a historical figure then what ... is the point of drawing anything from the story, ... It wouldn't fit the context. ...
    (uk.religion.christian)