Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
venshop
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
Tan Phat Nguyen
venshop
Commits
d0ac7edb
Commit
d0ac7edb
authored
Nov 20, 2014
by
Tan Phat Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
product list, send email reset password
parent
80120100
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
25 deletions
+21
-25
app/views/application/_header.html.erb
+1
-0
app/views/devise/passwords/edit.html.erb
+8
-12
config/environments/development.rb
+11
-12
config/initializers/devise.rb
+1
-1
No files found.
app/views/application/_header.html.erb
View file @
d0ac7edb
...
...
@@ -7,6 +7,7 @@
<ul
class=
'nav navbar-nav navbar-right'
>
<li>
<%=
link_to
'Home'
,
root_path
%>
</li>
<%
if
user_signed_in?
%>
<li>
<%=
link_to
'Products'
,
admin_products_path
%>
</li>
<li
class=
"dropdown"
>
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
Account
<b
class=
"caret"
></b>
...
...
app/views/devise/passwords/edit.html.erb
View file @
d0ac7edb
<h2>
Change your password
</h2>
<%=
form_for
(
resource
,
as:
resource_name
,
url:
password_path
(
resource_name
),
html:
{
method: :put
})
do
|
f
|
%>
<%=
devise_error_messages!
%>
<%=
render
'shared/error_messages'
,
object:
f
.
object
%>
<%=
f
.
hidden_field
:reset_password_token
%>
<div
class=
"f
ield
"
>
<%=
f
.
label
:password
,
"New password"
%>
<br
/>
<%=
f
.
password_field
:password
,
autofocus:
true
,
autocomplete:
"off"
%>
<div
class=
"f
orm-group
"
>
<%=
f
.
label
:password
,
"New password"
%>
<%=
f
.
password_field
:password
,
autofocus:
true
,
autocomplete:
"off"
,
class:
'form-control'
,
placeholder:
'Input new password'
%>
</div>
<div
class=
"field"
>
<%=
f
.
label
:password_confirmation
,
"Confirm new password"
%>
<br
/>
<%=
f
.
password_field
:password_confirmation
,
autocomplete:
"off"
%>
</div>
<div
class=
"actions"
>
<%=
f
.
submit
"Change my password"
%>
<div
class=
"form-group"
>
<%=
f
.
label
:password_confirmation
,
"Confirm new password"
%>
<%=
f
.
password_field
:password_confirmation
,
autocomplete:
"off"
,
class:
'form-control'
,
placeholder:
'Input confirm password'
%>
</div>
<%=
f
.
submit
"Change my password"
,
class:
'btn btn-primary'
%>
<%
end
%>
<%=
render
"devise/shared/links"
%>
config/environments/development.rb
View file @
d0ac7edb
...
...
@@ -14,18 +14,7 @@ Rails.application.configure do
config
.
action_controller
.
perform_caching
=
false
# Don't care if the mailer can't send.
config
.
action_mailer
.
raise_delivery_errors
=
false
config
.
action_mailer
.
delivery_method
=
:smtp
config
.
action_mailer
.
smtp_settings
=
{
address:
'smtp.gmail.com'
,
port:
587
,
domain:
'gmail.com'
,
authentication:
'plain'
,
user_name:
ENV
[
'email_user'
],
password:
ENV
[
'email_password'
],
enable_starttls_auto:
true
}
config
.
action_mailer
.
raise_delivery_errors
=
true
# Print deprecation notices to the Rails logger.
config
.
active_support
.
deprecation
=
:log
...
...
@@ -46,6 +35,16 @@ Rails.application.configure do
# Raises error for missing translations
# config.action_view.raise_on_missing_translations = true
config
.
action_mailer
.
default_url_options
=
{
host:
'localhost'
,
port:
3000
}
config
.
action_mailer
.
delivery_method
=
:smtp
config
.
action_mailer
.
smtp_settings
=
{
address:
'smtp.gmail.com'
,
port:
587
,
domain:
'gmail.com'
,
authentication:
'plain'
,
user_name:
ENV
[
'email_user'
],
password:
ENV
[
'email_password'
],
enable_starttls_auto:
true
}
config
.
solr_host
=
"http://localhost:8983/solr/collection1"
...
...
config/initializers/devise.rb
View file @
d0ac7edb
...
...
@@ -10,7 +10,7 @@ Devise.setup do |config|
# Configure the e-mail address which will be shown in Devise::Mailer,
# note that it will be overwritten if you use your own mailer class
# with default "from" parameter.
config
.
mailer_sender
=
'
please-change-me-at-config-initializers-devise@example
.com'
config
.
mailer_sender
=
'
bigforest20@gmail
.com'
# Configure the class responsible to send e-mails.
# config.mailer = 'Devise::Mailer'
...
...
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