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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
2193a353
Commit
2193a353
authored
Apr 22, 2016
by
Robert Speicher
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'confirmation-screen' into 'master'
Improved email confirmation UX Closes #4228 See merge request !3184
parents
c3903293
50ed43e4
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
64 additions
and
4 deletions
+64
-4
CHANGELOG
CHANGELOG
+1
-0
app/assets/stylesheets/framework/buttons.scss
app/assets/stylesheets/framework/buttons.scss
+4
-0
app/assets/stylesheets/pages/confirmation.scss
app/assets/stylesheets/pages/confirmation.scss
+18
-0
app/controllers/confirmations_controller.rb
app/controllers/confirmations_controller.rb
+9
-0
app/controllers/registrations_controller.rb
app/controllers/registrations_controller.rb
+2
-2
app/views/devise/confirmations/almost_there.haml
app/views/devise/confirmations/almost_there.haml
+10
-0
app/views/layouts/devise_empty.html.haml
app/views/layouts/devise_empty.html.haml
+17
-0
config/routes.rb
config/routes.rb
+1
-0
spec/features/signup_spec.rb
spec/features/signup_spec.rb
+2
-2
No files found.
CHANGELOG
View file @
2193a353
...
@@ -82,6 +82,7 @@ v 8.7.0 (unreleased)
...
@@ -82,6 +82,7 @@ v 8.7.0 (unreleased)
- Remove "Congratulations!" tweet button on newly-created project. (Connor Shea)
- Remove "Congratulations!" tweet button on newly-created project. (Connor Shea)
- Fix admin/projects when using visibility levels on search (PotHix)
- Fix admin/projects when using visibility levels on search (PotHix)
- Build status notifications
- Build status notifications
- Update email confirmation interface
- API: Expose user location (Robert Schilling)
- API: Expose user location (Robert Schilling)
- API: Do not leak group existence via return code (Robert Schilling)
- API: Do not leak group existence via return code (Robert Schilling)
- ClosingIssueExtractor regex now also works with colons. e.g. "Fixes: #1234" !3591
- ClosingIssueExtractor regex now also works with colons. e.g. "Fixes: #1234" !3591
...
...
app/assets/stylesheets/framework/buttons.scss
View file @
2193a353
...
@@ -144,6 +144,10 @@
...
@@ -144,6 +144,10 @@
}
}
}
}
.btn-lg
{
padding
:
12px
20px
;
}
.btn-transparent
{
.btn-transparent
{
color
:
$btn-transparent-color
;
color
:
$btn-transparent-color
;
background-color
:
transparent
;
background-color
:
transparent
;
...
...
app/assets/stylesheets/pages/confirmation.scss
0 → 100644
View file @
2193a353
.well-confirmation
{
margin-bottom
:
20px
;
border-bottom
:
1px
solid
#eee
;
>
h1
{
font-weight
:
400
;
}
.lead
{
margin-bottom
:
20px
;
}
}
.confirmation-content
{
a
{
color
:
$md-link-color
;
}
}
app/controllers/confirmations_controller.rb
View file @
2193a353
class
ConfirmationsController
<
Devise
::
ConfirmationsController
class
ConfirmationsController
<
Devise
::
ConfirmationsController
def
almost_there
flash
[
:notice
]
=
nil
render
layout:
"devise_empty"
end
protected
protected
def
after_resending_confirmation_instructions_path_for
(
resource
)
users_almost_there_path
end
def
after_confirmation_path_for
(
resource_name
,
resource
)
def
after_confirmation_path_for
(
resource_name
,
resource
)
if
signed_in?
(
resource_name
)
if
signed_in?
(
resource_name
)
after_sign_in_path_for
(
resource
)
after_sign_in_path_for
(
resource
)
...
...
app/controllers/registrations_controller.rb
View file @
2193a353
...
@@ -31,11 +31,11 @@ class RegistrationsController < Devise::RegistrationsController
...
@@ -31,11 +31,11 @@ class RegistrationsController < Devise::RegistrationsController
end
end
def
after_sign_up_path_for
(
_resource
)
def
after_sign_up_path_for
(
_resource
)
new_user_session
_path
users_almost_there
_path
end
end
def
after_inactive_sign_up_path_for
(
_resource
)
def
after_inactive_sign_up_path_for
(
_resource
)
new_user_session
_path
users_almost_there
_path
end
end
private
private
...
...
app/views/devise/confirmations/almost_there.haml
0 → 100644
View file @
2193a353
.well-confirmation.text-center
%h1
.prepend-top-0
Almost there...
%p
.lead
Please check your email to confirm your account
%p
.confirmation-content.text-center
No confirmation email received? Please check your spam folder or
.append-bottom-20.prepend-top-20.text-center
%a
.btn.btn-lg.btn-success
{
href:
new_user_confirmation_path
}
Request new confirmation email
app/views/layouts/devise_empty.html.haml
0 → 100644
View file @
2193a353
!!! 5
%html
{
lang:
"en"
}
=
render
"layouts/head"
%body
.ui_charcoal.login-page.application.navless
=
render
"layouts/header/empty"
=
render
"layouts/broadcast"
.container.navless-container
.content
=
render
"layouts/flash"
=
yield
%hr
.container
.footer-links
=
link_to
"Explore"
,
explore_root_path
=
link_to
"Help"
,
help_path
=
link_to
"About GitLab"
,
"https://about.gitlab.com/"
config/routes.rb
View file @
2193a353
...
@@ -418,6 +418,7 @@ Rails.application.routes.draw do
...
@@ -418,6 +418,7 @@ Rails.application.routes.draw do
devise_scope
:user
do
devise_scope
:user
do
get
'/users/auth/:provider/omniauth_error'
=>
'omniauth_callbacks#omniauth_error'
,
as: :omniauth_error
get
'/users/auth/:provider/omniauth_error'
=>
'omniauth_callbacks#omniauth_error'
,
as: :omniauth_error
get
'/users/almost_there'
=>
'confirmations#almost_there'
end
end
root
to:
"root#index"
root
to:
"root#index"
...
...
spec/features/signup_spec.rb
View file @
2193a353
...
@@ -13,8 +13,8 @@ feature 'Signup', feature: true do
...
@@ -13,8 +13,8 @@ feature 'Signup', feature: true do
fill_in
'user_password_sign_up'
,
with:
user
.
password
fill_in
'user_password_sign_up'
,
with:
user
.
password
click_button
"Sign up"
click_button
"Sign up"
expect
(
current_path
).
to
eq
user
_session
_path
expect
(
current_path
).
to
eq
user
s_almost_there
_path
expect
(
page
).
to
have_content
(
"
A message with a confirmation link has been sent to your email address.
"
)
expect
(
page
).
to
have_content
(
"
Please check your email to confirm your account
"
)
end
end
end
end
...
...
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