mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
add on more details to /v1/auth (#646)
This commit is contained in:
@@ -4,8 +4,10 @@ module Api
|
||||
class MeController < ApplicationController
|
||||
def index
|
||||
render json: {
|
||||
id: current_user.id,
|
||||
emails: current_user.email_addresses&.map(&:email)|| [],
|
||||
slack_id: current_user.slack_uid,
|
||||
github_username: current_user.github_username,
|
||||
trust_factor: {
|
||||
trust_level: current_user.trust_level,
|
||||
trust_value: User.trust_levels[current_user.trust_level]
|
||||
|
||||
Reference in New Issue
Block a user