debian-mirror-gitlab/doorkeeper/spec/dummy/app/models/user.rb

6 lines
136 B
Ruby
Raw Normal View History

2020-01-04 02:51:38 +05:30
class User < ActiveRecord::Base
def self.authenticate!(name, password)
User.where(name: name, password: password).first
end
end