Welcome Guest, Not a member yet? Register   Sign In
FreakAuth login with email instead of username
#1

[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)
#2

[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...
#3

[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
#4

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

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

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

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




Theme © iAndrew 2016 - Forum software by © MyBB