Summer Sale! All accounts are 50% off this week.

Magelfik's avatar

Customize Impersonation

Hey guys, I'm building an app that contains sensitive information. The app will eventually have a support team, but they should never impersonate a user unless the user has agreed of this. To enforce that, I would like to rewrite the impersonation controller in spark, but I'm not sure I can do that. Spark's swap method does not seem to be helping.

Any ideas ? Thanks in advance.

0 likes
1 reply
Magelfik's avatar
Magelfik
OP
Best Answer
Level 1

My bad, I though about it and found a solution. I simply added a route in my route.php, and that has overrode the spark method.

Please or to participate in this conversation.