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,/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
References:
Database Design: http://www.cnblogs.com/ylbtech/p/3243396.html
Http://files.cnblogs.com/ylbtech/SolutionCnBlogs-1.0-Passport.rar