How do I change the password of my protected stack

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Paul D
Posts: 116
Joined: Mon May 21, 2007 6:58 pm

How do I change the password of my protected stack

Post by Paul D » Fri Jan 30, 2009 4:12 pm

I put...

Set the password of this stack to "1234"

if i change 1234 to anything else, save, close remove from memory and re-open... the password is STILL 1234. Is there a process for changing or even removing the password?

Klaus
Posts: 14208
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Fri Jan 30, 2009 4:23 pm

Hi Paul,

to remove a password:
...

Code: Select all

## First get access to the stacks password!!! 
## The most important step!
set the passkey of stack XYZ to "your password here"

## Now remove old password:
set the password of stack XYZ to empty

## Now save the stack and/or set another password:
set the password of stack XYZ to "new password here"
...

Best

Klaus

Paul D
Posts: 116
Joined: Mon May 21, 2007 6:58 pm

Post by Paul D » Fri Jan 30, 2009 5:03 pm

[edit again still doesnt work]

Original PW is 1234

set the passkey of stack "abc" to "1234"
set the password of stack "abc" to empty
set the password of stack "abc" to "4567"

saved, closed from memory, re-open...password is still 1234.

set the password of stack "abc" to empty
does nothing, i still need to enter 1234

set the passkey of stack "abc" to "2345"
set the password of stack "abc" to empty
does nothing, password still 1234

set the password of stack "abc" to empty
set the password of stack "abc" to "4567"
does nothing, password still 1234

set the passkey of this stack to empty
set the password of this stack to empty
does nothing, password still 1234

what the hell am i doing wrong. putting any of this in a button or at the top of the script on my stack is still giving me the same results.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Fri Jan 30, 2009 5:20 pm

Paul,

You don't really close the stack. After you close it, it is still in memory. Set the destroyStack of your stack to true before saving, closing and re-opening it or quit and restart Revolution. This should do the trick.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Paul D
Posts: 116
Joined: Mon May 21, 2007 6:58 pm

Post by Paul D » Fri Jan 30, 2009 5:27 pm

destroystack has been on the whole time.

Paul D
Posts: 116
Joined: Mon May 21, 2007 6:58 pm

Post by Paul D » Wed Feb 04, 2009 2:26 pm

well i have exhausted all of the possibilities of the passkey and password setting and 4 days later my stack is still password at 1234. :(

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Wed Feb 04, 2009 2:36 pm

Paul,

Have you tried this with a new, clean stack? Are you sure that the current password is still 1234, can you edit a script after entering 1234?

I don't know what, but you are definitely making a mistake somewhere. This feature has always worked for me.

Btw, you never confirmed that you quit Revolution after changing the password and saving the stack and before re-opening the stack,

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Paul D
Posts: 116
Joined: Mon May 21, 2007 6:58 pm

Post by Paul D » Wed Feb 04, 2009 10:06 pm

When I put anything related to passkey/password in a new stack i dont get prompted to enter a password before i can see/edit the script.

I have always done this routine...

Set the code
Set destroystack true
Save the stack
Close revolution
Open revolution
Open stack

Maybe I am putting [Set the password (or passkey) of stack "abc" to "whatever"] some where it is not supposed to go.

Where should I put the code for that? In the openstack, closestack section?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Wed Feb 04, 2009 10:19 pm

Hi Paul,

Usually, I set the password/passkey from the message box. I wouldn't know where else...

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply