(misc)
string o2app_otp(string $user, integer $otp_len)
Generates a One Time Password for application user.
OTP is a time-based access code provided to user to override his standard password
and can be used only once.
Returned OTP is a string of $otp_len chars, default length is 6.
If $user is blank then OTP is generated for the currently logged user.
OTP string can be used to access to the application by a request like this: