able to handle launcher login

This commit is contained in:
bruckwubete
2018-06-29 10:07:06 -04:00
parent 3748bb2140
commit e3e32365d0
9 changed files with 69 additions and 29 deletions

View File

@ -65,6 +65,22 @@ class User < ApplicationRecord
def google_image(auth)
auth['info']['image']
end
def bn_launcher_name(auth)
auth['user_info']['username']
end
def bn_launcher_username(auth)
auth['user_info']['username']
end
def bn_launcher_email(auth)
auth['user_info']['email']
end
def bn_launcher_image(auth)
""
end
end
# Retrives a list of all a users rooms that are not the main room, sorted by last session date.