Skip to content

Commit

Permalink
ToTpAuth: add updateSecret
Browse files Browse the repository at this point in the history
  • Loading branch information
1291945816 committed Dec 16, 2023
1 parent 8eb6303 commit 6931497
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ToTpAuth/include/Totp.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ class Totp {
initTime_(initTime),
timeStep_(timeStep),
digit_(digit){}
// 更新密钥的值
void updateSecret(std::string secret)
{
this->strSecret_ = std::move(secret);

}
std::string genTotp(std::time_t currTime) ;
~Totp()=default;

Expand Down

0 comments on commit 6931497

Please sign in to comment.