Giter VIP home page Giter VIP logo

pengshi-sp / login-register Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 144 KB

#登录-注册页 1.访问/reg 显示注册页面, 输入用户和密码.通过post的方式提交表单到/reg,后台可以注册用户。 然后跳转到登陆页面/login。 2.get请求访问登陆页面/login, 输入用户名和密码,然后通过post方式提交表单到/login, 后台判断用户和密码是否正确,如果正确, 则把用户信息放入session,并返回主页/home。在主页显示用户名 3.需要权限判断,如果未登陆,只能访问注册和登陆。如果已登陆 只能访问主页/home.如果不符合要求,则提示没有授权。

JavaScript 80.86% CSS 7.44% HTML 11.70%

login-register's Introduction

#登录-注册页 1.访问/reg 显示注册页面, 输入用户和密码.通过post的方式提交表单到/reg,后台可以注册用户。 然后跳转到登陆页面/login。 2.get请求访问登陆页面/login, 输入用户名和密码,然后通过post方式提交表单到/login, 后台判断用户和密码是否正确,如果正确, 则把用户信息放入session,并返回主页/home。在主页显示用户名 3.需要权限判断,如果未登陆,只能访问注册和登陆。如果已登陆 只能访问主页/home.如果不符合要求,则提示没有授权。 4.(可选)发表文章和显示文章的功能

login-register's People

Stargazers

 avatar 一蔚蓝 avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.