Skip to content

Commit

Permalink
#1806 Permit to an user to reveal his/her api key
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Mar 5, 2021
1 parent 425d16c commit 0f2bbc6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions thehive/app/org/thp/thehive/controllers/v1/UserCtrl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,12 @@ class UserCtrl @Inject() (
.users
.get(EntityIdOrName(userIdOrName))
.getOrFail("User")
.orElse {
userSrv
.current
.get(EntityIdOrName(userIdOrName))
.getOrFail("User")
}
}
key <- authSrv.getKey(user.login)
} yield Results.Ok(key)
Expand Down

0 comments on commit 0f2bbc6

Please sign in to comment.