mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-03 13:30:02 +00:00
Fixed reset password after the Devise migration.
This commit is contained in:
@@ -6,6 +6,6 @@ class UserMailer < ApplicationMailer
|
||||
#
|
||||
def password_reset(user)
|
||||
@user = user
|
||||
mail to: user.email, subject: "Password reset"
|
||||
mail to: user.email, subject: "WrestlingDev - Password reset"
|
||||
end
|
||||
end
|
||||
13
app/views/layouts/mailer.html.erb
Normal file
13
app/views/layouts/mailer.html.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<style>
|
||||
/* Email styles need to be inline */
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<%= yield %>
|
||||
</body>
|
||||
</html>
|
||||
1
app/views/layouts/mailer.text.erb
Normal file
1
app/views/layouts/mailer.text.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= yield %>
|
||||
@@ -11,6 +11,7 @@
|
||||
<div class="form-group">
|
||||
<%= f.label :password %>
|
||||
<%= f.password_field :password, class: 'form-control' %>
|
||||
<%= link_to "Forgot password?", new_password_reset_path %>
|
||||
</div>
|
||||
|
||||
<%= f.submit "Log in", class: "btn btn-primary" %>
|
||||
|
||||
Reference in New Issue
Block a user