app/models/user.rb in chaltron-0.3.2 vs app/models/user.rb in chaltron-1.0.0
- old
+ new
@@ -1,6 +1,6 @@
-class User < ApplicationRecord
+class User < ActiveRecord::Base
include Authorizable
# Include default devise modules. Others available are:
# :registerable, :confirmable, :lockable and :omniauthable
# Virtual attribute for authenticating by either username or email
@@ -22,12 +22,8 @@
if login
where(conditions).where(['lower(username) = :value OR lower(email) = :value', { value: login.downcase }]).first
else
where(conditions).first
end
- end
-
- def ldap_user?
- provider == 'ldap'
end
end