TOTP : improve email and fix small bug

This commit is contained in:
sparkyx 2025-08-05 11:56:36 +02:00
parent 4d0325438b
commit 645bc207e1
9 changed files with 49 additions and 27 deletions

View file

@ -69,5 +69,14 @@ class OTP {
$this->authenticator->setSecret($secret);
return $this->authenticator->code();
}
public function get_authenticator() {
return $this->authenticator;
}
public function set_authenticator($authenticator) {
$this->authenticator = $authenticator;
return $this;
}
}