help me please ^^

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
XANT0
Posts: 3
Joined: April 22nd, 2010, 12:25 pm

hello everyone :)


I want to know how to do a validation code to my script :cry:
I try this:
var password;
var code1 = "my first pass";
var code2 = "my 2nd pass";
code3 var = "my 3rd pass";




password = prompt ("Enter your serial number :","");

if (password == code1 | | code2 == password | | password == code3) {
Run (this);
password = false;

alert ("Your serial number is \ n \ n \ n" + "OK! \ n \ n ", "C-replicator") / / file to open if password is correct
Else {}


alert ("Your serial number is \ n \ n \ n" + "WRONG! " \ n \ n ","C-replicator ") / / file to load if password is incorrect
}



but I have a problem
every time I open AE I must enter the password.

help me please! thank you!

and sorry for my English :mrgreen:
User avatar
lloydalvarez
Enhancement master
Posts: 460
Joined: June 17th, 2004, 9:27 am
Location: New York City, NY
Contact:

Once a valid password is entered you should store it somewhere. When you run the script it should only ask for the password only if the one stored one is not valid.
XANT0
Posts: 3
Joined: April 22nd, 2010, 12:25 pm

Thank you very much ^^
Post Reply