Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking password within form
Message
From
06/08/1999 12:28:43
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00250033
Message ID:
00250735
Views:
21
I would still think you want people to log in once. In the case of multiple users you would just have to make sure its easy to log in/out. At least have the user have to log in when they bring up the form.

PF

>I thought that, but this might be a situation where the workstation is used by more than one person, and changes must only be made by those authorised to do so (an electronic signature rather than a password, perhaps).
>
>>Jane,
>>
>>Pardon me, but your design doesn't sound like the best for data entry. Why have the user log in once. You can store off their rights somewhere, and check their rights during the "Init" of the command buttons to determine Visibility.
>>
>>Pf
>>
>>
>>>>Hi Jane,
>>>>
>>>>>I want to check a password whenever the user selects new, delete, or save from command buttons. I'm not certain how to do it. If these buttons are selected, I then set visible to .t. for the password textbox. Where do I check that the password is correct?
>>>>
>>>>Most Frameworks have an User object which contains the username as well as methods to return rights to a speciefic object. You assume if the App is up and running the user entered the password to get in, so checking if the password is correct when you start a form should be done another way: when the form startsup check the users rights by comparing the username (property in User Manager) and object name (passed)
>>>>
>>>>>How do I allow for 3 tries to enter the password. Do I write a function to do this? Where do I put it? I know how to do it in DOS but not in Windows.
>>>>
>>>>In your login have a variable nTries=0. If the user logs in with an incorrect password, increment nTrie by 1 and check if it at 3. If its not let them try again, otherwise continue on your way.
>>>
>>>Thanks for the reply but I don't want the user to login. The user enters a password only when selecting new, delete, save. Otherwise a password doesnt have to be entered. It has to be done each time the user clicks on those buttons. I'm not certain where to set visible to .t. for password textbox visible & I'm not certain where to check that the password has been entered & that it is valid.

(On an infant's shirt): Already smarter than Bush
Previous
Reply
Map
View

Click here to load this message in the networking platform