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

  • Re: Whos got the new Sky HD EPG? (Poll)
    ... Well the context was that he'd had it for a couple of weeks or so. ... lot of us can on the current EPG. ... Even if it is slow at drawing, based on the old EPG, it may well accept ... I just see this kind of thing all too often - When Microsoft Word for DOS ...
    (uk.tech.tv.sky)
  • 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: Dont you just love writing this sort of thing :)
    ... as written by Lawrence ... ... If you wanted the context for your reply, you should have replied to the ... Does that make any sense to you, or should I start drawing simple diagrams? ...
    (comp.lang.python)
  • 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)