#how disable 2fa for admin

4 messages · Page 1 of 1 (latest)

tepid wingBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

tropic ibex
#

I could be wrong, but I don't think Filament injects a named or typed object for a $user. You just get it using auth()->user(). So maybe ...

isRequired: fn () => auth()->user()?->name !== 'admin'

vocal island
#

name it is my columns dont matter name or just user i cannot catch this at ], isRequired: fn ($user)

sage sinew