Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. account validation in asp.net

account validation in asp.net

Scheduled Pinned Locked Moved ASP.NET
asp-netcsharphelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Guy Harwood
    wrote on last edited by
    #1

    Hi, Im using the membership provider in asp.net2.0 - excellent. Ive read some chapters on this and the documentation on msdn and got everything configured how i like. however, i would like each user to be validated/activated by email before they can use the site. Using standard methods by sending an email to the address on their account with a guid link - the account then gets activated when they click the link in the email. While im quite happy to code this up myself im pretty surprised that there isnt any support 'out of the box'. One problem i see is that there is no 'activated' flag in the aspnet_users table. I gather i can implement this by adding my own custom fields to the profile via web.config. Anyone have any advice or workarounds on this matter? Thanks in advance for any contributions.

    ---Guy H (;-)---

    M 1 Reply Last reply
    0
    • G Guy Harwood

      Hi, Im using the membership provider in asp.net2.0 - excellent. Ive read some chapters on this and the documentation on msdn and got everything configured how i like. however, i would like each user to be validated/activated by email before they can use the site. Using standard methods by sending an email to the address on their account with a guid link - the account then gets activated when they click the link in the email. While im quite happy to code this up myself im pretty surprised that there isnt any support 'out of the box'. One problem i see is that there is no 'activated' flag in the aspnet_users table. I gather i can implement this by adding my own custom fields to the profile via web.config. Anyone have any advice or workarounds on this matter? Thanks in advance for any contributions.

      ---Guy H (;-)---

      M Offline
      M Offline
      Mark J Miller
      wrote on last edited by
      #2

      System.Web.Security.Membership.CreateUser[^]. has a boolean parameter 'isApproved'. You could set that to false when the account is created. Then when the user clicks on the link in your email you could set the System.Web.Security.MembershipUser.IsApproved[^] property to true

      G 1 Reply Last reply
      0
      • M Mark J Miller

        System.Web.Security.Membership.CreateUser[^]. has a boolean parameter 'isApproved'. You could set that to false when the account is created. Then when the user clicks on the link in your email you could set the System.Web.Security.MembershipUser.IsApproved[^] property to true

        G Offline
        G Offline
        Guy Harwood
        wrote on last edited by
        #3

        Thanks for your reply mark. Ive been skirting around the tables and noticed this flag in aspnet_membership. The book ive been reading doesnt really go very deep into the membership stuff so i think maybe some more research is going to be beneficial. :-D

        ---Guy H (;-)---

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups