[rubygems/rubygems] Clarify message

https://github.com/rubygems/rubygems/commit/d94173be49
This commit is contained in:
Ashley Ellis Pierce 2022-12-23 09:34:02 -05:00 коммит произвёл Hiroshi SHIBATA
Родитель 6275284f02
Коммит ea95ec5443
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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: "

Просмотреть файл

@ -233,8 +233,8 @@ class TestGemGemcutterUtilities < Gem::TestCase
def test_sign_in_with_webauthn_otp
webauthn_verification_url = "rubygems.org/api/v1/webauthn_verification/odow34b93t6aPCdY"
api_key = "a5fdbb6ba150cbb83aad2bb2fede64cf040453903"
response_fail = "You have enabled multifactor authentication"
api_key = "a5fdbb6ba150cbb83aad2bb2fede64cf040453903"
util_sign_in(proc do
@call_count ||= 0