【Alpha版本】冲刺阶段——Day5
【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的更多相关文章
- 作业七:团队项目——Alpha版本冲刺阶段
本次作业为期三周时间,要求各组结合所选项目并阅读教材<构建之法>第六章内容,完成项目的Alpha版本.本阶段的主要内容如下:(20分) 1. 每天组织一次站立会议,讨论每个成员的昨天进 ...
- 作业七:团队项目——Alpha版本冲刺阶段010
今日安排:组内成员讨论 今日进程:组内成员讨论结束,并有明确的解决办法,每个人准备实践
- 作业七:团队项目——Alpha版本冲刺阶段009
今日安排:组内成员讨论 今日进度:组内成员讨论分工细节以及可能遇到的问题,并提出解决方案
- 作业七:团队项目——Alpha版本冲刺阶段008
今日进度:组内成员讨论 今日安排:组内成员分工
- 作业七:团队项目——Alpha版本冲刺阶段007
今日进展:完善游戏主体代码. 今日安排:让游戏能运行起来.
- 作业七:团队项目——Alpha版本冲刺阶段006
今日进展:完成主体代码. 今日安排:对程序主体进行编写.
- 作业七:团队项目——Alpha版本冲刺阶段005
今日进展:编写代码. 今日安排:完成开始部分代码.
- 作业七:团队项目——Alpha版本冲刺阶段004
今日进展:我们的扫雷基本界面已经差不多了,准备开始编写内部代码. 今日安排:做好界面,准备开始代码编写.
- 作业七:团队项目——Alpha版本冲刺阶段003
今日进展:我们的目标是做一款扫雷游戏,所以我们先去玩了几款游戏,找到了扫雷游戏的一些特点. 今日安排:先进行了一些必要的游戏过程,进行了基本的扫雷界面规划.
- 作业七:团队项目——Alpha版本冲刺阶段002
今日进展:我们终于安装好了软件,今天开始进行作业设计. 今日安排:今天开始我们要开始我们的框架的设计.
随机推荐
- SpringBoot-区分不同环境配置文件
spring.profiles.active=pre application-dev.properties:开发环境 application-test.properties:测试环境 applicat ...
- JavaScript学习(八)
- linux hostname 命令 显示当前主机域名 /etc/hostname
hostname显示当前主机域名, 我们可以使用 hostname 命令来修改主机名,但这种修改方式只有当前有效,等服务器重启后hostname就会失效,回到原来的hostname. [root@my ...
- MongoDB update修改器 目录
MongoDB update修改器: 针对Fields的$修改器 $inc $set $unset MongoDB update修改器: 针对Arrays的$修改器 $push $pull $pop ...
- C++中的内存区域及其性能特征
首先须要指出的是.我们通经常使用"堆"和"自由存储"这两个术语来区分两种不同类型的动态分配内存. 1.常量数据:常量数据区域主要用于存储字符串以及其它在编译期就 ...
- Github安全开源工具集合
Scanners-Box是来自github平台的开源扫描仪的集合,包括子域枚举,数据库漏洞扫描程序,弱密码或信息泄漏扫描仪,端口扫描仪,指纹扫描仪和其他大型扫描仪,模块化扫描仪等.对于其他众所周知的扫 ...
- Django基础之MTV模型
一.Django基础 一.Django简介 Django是一个开放源代码的Web应用框架,由Python写成.采用了MVC的软件设计模式,即模型(Model).视图(View)和控制器(Control ...
- 解决bug感觉
解决bug,没有思路,很烦躁: 时间过去好久,还是没头绪,没结论: ...... ...... ...... ...... ...... 过了好久,这样还不如冷静下来,按照正确的方法(review代码 ...
- [LeetCode] 872. Leaf-Similar Trees_Easy tag: DFS
Consider all the leaves of a binary tree. From left to right order, the values of those leaves form ...
- OGeek CTR预估
特征工程:将所有数据拼接到一起做特征,等到处理完,再按索引拆分数据 1.数据分析 查看标签分布:发现valid与testa.testb的分布相似,说明valid与testa的查询时间比较接近,作为验证 ...