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
e687f811
Commit
e687f811
authored
Dec 06, 2019
by
nnnghia98
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first edit this branch
parent
27e07bd1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
3 deletions
+40
-3
app/views/users/passwords/edit.html.erb
+23
-0
app/views/users/passwords/new.html.erb
+14
-0
app/views/users/shared/_links.html.erb
+3
-3
No files found.
app/views/users/passwords/edit.html.erb
0 → 100644
View file @
e687f811
<h2>
Change your password
</h2>
<%=
form_for
(
resource
,
as:
resource_name
,
url:
password_path
(
resource_name
),
html:
{
method: :put
})
do
|
f
|
%>
<%=
render
"users/shared/error_messages"
,
resource:
resource
%>
<%=
f
.
hidden_field
:reset_password_token
%>
<div
class=
"form-group"
>
<%=
f
.
label
:password
,
"New password"
%>
<br/>
<%
if
@minimum_password_length
%>
<em>
(
<%=
@minimum_password_length
%>
characters minimum)
</em><br/>
<%
end
%>
<%=
f
.
password_field
:password
,
autofocus:
true
,
autocomplete:
"new-password"
,
class:
"form-control"
%>
</div>
<div
class=
"form-group"
>
<%=
f
.
label
:password_confirmation
,
"Confirm new password"
%>
<br
/>
<%=
f
.
password_field
:password_confirmation
,
autocomplete:
"new-password"
,
class:
"form-control"
%>
</div>
<div
class=
"actions"
>
<%=
f
.
submit
"Submit"
%>
</div>
<%
end
%>
app/views/users/passwords/new.html.erb
0 → 100644
View file @
e687f811
<h2>
Forgot password
</h2>
<%=
form_for
(
resource
,
as:
resource_name
,
url:
password_path
(
resource_name
),
html:
{
method: :post
})
do
|
f
|
%>
<%=
render
"users/shared/error_messages"
,
resource:
resource
%>
<div
class=
"form-group"
>
<%=
f
.
label
:email
%>
<br/>
<%=
f
.
email_field
:email
,
autofocus:
true
,
autocomplete:
"email"
,
class:
"form-control"
%>
</div>
<div
class=
"actions"
>
<%=
f
.
submit
"Confirm your email"
,
class:
"btn btn-primary"
%>
</div>
<%
end
%>
app/views/users/shared/_links.html.erb
View file @
e687f811
<%-
if
controller_name
!=
'sessions'
%>
<%-
if
controller_name
!=
"sessions"
%>
<%=
link_to
"Log in"
,
new_session_path
(
resource_name
)
%>
<br
/>
<%=
link_to
"Log in"
,
new_session_path
(
resource_name
)
%>
<br
/>
<%
end
%>
<%
end
%>
<%-
if
devise_mapping
.
registerable?
&&
controller_name
!=
"registrations"
%>
<%-
if
devise_mapping
.
registerable?
&&
controller_name
!=
"registrations"
%>
<%=
link_to
"
Register
"
,
new_registration_path
(
resource_name
)
%>
<br
/>
<%=
link_to
"
Sign up
"
,
new_registration_path
(
resource_name
)
%>
<br
/>
<%
end
%>
<%
end
%>
<%-
if
devise_mapping
.
recoverable?
&&
controller_name
!=
"passwords"
&&
controller_name
!=
"registrations"
%>
<%-
if
devise_mapping
.
recoverable?
&&
controller_name
!=
"passwords"
&&
controller_name
!=
"registrations"
%>
<%=
link_to
"Forgot password?"
,
new_password_path
(
resource_name
)
%>
<br
/>
<%=
link_to
"Forgot
your
password?"
,
new_password_path
(
resource_name
)
%>
<br
/>
<%
end
%>
<%
end
%>
<%-
if
devise_mapping
.
confirmable?
&&
controller_name
!=
"confirmations"
%>
<%-
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