To disable or enable OTP functionality for server login you need to change IsOTPenable flag from database.

MySQL--db_enviroconnect--systemconfigurationinfo--IsOTPenable--True(ON) or false(off)