Disable auto login in UL when using custom database script

I have forced email rule ,I want disable the auto login after signup , setting ``loginAfterSignup:false` in UL when using custom database script for login() is not working,