Ion Auth allows you to choose an identity which is basically a database column to be used for login. I want to be able to choose two database columns for my identity in Ion Auth since I want users to login using either their username or email similar to how Twitter works. How do I do this? Below is a sample code of what I'm trying to accomplish:
<?php
$config['identity'] = 'email && username'; // A database column which is used to login with ion auth
?>
As you can see, I want both usernames and emails but I don't know how to add both in the config.