lib/monban/repository/auth.rb in monban-repository-1.0.2 vs lib/monban/repository/auth.rb in monban-repository-1.1.0
- old
+ new
@@ -34,9 +34,14 @@
.where(account_id: account_id)
.select(:login_id)
.map{|hash| hash[:login_id]}.first
end
+ def login_type(account_id:)
+ # all account login with 'authy' in this implement
+ "authy"
+ end
+
def roles(account_id:)
db[:account_roles]
.where(account_id: account_id)
.select(:role)
.map{|r| r[:role]}