1228
Sql for api login located in soap/customerportal.php : authentificate_user
look at where section
deleted = 0, deleting of matching record in Contacts module will set it to 1,
user_name = ?(? will be user email) - changing Contact email can not help, it will be automaticaly updated by Hook*
isactive = 1, bad scripted mirror of portal field , currently its better to ignore it
Hook* - modules/Contacts/ContactsHandler.php