Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VeNJOB
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nguyen Ngoc Nghia
VeNJOB
Commits
ecc4ffda
Commit
ecc4ffda
authored
Dec 09, 2019
by
nnnghia98
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
send email request
parent
9d441b06
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
12 deletions
+39
-12
app/controllers/Users/passwords_controller.rb
+34
-0
app/views/users/mailer/confirmation_instructions.html.erb
+5
-0
app/views/users/shared/_links.html.erb
+0
-12
No files found.
app/controllers/Users/passwords_controller.rb
0 → 100644
View file @
ecc4ffda
# frozen_string_literal: true
class
Users
::
PasswordsController
<
Devise
::
PasswordsController
# GET /resource/password/new
# def new
# super
# end
# POST /resource/password
# def create
# super
# end
# GET /resource/password/edit?reset_password_token=abcdef
# def edit
# super
# end
# PUT /resource/password
# def update
# super
# end
# protected
# def after_resetting_password_path_for(resource)
# super(resource)
# end
# The path used after sending reset password instructions
# def after_sending_reset_password_instructions_path_for(resource_name)
# super(resource_name)
# end
end
app/views/users/mailer/confirmation_instructions.html.erb
0 → 100644
View file @
ecc4ffda
<p>
Welcome
<%=
@email
%>
!
</p>
<p>
You can confirm your account email through the link below:
</p>
<p>
<%=
link_to
'Confirm my account'
,
confirmation_url
(
@resource
,
confirmation_token:
@token
)
%>
</p>
app/views/users/shared/_links.html.erb
View file @
ecc4ffda
<%-
if
controller_name
!=
"sessions"
%>
<
<<<<<<
HEAD
<%=
link_to
"Log in"
,
new_session_path
(
resource_name
)
%>
<br/>
<%
end
%>
...
...
@@ -9,17 +8,6 @@
<%-
if
devise_mapping
.
recoverable?
&&
controller_name
!=
"passwords"
&&
controller_name
!=
"registrations"
%>
<%=
link_to
"Forgot your password?"
,
new_password_path
(
resource_name
)
%>
<br/>
=======
<%=
link_to
"Log in"
,
new_session_path
(
resource_name
)
%>
<br
/>
<%
end
%>
<%-
if
devise_mapping
.
registerable?
&&
controller_name
!=
"registrations"
%>
<%=
link_to
"Sign up"
,
new_registration_path
(
resource_name
)
%>
<br
/>
<%
end
%>
<%-
if
devise_mapping
.
recoverable?
&&
controller_name
!=
"passwords"
&&
controller_name
!=
"registrations"
%>
<%=
link_to
"Forgot your password?"
,
new_password_path
(
resource_name
)
%>
<br
/>
>>>>>>> first edit this branch
<%
end
%>
<%-
if
devise_mapping
.
confirmable?
&&
controller_name
!=
"confirmations"
%>
...
...
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