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
Boxiang Sun
gitlab-ce
Commits
b0e2e21b
Commit
b0e2e21b
authored
Dec 05, 2017
by
Brett Walker
Committed by
Douwe Maan
Dec 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove ambiguity about which resource type to be using for new sessions
parent
61392168
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
11 deletions
+16
-11
app/views/devise/passwords/edit.html.haml
app/views/devise/passwords/edit.html.haml
+2
-2
app/views/devise/sessions/_new_base.html.haml
app/views/devise/sessions/_new_base.html.haml
+1
-1
app/views/devise/shared/_links.erb
app/views/devise/shared/_links.erb
+5
-5
app/views/devise/shared/_sign_in_link.html.haml
app/views/devise/shared/_sign_in_link.html.haml
+1
-1
app/views/devise/shared/_signup_box.html.haml
app/views/devise/shared/_signup_box.html.haml
+1
-1
app/views/errors/omniauth_error.html.haml
app/views/errors/omniauth_error.html.haml
+1
-1
changelogs/unreleased/39367-fix-new-email-session-path.yml
changelogs/unreleased/39367-fix-new-email-session-path.yml
+5
-0
No files found.
app/views/devise/passwords/edit.html.haml
View file @
b0e2e21b
=
render
'devise/shared/tab_single'
,
tab_title
:'Change your password'
.login-box
.login-body
=
form_for
(
resource
,
as:
resource_name
,
url:
password_path
(
resource_name
),
html:
{
method: :put
,
class:
'gl-show-field-errors'
})
do
|
f
|
=
form_for
(
resource
,
as:
resource_name
,
url:
password_path
(
:user
),
html:
{
method: :put
,
class:
'gl-show-field-errors'
})
do
|
f
|
.devise-errors
=
devise_error_messages!
=
f
.
hidden_field
:reset_password_token
...
...
@@ -17,5 +17,5 @@
.clearfix.prepend-top-20
%p
%span
.light
Didn't receive a confirmation email?
=
link_to
"Request a new one"
,
new_confirmation_path
(
resource_name
)
=
link_to
"Request a new one"
,
new_confirmation_path
(
:user
)
=
render
'devise/shared/sign_in_link'
app/views/devise/sessions/_new_base.html.haml
View file @
b0e2e21b
...
...
@@ -11,6 +11,6 @@
=
f
.
check_box
:remember_me
,
class:
'remember-me-checkbox'
%span
Remember me
.pull-right.forgot-password
=
link_to
"Forgot your password?"
,
new_password_path
(
resource_name
)
=
link_to
"Forgot your password?"
,
new_password_path
(
:user
)
.submit-container.move-submit-down
=
f
.
submit
"Sign in"
,
class:
"btn btn-save"
app/views/devise/shared/_links.erb
View file @
b0e2e21b
<%-
if
controller_name
!=
'sessions'
%>
<%=
link_to
"Sign in"
,
new_session_path
(
resource_name
),
class:
"btn"
%>
<br
/>
<%=
link_to
"Sign in"
,
new_session_path
(
:user
,
redirect_to_referer:
'yes'
),
class:
"btn"
%>
<br
/>
<%
end
-%>
<%-
if
devise_mapping
.
registerable?
&&
controller_name
!=
'registrations'
&&
allow_signup?
%>
<%=
link_to
"Sign up"
,
new_registration_path
(
resource_name
)
%>
<br
/>
<%=
link_to
"Sign up"
,
new_registration_path
(
:user
)
%>
<br
/>
<%
end
-%>
<%-
if
devise_mapping
.
recoverable?
&&
controller_name
!=
'passwords'
%>
<%=
link_to
"Forgot your password?"
,
new_password_path
(
resource_name
),
class:
"btn"
%>
<br
/>
<%=
link_to
"Forgot your password?"
,
new_password_path
(
:user
),
class:
"btn"
%>
<br
/>
<%
end
-%>
<%-
if
devise_mapping
.
confirmable?
&&
controller_name
!=
'confirmations'
%>
<%=
link_to
"Didn't receive confirmation instructions?"
,
new_confirmation_path
(
resource_name
)
%>
<br
/>
<%=
link_to
"Didn't receive confirmation instructions?"
,
new_confirmation_path
(
:user
)
%>
<br
/>
<%
end
-%>
<%-
if
devise_mapping
.
lockable?
&&
resource_class
.
unlock_strategy_enabled?
(
:email
)
&&
controller_name
!=
'unlocks'
%>
<%=
link_to
"Didn't receive unlock instructions?"
,
new_unlock_path
(
resource_name
)
%>
<br
/>
<%=
link_to
"Didn't receive unlock instructions?"
,
new_unlock_path
(
:user
)
%>
<br
/>
<%
end
-%>
app/views/devise/shared/_sign_in_link.html.haml
View file @
b0e2e21b
%p
%span
.light
Already have login and password?
=
link_to
"Sign in"
,
new_session_path
(
resource_name
)
=
link_to
"Sign in"
,
new_session_path
(
:user
,
redirect_to_referer:
'yes'
)
app/views/devise/shared/_signup_box.html.haml
View file @
b0e2e21b
...
...
@@ -31,4 +31,4 @@
%p
%span
.light
Didn't receive a confirmation email?
=
succeed
'.'
do
=
link_to
"Request a new one"
,
new_confirmation_path
(
resource_name
)
=
link_to
"Request a new one"
,
new_confirmation_path
(
:user
)
app/views/errors/omniauth_error.html.haml
View file @
b0e2e21b
...
...
@@ -9,7 +9,7 @@
%p
Try logging in using your username or email. If you have forgotten your password, try recovering it
=
link_to
"Sign in"
,
new_session_path
(
:user
),
class:
'btn primary'
=
link_to
"Recover password"
,
new_password_path
(
resource_name
),
class:
'btn secondary'
=
link_to
"Recover password"
,
new_password_path
(
:user
),
class:
'btn secondary'
%hr
%p
.light
If none of the options work, try contacting a GitLab administrator.
changelogs/unreleased/39367-fix-new-email-session-path.yml
0 → 100644
View file @
b0e2e21b
---
title
:
Confirming email with invalid token should no longer generate an error
merge_request
:
15726
author
:
type
:
fixed
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