auth_internal: cast OTP code to integer before trying to check it

This commit is contained in:
Andrew Dolgov 2020-09-17 16:50:34 +03:00
parent c25edd0024
commit d8619b9a84
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class Auth_Internal extends Plugin implements IAuthModule {
$pwd_hash1 = encrypt_password($password);
$pwd_hash2 = encrypt_password($password, $login);
$otp = $_REQUEST["otp"];
$otp = (int)$_REQUEST["otp"];
if (get_schema_version() > 96) {