I need to be able to "turn off" loginability for e...
# support-questions-legacy
r
I need to be able to "turn off" loginability for existing users. I wasn't able to find any initial reference in my "emailpassword" recipe to doing this. Do I have to "delete" a credential and lose their password to be able to turn off loginability for certain users?
p
hi
this should be doable by overriding the sign-in API
which recipe are you using?
r
This one:
this is about denying sign ups, but you can do the same thing for sign in the same way
r
Ok, hmmm
So you're saying that I would...
overrride the signup api function...
...check if the email corresponds to a user.
then check if that user is disabled.
And if disabled, respond with error instead of success.
p
the sign in api, but yup
also, you could do it based on the userid