From aeea252f447461ddaa381e28411af948fd6a0bf6 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Fri, 25 Mar 2022 15:07:57 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- app/views/devise/sessions/_new_base.html.haml | 10 ++++++---- locale/gitlab.pot | 9 +++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/app/views/devise/sessions/_new_base.html.haml b/app/views/devise/sessions/_new_base.html.haml index b40373ecc37..96ba06a8323 100644 --- a/app/views/devise/sessions/_new_base.html.haml +++ b/app/views/devise/sessions/_new_base.html.haml @@ -1,7 +1,7 @@ -= form_for(resource, as: resource_name, url: session_path(resource_name), html: { class: 'new_user gl-show-field-errors', 'aria-live' => 'assertive'}) do |f| += form_for(resource, as: resource_name, url: session_path(resource_name), html: { class: 'new_user gl-show-field-errors js-sign-in-form', aria: { live: 'assertive' }, data: { testid: 'sign-in-form' }}) do |f| .form-group = f.label _('Username or email'), for: 'user_login', class: 'label-bold' - = f.text_field :login, value: @invite_email, class: 'form-control gl-form-input top', autofocus: 'autofocus', autocapitalize: 'off', autocorrect: 'off', required: true, title: _('This field is required.'), data: { qa_selector: 'login_field' } + = f.text_field :login, value: @invite_email, class: 'form-control gl-form-input top js-username-field', autofocus: 'autofocus', autocapitalize: 'off', autocorrect: 'off', required: true, title: _('This field is required.'), data: { qa_selector: 'login_field', testid: 'username-field' } .form-group = f.label :password, class: 'label-bold' = f.password_field :password, class: 'form-control gl-form-input bottom', autocomplete: 'current-password', required: true, title: _('This field is required.'), data: { qa_selector: 'password_field' } @@ -16,8 +16,10 @@ - else = link_to _('Forgot your password?'), new_password_path(:user) %div - - if captcha_enabled? || captcha_on_login_required? + - if Feature.enabled?(:arkose_labs_login_challenge) + = render_if_exists 'devise/sessions/arkose_labs' + - elsif captcha_enabled? || captcha_on_login_required? = recaptcha_tags nonce: content_security_policy_nonce .submit-container.move-submit-down - = f.submit _('Sign in'), class: 'gl-button btn btn-confirm', data: { qa_selector: 'sign_in_button' } + = f.button _('Sign in'), type: :submit, class: "gl-button btn btn-block btn-confirm js-sign-in-button#{' js-no-auto-disable' if Feature.enabled?(:arkose_labs_login_challenge)}", data: { qa_selector: 'sign_in_button', testid: 'sign-in-button' } diff --git a/locale/gitlab.pot b/locale/gitlab.pot index 9762e2b4f12..51decc88b24 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -3819,6 +3819,9 @@ msgstr "" msgid "An error occurred previewing the blob" msgstr "" +msgid "An error occurred when loading the user verification challenge. Refresh to try again." +msgstr "" + msgid "An error occurred when updating the title" msgstr "" @@ -9176,6 +9179,9 @@ msgstr "" msgid "Complete" msgstr "" +msgid "Complete verification to sign in." +msgstr "" + msgid "Completed" msgstr "" @@ -39801,6 +39807,9 @@ msgstr "" msgid "Unable to update this issue at this time." msgstr "" +msgid "Unable to verify the user" +msgstr "" + msgid "Unapprove a merge request" msgstr ""