Skip to content

Commit 82e5aff

Browse files
committed
Additional comments in generate_totp_secret method
1 parent 20544c7 commit 82e5aff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/two_factor_authentication/models/two_factor_authenticatable.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ def confirm_totp_secret(secret, code, options = {})
9292
end
9393

9494
def generate_totp_secret
95+
# ROTP gem since version 5 to version 5.1
96+
# at version 5.1 ROTP gem reinstates.
97+
# Details: https://github.com/mdp/rotp/blob/master/CHANGELOG.md#510
9598
ROTP::Base32.try(:random) || ROTP::Base32.random_base32
9699
end
97100

0 commit comments

Comments
 (0)