【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
今日进展:我们终于安装好了软件,今天开始进行作业设计. 今日安排:今天开始我们要开始我们的框架的设计.
随机推荐
- office excel中怎么添加批注及修改批注用户名
office excel中怎么添加批注及修改批注用户名 参考:https://jingyan.baidu.com/article/c33e3f48a52853ea15cbb5db.html 1. of ...
- LNMP安装目录及配置文件
LNMP安装目录及配置文件位置 LNMP相关软件安装目录Nginx 目录: /usr/local/nginx/MySQL 目录 : /usr/local/mysql/MySQL数据库所在目录:/usr ...
- 【LeetCode每天一题】Valid Parentheses(有效的括弧)
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the inpu ...
- SpringMVC连接多数据源配置
在spring-config-datasource.xml中配置: <ds:ibatis-config> <ds:sql-map-client id="sqlMapClie ...
- 使用github(一)
一.使用Github(目的.基本概念) 1.目的 借助github托管项目代码 2.基本概念 (1)仓库(Repository) 仓库即项目的意思,你想在github上开源一个项目,那就必须要新建一个 ...
- 如何设置locale
什么是 locale? 是根据计算机用户所使用的语言,所在国家或者地区,以及当地的文化传统所定义的一个软件运行时的语言环境 locale定义文件放在目录 /usr/share/i18n/locales ...
- Golang package
今天,灵感一现:不能一个文件干到底吧,那要是工程大了怎么办? 答案很简单,“包”啊 GO里的包,看起来很简单,但又不简单 一开始,我想当然的以为就是include 路径一样的问题 事实是,GO以GOP ...
- TextBox显示提示信息
属性placeholder可以设置TextBox 提示信息如: <asp:TextBox ID ="txt1" runat ="server" Tool ...
- iOS UI进阶-1.1 Quartz2D 图片水印/裁剪/截图
图片水印 UIImage+MJ.h #import <UIKit/UIKit.h> @interface UIImage (MJ) /** * 打水印 * * @param bg 背景图片 ...
- Linux基础(一)流程控制
Shell 流程控制 if 语句语法格式1: 写成一行(适用于终端命令提示符):if [ $(ps -ef | grep -c "ssh") -gt 1 ]; then echo ...