TOTP : improve email and fix small bug
This commit is contained in:
parent
4d0325438b
commit
645bc207e1
9 changed files with 49 additions and 27 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue