twb838
  •  twb838
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
2009-10-14T19:14:20Z
I posted a request for this in the added features, but in the meantime I'd like to get the site setup so that users can login with their email address, instead of their username. Lots of the users on my site have spaces and other characters in their name, that are not easily remembered.

To start, I added a stored procedure that takes a string (email address) as a parameter, and returns a string (username). I've added a helper class that executes the stored procedure, so that I can access it in the login user control. The goal, was to call this method when the user logs in, to swap the email address with the username, and then continue on with the authentication process. My problem is, in the code behind for the user control, I can't tell where it actually passes the credentials in for authentication. In other words, during the post back, where is the last point I can modify the username before it gets passed in for authentication?
Sponsor
simdual
2009-11-17T06:35:02Z
I like this idea, hope it will be possible to let the user choose between ID or email to login.

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved