1
0
Fork 0
forked from OpenNeo/impress

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.
This commit is contained in:
Emi Matchu 2023-08-06 18:30:09 -07:00
parent 33b2953949
commit 82be3bf5f9

View file

@ -2,9 +2,7 @@ class AuthUser < AuthRecord
self.table_name = 'users' self.table_name = 'users'
devise :database_authenticatable, :encryptable, :registerable, :validatable, devise :database_authenticatable, :encryptable, :registerable, :validatable,
:rememberable, :trackable :rememberable, :trackable, :recoverable
# devise :database_authenticatable, :lockable, :registerable, :recoverable,
# :trackable, :validatable
validates :name, presence: true, uniqueness: {case_sensitive: false}, validates :name, presence: true, uniqueness: {case_sensitive: false},
length: {maximum: 20} length: {maximum: 20}