CodeIgniter Forums
FreakAuth login with email instead of username - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: FreakAuth login with email instead of username (/showthread.php?tid=4360)



FreakAuth login with email instead of username - El Forum - 11-20-2007

[eluser]nearo[/eluser]
I realize this feature will be implemented in the next release of freakauth, but I have a super simple workaround until then.

During user updates or initial registration use the email address value as the username. You will have the email address in the database twice, but it is such a simple solution that it is worth it until the feature is implemented correctly.


I suggest changing the database structure of the username field to match the email address, which is varchar(120)


FreakAuth login with email instead of username - El Forum - 11-21-2007

[eluser]Grahack[/eluser]
That's neat, but I see an issue about this: will you display email adresses where you only wanted usernames?
It depends on the apps that you build...


FreakAuth login with email instead of username - El Forum - 11-21-2007

[eluser]nearo[/eluser]
Yeah, I dont really see an issue with selecting what info you display. Just a matter of remembering to put the email address value in as the username.

None the less, it is working well for my current project and once the release comes out to support this it should be an easy update since nothing in the core classes was changed and once you drop the username table everything will be fresh and tidy Smile


FreakAuth login with email instead of username - El Forum - 12-05-2007

[eluser]Exey[/eluser]
Yeah! When the next version of FreakAuth_light will be availble?


FreakAuth login with email instead of username - El Forum - 12-05-2007

[eluser]Grahack[/eluser]
That's a good question...
Not today!

In fact I really don't know. In 2008 I guess.


FreakAuth login with email instead of username - El Forum - 12-05-2007

[eluser]nearo[/eluser]
No rush really, this version seems to work wonderfully!