Telemaco Trentayuno
Telemaco Trentayuno

Reputation: 1

Current User in Models scala playframework 2.8

I'm currently working on a web application using Play Framework 2.8 with Scala. In this application, I need to log which user is performing updates in the models or repositories. However, the system is quite large, and it's not feasible to propagate the user ID from the controller to the models.

I'm seeking a solution to inject the current user into the repository without passing it explicitly from the controller. This requirement is related to a previously asked question, which you can find here: Current Request/User details in Models in Scala Play! 2.5

Upvotes: 0

Views: 32

Answers (0)

Related Questions