twb838
  • Posts: 3
  • Joined: 14/10/2009
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
  • Posts: 18
  • Joined: 20/06/2008
I like this idea, hope it will be possible to let the user choose between ID or email to login.
Users browsing this topic
    Forum Jump  
    • You cannot post new topics in this forum.
    • You cannot reply to topics in this forum.
    • You cannot delete your posts in this forum.
    • You cannot edit your posts in this forum.
    • You cannot create polls in this forum.
    • You cannot vote in polls in this forum.

    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