locked
Data binding code required for the custom ASP login form? RRS feed

  • Question

  • I followed this blog Creating a Custom Login Page for a LightSwitch Application to create my custom login screen and Password recovery screen. But I don't see any code to check if the entered account can access the application or not? is it form automatically connect to Lightswitch Application database? Do we need to write some Data Binding code?

    Thanks for helping.

    Saturday, November 23, 2013 3:42 PM

Answers

  • I believe when you enable Forms Auth, LightSwitch adds a connection to security database in webconfig that is used by asp.net forms auth to  connect to the database.  The code in the blog that does the checking is the following:

    If Me.User.Identity.IsAuthenticated

    HTH,

    Josh

    • Proposed as answer by joshbooker Wednesday, November 27, 2013 6:56 PM
    • Marked as answer by Little_1991 Wednesday, December 18, 2013 8:39 AM
    Wednesday, November 27, 2013 6:56 PM