Prevent login after email verfication

Hi,

we’ve tried to prevent login after email verification link clicked.
we added that parameter in the email template where Link Click url is mentioned. the parameters are as below
?fromVerification=true.
after doing that we’ve achieved our requirement. And we checked the keycloak docker logs but didn’t get any errors
is it right way to prevent login.

thanking You.