Giter Site home page Giter Site logo

ustcaaa's Introduction

ustcaaa

Website for USTC AAA

部署前:

修改/astro/signin/mail.php、/astro/signin/checksignin.php、/astro/user/checklogin.php、/astro/equip/mysqlconnection.php

ustcaaa's People

Contributors

violin9906 avatar qxx avatar

Watchers

 avatar

Forkers

qxx

ustcaaa's Issues

找回密码功能

在用户登录界面,添加一个“忘记密码”链接,点击链接跳转到“忘记密码”页,在“忘记密码”页输入并提交学号和邮箱。若学号和邮箱都存在,发送verifycode邮件并跳转至重设密码页。
在重设密码页,提交verifycode和新密码,若verifycode验证通过,将当前学号对应的用户密码重置为新密码。

已注册用户添加账户邮箱功能

数据库:user表新增一个email列
新增一个用户账户管理页(比如叫”我的账户“)。
如果用户还没有邮箱,允许用户添加邮箱。
如果用户已经有邮箱,在这个页面上显示该邮箱。
(修改邮箱功能可以先不做)

从环境变量中读取敏感信息

在服务器上设置好环境变量,代码中从环境变量读取需要的敏感信息。这样不用在每次发布时再修改文件了。

改进后端密码hash算法

参考 http://php.net/manual/zh/book.password.php ,使用password_hash创建密码的hash,验证密码时使用password_verify
数据库:user表新增一个passwordhash列。
为使现在已经使用老密码hash的用户能继续登录,应在保留现有hash的基础上,在下一次用户登录时,成功验证密码以后,将密码计算新hash并保存,再删去老hash。
新用户注册时可以直接新hash。

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.