From 82be3bf5f97c960fc9e367154ec4028ec8711498 Mon Sep 17 00:00:00 2001 From: Matchu Date: Sun, 6 Aug 2023 18:30:09 -0700 Subject: [PATCH] Enable password resets Nice, just turning it on seemed to do all we need for now! Fair questions to be asked about like, should you be able to look up by username instead of email? But like idk, this feels simpler *and* more solid, to give you feedback on if it's the right email. --- app/models/auth_user.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/models/auth_user.rb b/app/models/auth_user.rb index 04d80606..f5bf2486 100644 --- a/app/models/auth_user.rb +++ b/app/models/auth_user.rb @@ -2,9 +2,7 @@ class AuthUser < AuthRecord self.table_name = 'users' devise :database_authenticatable, :encryptable, :registerable, :validatable, - :rememberable, :trackable - # devise :database_authenticatable, :lockable, :registerable, :recoverable, - # :trackable, :validatable + :rememberable, :trackable, :recoverable validates :name, presence: true, uniqueness: {case_sensitive: false}, length: {maximum: 20}