October 4, 200619 yr I currently have a solution, where I have different layouts available to different users, based on there priviliges. What I would llike it to do is when you login and your username/password is correct, execute this script. And when its incorrect execute another script. I tried using the Get(LastMessageChoice), but then realized that was only good for custom dialog boxes. If anyone could help me get on the right path it would be appreciated. Thanks Jeff England [email protected]
October 4, 200619 yr What I would llike it to do is when you login and your username/password is correct, execute this script. And when its incorrect execute another script. Sorry. This doesn't make sense. If a user provides an incorrect log-in, then the user is not logged in to the file. And if the user is not logged in to the file, none of the file's functionalities, e.g. scripts, messages, and so forth are available. Steven
October 4, 200619 yr Author Sorry my original question didnt make sense. When the file is opened, the user is logged in as a user who can only view records. I then have other sections where records can be created and an area where records can be edited. It is essential that I am able to see who created and modified the records. So everytime a user enters a certain area they are prompted to login (using the re-login script step). However when you are logging in filemaker gives the user the option to cancel the log in. If the user chooses cancel the script continues. This is what I would like, if the user is to click cancel, have a script run, if they log in incorrectly run another script, and when they log in correctly run another script. Hopefully that made a little more sense Jeff England [email protected]
October 4, 200619 yr I'd recommend changing your system so that all users are authenticated when the file is opened. No more logging in with a general read-only password! When the system knows who you are, it can show just the data you have access to, and tag any logs with your information as you view or create records.
October 4, 200619 yr Author Well I have seemed to have found a solution to my problem. Before running my Re-Login script step, I turned on the error capture. After that was on I used the Get(LastError) to see what errors came up when I did certain things. After testing out all the combinations I believe I have something working that I am now happy with. Thanks for the help everyone Jeff England
October 5, 200619 yr [color:red]Pay attention to what Ender said. From your description of your process here, I believe it would be possible for an unauthorized user to extract every piece of data in your database with considerable ease. Steven
October 5, 200619 yr Yes, pay attention to what "Old Advance Man" -- how did you come up with that steven, i mashed mine in on the keyboard and thats what it came up with -- says - he is the authority on this sort of thing, plus it just doesn't seem right leaving all your data exposed like that... but also try and look at it from a users perspective, would you want to constanty log in from section to section?
October 5, 200619 yr I do not understand what you mean. If you log in correctly, as Ender describes, you should not again be presented with a credentials challenge unless the system has been specifically configured to issue such a challenge. Steven
October 5, 200619 yr I didn't say anything against that, i was commenting on the OP's method of authenticating everytime the user enter's a certain area.
Create an account or sign in to comment