【Alpha版本】冲刺阶段——Day5

阅读目录

* [今日进展](#1)
* [问题困难](#2)
* [明日任务](#3)
* [今日贡献量](#4)
* [站立式会议](#5)
* [TODOlist](#6)

【今日进展】

  • 完成登录类代码
public void LOGIN() {
con = GetDBConnection.connectDB("mysql","root",""); if(con == null ) return;
String select=" username Like '"+name+"'";
String sqlStr ="select * from javablacktea where "+select;
try {
sql=con.createStatement();
rs = sql.executeQuery(sqlStr);
if(rs.next()) {
salt=rs.getString(3);
//System.out.println(salt);
String cipherInTheInformation=rs.getString(2);
//System.out.println(cipherInTheInformation);
encrypt.setSalt(salt);
this.cipher=encrypt.getpassword(cipher);
//System.out.println(cipher);
if(!cipherInTheInformation.equals(cipher)){
System.out.println("用户名或者密码错误!");
}
else{
System.out.println("登陆成功!");
}
}
else{
System.out.println("用户名或者密码错误!");
}
con.close();
}
catch(SQLException e) { }
}
  • 完成修改密码模块代码
 public void MODIFY() {
con = GetDBConnection.connectDB("mysql","root",""); if(con == null ) return;
String select=" username Like '"+name+"'";
String sqlStr ="select * from javablacktea where "+select;
try {
sql=con.createStatement();
rs = sql.executeQuery(sqlStr);
if(rs.next()) {
salt=rs.getString(3);
//System.out.println(salt);
String cipherInTheInformation=rs.getString(2);
//System.out.println(cipherInTheInformation);
encrypt.setSalt(salt);
this.cipher=encrypt.getpassword(cipher);
//System.out.println(cipher);
if(!cipherInTheInformation.equals(cipher)){
System.out.println("用户名或者密码错误!");
//如果两次输入的密码不一致,那么就提醒错误。但是不明确提示是哪个错误。
}
else{
if(!newCipher1.equals(newCipher2)){
System.out.println("两次输入的新密码不一致!");
}
else{
salt=encrypt.getsalt();
cipher=encrypt.getpassword(newCipher1);
try {
String sqlStr2 ="update javablacktea set hash = "+"'"+cipher+"'"+"where username = "+"'"+name+"'";
String sqlStr3 ="update javablacktea set salt = "+"'"+salt+"'"+"where username = "+"'"+name+"'"; sql.executeUpdate(sqlStr2);
sql.executeUpdate(sqlStr3);
System.out.println("更改密码成功。");
}
catch (SQLException e){
System.out.println("更改密码失败。");
}
}
}
}
else{
System.out.println("用户名或者密码错误!");
//如果两次输入的账号不一致,那么就提醒错误。但是不明确提示是哪个错误。
}
con.close();
}
catch(SQLException e) { }
}
}
  • 完成注销类代码
public void CANCEL() {
con = GetDBConnection.connectDB("mysql","root",""); if(con == null ) return;
String select=" username Like '"+name+"'";
String sqlStr ="select * from javablacktea where "+select;
try {
sql=con.createStatement();
rs = sql.executeQuery(sqlStr);
if(rs.next()) {
salt=rs.getString(3);
//System.out.println(salt);
String cipherInTheInformation=rs.getString(2);
//System.out.println(cipherInTheInformation);
encrypt.setSalt(salt);
this.cipher=encrypt.getpassword(cipher);
//System.out.println(cipher);
if(!cipherInTheInformation.equals(cipher)){
System.out.println("用户名或者密码错误!");
}
else{
System.out.println("是否确定注销该账户?('Y'or'N')");
String flag = scanner.next();
///接下来要删除数据库中的该项内容。
if(flag.equals("Y")){
try {
String sqlStr2 ="delete from javablacktea where username = "+"'"+name+"'";
sql.executeUpdate(sqlStr2);
System.out.println("注销成功。");
}
catch (SQLException e){
System.out.println("注销失败。");
}
}
}
}
else{
System.out.println("用户名或者密码错误!");
}
con.close();
}
catch(SQLException e) { }
}
}

【问题困难】

  • 原先设想的是页面布局类代码可以直接调用现有程序实现前端界面,但深入学习后发现,想要实现组件功能需要大幅度改动现有的模块代码,任务量骤然增加。

【明日任务】

  • 韩啸: 完成注销用户模块页面设计

  • 夏云霄: 完成程序主页面设计

  • 陈思兵: 完成修改密码模块页面设计

  • 朱文远:完成登录模块页面设计

  • 张家佳:辅助其它队员完成任务,收集团队成员进展并且汇总,撰写博客

【今日贡献量】

韩啸 夏云霄 陈思兵 朱文远 张家佳
3 2.5 3 3.5 3

【站立式会议】

(上帝视角)

【TODOlist】

【Alpha版本】冲刺阶段——Day5的更多相关文章

  1. 作业七:团队项目——Alpha版本冲刺阶段

      本次作业为期三周时间,要求各组结合所选项目并阅读教材<构建之法>第六章内容,完成项目的Alpha版本.本阶段的主要内容如下:(20分) 1. 每天组织一次站立会议,讨论每个成员的昨天进 ...

  2. 作业七:团队项目——Alpha版本冲刺阶段010

    今日安排:组内成员讨论 今日进程:组内成员讨论结束,并有明确的解决办法,每个人准备实践

  3. 作业七:团队项目——Alpha版本冲刺阶段009

    今日安排:组内成员讨论 今日进度:组内成员讨论分工细节以及可能遇到的问题,并提出解决方案

  4. 作业七:团队项目——Alpha版本冲刺阶段008

    今日进度:组内成员讨论 今日安排:组内成员分工

  5. 作业七:团队项目——Alpha版本冲刺阶段007

    今日进展:完善游戏主体代码. 今日安排:让游戏能运行起来.

  6. 作业七:团队项目——Alpha版本冲刺阶段006

    今日进展:完成主体代码. 今日安排:对程序主体进行编写.

  7. 作业七:团队项目——Alpha版本冲刺阶段005

    今日进展:编写代码. 今日安排:完成开始部分代码.

  8. 作业七:团队项目——Alpha版本冲刺阶段004

    今日进展:我们的扫雷基本界面已经差不多了,准备开始编写内部代码. 今日安排:做好界面,准备开始代码编写.

  9. 作业七:团队项目——Alpha版本冲刺阶段003

    今日进展:我们的目标是做一款扫雷游戏,所以我们先去玩了几款游戏,找到了扫雷游戏的一些特点. 今日安排:先进行了一些必要的游戏过程,进行了基本的扫雷界面规划.

  10. 作业七:团队项目——Alpha版本冲刺阶段002

    今日进展:我们终于安装好了软件,今天开始进行作业设计. 今日安排:今天开始我们要开始我们的框架的设计.

随机推荐

  1. zabbix监控托管主机遇到问题

    昨天监控公司的托管主机时发现监控不上,回想起来其实就是个小问题,分分钟能解决的事,排错的过程才是真正耗心费神的. 监控环境: A zabbix server: 192.168.17.110 serve ...

  2. 8.0-uC/OS-III单任务应用

    1.单任务应用 app.c文件: (1).APP_CFG.H 是用于配置的头文件.例如, APP_CFG.H 中包含的#define常量确定了任务优先级,堆栈大小,以及其他特性. BSP.H 是 BS ...

  3. ios多播委托

    在现实中回调的需求也分两种 一对一的回调. 一对多的回调. 对于一对一的回调,在IOS中使用delegate.block都能实现.而一对多的回调基本就是通知中心了. 假如现在有一个需求,我们以图片下载 ...

  4. OC动画:CAKeyframeAnimation

    // 方法一 用法1​ Value方式 //创建动画对象 CAKeyframeAnimation *animation = [CAKeyframeAnimation animationWithKeyP ...

  5. 报错解决——DateTimeField *** received a naive datetime (***) while time zone support is active

    这是一个跟时区有关的问题,报错中说到datetime字段得到一个naive datetime,而不是支持time zone的active datetime由于Django的设置中米哦人USE_TZ设置 ...

  6. Python3学习之路~3.2 递归、函数式编程、高阶函数、匿名函数、嵌套函数

    1 递归 在函数内部,可以调用其他函数.如果一个函数在内部调用自身本身,这个函数就是递归函数. def calc(n): print(n) if int(n / 2) == 0: return n r ...

  7. xshell帮助

    查看内置命令 $help Internal Commands:new: Creates a new session.open: Opens a session or the session dialo ...

  8. 浪潮IOT知识点

    1 新增身份定义 以及 身份定义的属性表 要注意增加路由 2     '@trident/core'; 飘红,解决办法 import { TableSearchComponent } from '@t ...

  9. kfrobotaidlog查找

    ======查看最新的大于6的数量========== select c.questionid from (select a.questionid, b.clientQuestion from sim ...

  10. pip3 install pymysql

    后续设置参考 “selenium python3” https://www.cnblogs.com/jpr-ok/p/10108231.html