PDA

View Full Version : remember the password


CAI
09-18-2005, 06:57 PM
I use this string or script

but is there also an option to remember the password

for the next time use :huh

maybe a remember login option

please help :o


-- the correct password "valid"
real_password = "valid";

-- prompt the user to enter a password
user_password = Dialog.PasswordInput("Password", "Please enter the password:", MB_ICONQUESTION);

-- compare the user's password to the correct password.
-- If the user supplies the wrong password, exit the program.
if real_password ~= user_password then
Application.Exit();
end

Derek
09-19-2005, 05:23 AM
Hi

You have a number of options available to you, and depending on how 'professional' you want this to be.

You could use sqlite to store all the user/password info, or if a database is too much, have AMS write the info to a (encrypted?) text file and keep that in the application folder (or anywhere you choose). Alternatively, you could write the info to the registry and retrieve it from there when someone 'logs in'.

You can find an article on adding password protection in the online help (http://www.indigorose.com/webhelp/ams60/index.htm) file.