public function TfaTestTotp::setInStore in Two-factor Authentication (TFA) 7.2
One-off methods that allow for testing base plugin encryption.
File
- tests/
includes/ tfa_test.totp.inc, line 61 - Tests for the TfaValidationPluginInterface.
Class
- TfaTestTotp
- Class TfaTestTotp.
Code
public function setInStore($data) {
$this->encryptionKey = drupal_random_bytes(32);
$this->store = $this
->encrypt($data);
}