mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 05:30:48 +08:00
Review Changes for f4f8a293e7
.
This commit is contained in:
@ -18,6 +18,7 @@ class User < ActiveRecord::Base
|
||||
include Searchable
|
||||
include Roleable
|
||||
include HasCustomFields
|
||||
include SecondFactorManager
|
||||
|
||||
# TODO: Remove this after 7th Jan 2018
|
||||
self.ignored_columns = %w{email}
|
||||
@ -462,10 +463,6 @@ class User < ActiveRecord::Base
|
||||
'' # so that validator doesn't complain that a password attribute doesn't exist
|
||||
end
|
||||
|
||||
def second_factor
|
||||
'' # so that validator doesn't complain that a password attribute doesn't exist
|
||||
end
|
||||
|
||||
# Indicate that this is NOT a passwordless account for the purposes of validation
|
||||
def password_required!
|
||||
@password_required = true
|
||||
|
Reference in New Issue
Block a user