@yurochkoyura I can't think of any way to implement this via FusionAuth configuration alone.
Seems like a cool feature request, though. Please consider submitting a feature request and if there's community support, we'll look at putting it into the roadmap: https://github.com/fusionauth/fusionauth-issues/issues
From a scan there, though, it looks like this may be part of this long standing issue: https://github.com/FusionAuth/fusionauth-issues/issues/1
So if you want to add a comment or vote that up, that'd be helpful to us as well.