Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6286dfc4
Commit
6286dfc4
authored
Jan 10, 2020
by
nicolasdular
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add RECaptcha to new sign up flow
parent
8ca63226
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
app/views/devise/shared/_experimental_separate_sign_up_flow_box.html.haml
.../shared/_experimental_separate_sign_up_flow_box.html.haml
+5
-1
No files found.
app/views/devise/shared/_experimental_separate_sign_up_flow_box.html.haml
View file @
6286dfc4
...
...
@@ -5,6 +5,7 @@
=
form_for
(
resource
,
as:
"new_
#{
resource_name
}
"
,
url:
registration_path
(
resource_name
),
html:
{
class:
"new_new_user gl-show-field-errors"
,
"aria-live"
=>
"assertive"
})
do
|
f
|
.devise-errors.mt-0
=
render
"devise/shared/error_messages"
,
resource:
resource
-
if
Feature
.
enabled?
(
:invisible_captcha
)
=
invisible_captcha
.username.form-group
=
f
.
label
:username
,
class:
'label-bold'
...
...
@@ -27,5 +28,8 @@
-
accept_terms_label
=
_
(
"I accept the %{terms_link}"
)
%
{
terms_link:
terms_link
}
=
accept_terms_label
.
html_safe
=
render_if_exists
'devise/shared/email_opted_in'
,
f:
f
%div
-
if
show_recaptcha_sign_up?
=
recaptcha_tags
.submit-container.mt-3
=
f
.
submit
_
(
"Register"
),
class:
"btn-register btn btn-block btn-success mb-0 p-2"
,
data:
{
qa_selector:
'new_user_register_button'
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment