diff options
author | Ashley Ellis Pierce <anellis12@gmail.com> | 2022-12-23 09:34:02 -0500 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-04-12 11:51:02 +0900 |
commit | ea95ec5443dae90800c0bd33274733323129b5f1 (patch) | |
tree | 9cc4a7596902840ecd853916b0a379abde2e5ccf /lib | |
parent | 6275284f025dea81f4fdca8c80534d27263b003a (diff) | |
download | ruby-ea95ec5443dae90800c0bd33274733323129b5f1.tar.gz |
[rubygems/rubygems] Clarify message
https://github.com/rubygems/rubygems/commit/d94173be49
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rubygems/gemcutter_utilities.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rubygems/gemcutter_utilities.rb b/lib/rubygems/gemcutter_utilities.rb index 01c189a8e3..7556753f58 100644 --- a/lib/rubygems/gemcutter_utilities.rb +++ b/lib/rubygems/gemcutter_utilities.rb @@ -252,10 +252,10 @@ module Gem::GemcutterUtilities def ask_otp(credentials) webauthn_url = webauthn_verification_url(credentials) - unless webauthn_url - say "You have enabled multi-factor authentication. Please enter OTP code." + if webauthn_url + say "You have enabled multi-factor authentication. Please enter OTP code from your security device by visiting #{webauthn_url}." else - say "You have enabled multi-factor authentication. Please enter OTP code from your security device by visiting #{webauthn_url} or your authenticator app." + say "You have enabled multi-factor authentication. Please enter OTP code." end options[:otp] = ask "Code: " |