WebForm-blog garden-1.0-Account module (Passport)-Logon and Registration

Source: Internet
Author: User

Ylbtech-OpenSource: WebForm-blog garden-1.0-Passport-Logon and Registration
Everyone is bored in their spare time, so someone suggested that we create a blog park on our own! So we use it every day (even overnight, why? Most people want to write a few more good articles. One is to share their experiences, and the other is to share the concerns and sympathy of others !) First, I roughly analyzed the website, divided the modules, straightened out the process, the design of database tables, the relationship between tables and tables, and how the modules are implemented. After more than a month, we finally completed several modules and made some flaws. As the strength of several of us was too small, we decided to use this project as an open-source project, invite more interested people to join... Welcome ..
1. A. concept-Account module Process

1. Registration Process
Registration --> Registration completed [send an email to the registered email] --> email Verification Successful [Account Enabled]

1.2. The email address does not receive the activation email.
Resend the activation email (registration page)

2,
Log on to --> apply for a Blog --> process a Blog --> apply for Blog approval --> apply for a Blog Address [does not exist] -- apply for a Blog successful

2.2, account password
Retrieve password (logon page)

1. B, Structure

1,/Login. aspx

2,/Register. aspx

1. C. Create a process (the pages involved in the two modules)

C.1,/Register. aspx

C.2,/Login. aspx

C.3,/handlers/

C.4,/ws/

C.5,/App_Code/

C.6,/common/

1. D. function implementation code (extract the important module and let's take a look at it. I don't know how to say it for a long time. Please forgive me)

D.1,/handlers/Login. ashx logon verification process

Class = %> = loginName = context. Request [pwd = context. Request [remember = Convert. ToBoolean (context. Request [= (dal! =] = Dal; System. Web. Security. FormsAuthentication. GetAuthCookie (loginName, remember); =====( === success {; msg {;View Code

D.2,/ws/UserService. asmx registration verification process
/App_Code/UserService. cs

[WebService (Namespace === LoginNameExists (= DisplayNameExists (= EmailExists (=View Code

D.3,/web. config register the design email verification link, all need to be configured in web. config

View Code

 

1. E. Notes

References:

Database Design: http://www.cnblogs.com/ylbtech/p/3243396.html

1. F. Download the code

Http://files.cnblogs.com/ylbtech/SolutionCnBlogs-1.0-Passport.rar



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.