Indigo Rose Software
  #1  
Old 09-18-2005
CAI's Avatar
CAI CAI is offline
Forum Member
 
Join Date: Sep 2005
Location: The Netherlands
Posts: 36
remember the password

I use this string or script

but is there also an option to remember the password

for the next time use

maybe a remember login option

please help


-- 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

Last edited by CAI; 09-18-2005 at 07:02 PM.
Reply With Quote
  #2  
Old 09-19-2005
Derek's Avatar
Derek Derek is offline
Indigo Rose Customer
 
Join Date: May 2001
Location: 51.501296|-2.700963
Posts: 1,205
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 file.
__________________
-
- Derek
- ["All glory comes from daring to begin" - fortune cookie]

IR WebHelp: AMS6 SUF7 VP2 TU2
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Password Protection Desmond AutoPlay Media Studio 5.0 Examples 0 10-03-2003 04:25 PM
Reoccurring password Bruce AutoPlay Media Studio 4.0 6 06-04-2003 05:09 PM
Password Bruce AutoPlay Media Studio 4.0 2 05-31-2003 06:52 PM
HOWTO: Add Password Protection to Your Application Support AutoPlay Media Studio 4.0 Examples 0 10-03-2002 04:39 PM


All times are GMT -6. The time now is 01:40 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software