Change OTP Validity Time
Warning
Mideye Server 5 is no longer updated, and new installations are not supported. Only existing Mideye Server 5 installations and upgrades are supported. Please use Mideye Server 6 for new installations and continued support.
The validity time for an OTP is by default set to 60 seconds. This global parameter can be changed in the application-prod.yml
file.
Default path to the file in Windows:
C:\Program Files (x86)\Mideye Server 5\config\application-prod.yml
The default path to the file in Linux:
/opt/mideyeserver/config/application-prod.yml
Find the in the section named ‘application’ and add the line below, where xxx is replaced with the time in seconds.
Below is an example of how the section should look after the change is made, take note of the indentation:
application:
switch-host: primary.mideye.com
switch-backup-host: secondary.mideye.com
switch-port: 2xxxx
log-path: C:\Program Files (x86)\Mideye Server 5\log
otp-timeout: xxx
The Mideye Server service must be re-started for the change to take effect.