This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Vis Page PIN
#1
Is it possible to adjust the PIN code set for a Visualisation using a script.
Want to be able to dynamically adjust the PIN so that its different every day. Like using partially the date as a Key.
Reply
#2
Which PIN do you want to change: level, plan, object or PIN for the whole visualization?
Reply
#3
(17.03.2021, 06:59)admin Wrote: Which PIN do you want to change: level, plan, object or PIN for the whole visualization?

Sorry, the Plan's PIN.
I have a particular page that I don't want engineers to open unless I ask them too. But I need the PIN to change so they cant use it the same PIN over and over again.
Reply
#4
Use this. It's recommended to keep PIN length the same. Otherwise it might not work for the end user who had the visualization already open when the PIN was changed.
Code:
id = 1 -- plan ID
db:update('visfloors', { pincode = '123456' }, { id = id })
Reply
#5
(17.03.2021, 08:39)admin Wrote: Use this. It's recommended to keep PIN length the same. Otherwise it might not work for the end user who had the visualization already open when the PIN was changed.
Code:
id = 1 -- plan ID
db:update('visfloors', { pincode = '123456' }, { id = id })

Many thanks. PIN script working
Reply


Forum Jump: