In Need Of a Dynamic Applock

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
Shanjul
Posts: 1
Joined: 23 Jul 2015 12:26

In Need Of a Dynamic Applock

Post by Shanjul » 23 Jul 2015 12:32

I would like to get aN applock whose password changes after every succesful unlock....... Lets suppose we initially store 5 different passwords in it... And on every succesful unlock it changes the password from those stored passwords one by one .

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: In Need Of a Dynamic Applock

Post by Martin » 24 Jul 2015 11:42

Hi,

Action Set Lock PIN/Password allows to take the PIN/password from a variable so you could add all your desired passwords to a global variable list and then remove the password from the list whenever the unlock attempt was successful and set the next PIN/password. You could also use a global variable to store the position in your password list and increment this counter each time you use a new password, wrap the position to 0 when the end of the list is reached.

Please be extra careful when writing such a flow. I recommend to not really change the PIN/password until you are totally sure that the flow works as expected, otherwise you might lock yourself out of your device.
In place of the real Set Lock PIN/Password I would use an action Notification on Screen that displays the PIN that would be set. Maybe also consider to create a flow to restore a known default PIN/password, for example when receiving the SMS with text 'clear pin', execute action Set Lock PIN/Password: Clear.

Regards,
Martin

Locked