1
0
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:
2025-04-09 17:18:47 -04:00
parent 2d433b680a
commit e934e2d65e
7 changed files with 74 additions and 1 deletions

View File

@@ -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

View 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>

View File

@@ -0,0 +1 @@
<%= yield %>

View File

@@ -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" %>