You are here

function MoAuthPasswordValidator::isLastPasswordInserted in Google Authenticator / 2 Factor Authentication - 2FA 7

1 call to MoAuthPasswordValidator::isLastPasswordInserted()
MoAuthPasswordValidator::lastNPasswordsInDB in classes/MoAuthPasswordValidator.php

File

classes/MoAuthPasswordValidator.php, line 64

Class

MoAuthPasswordValidator

Code

function isLastPasswordInserted($result) {
  foreach ($result as $key => $value) {
    if ($value->pass == $this->user->pass) {
      return TRUE;
    }
  }
  return FALSE;
}