зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] Clarify message
https://github.com/rubygems/rubygems/commit/d94173be49
This commit is contained in:
Родитель
6275284f02
Коммит
ea95ec5443
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче