Compare commits

..

27 Commits

Author SHA1 Message Date
hnu202326010328 5630662612 Update EmailConfig.java
3 months ago
hnu202326010328 b71c490b41 Update MainMenuController.java
3 months ago
hnu202326010328 7897269a70 更新 'src/main/java/com/mathgenerator/controller/MainMenuController.java'
3 months ago
hnu202326010328 7cec60f9d6 更新 'src/main/java/com/mathgenerator/controller/MainMenuController.java'
3 months ago
hnu202326010328 9ea1aae113 更新 'src/main/java/com/mathgenerator/controller/LoginController.java'
3 months ago
hnu202326010328 2cc07e3c9b 更新 'src/main/java/com/mathgenerator/controller/ChangePasswordController.java'
3 months ago
hnu202326010328 adfafc8e13 界面美化和提示词
3 months ago
hnu202326010328 27f6ed1a02 注册中断不写入users.json
3 months ago
hnu202326010328 5ced37e303 新增邮箱登录
3 months ago
hnu202326010328 c0e78d341e 减少控制台输出
3 months ago
hnu202326010328 ec7c0aca22 更新项目文档
3 months ago
hnu202326010328 47aca1462c javadoc的补全
3 months ago
hnu202326010328 7fcd5cfb96 界面样式改进
3 months ago
hnu202326010328 e6af4e52e4 邮箱格式校验
3 months ago
hnu202326010328 405124f9de 打包
3 months ago
hnu202326010328 bdd51fc249 启动类更改
3 months ago
hnu202326010328 d11694f845 密码不能相同
3 months ago
hnu202326010328 4421513c4c 验证码倒计时功能
3 months ago
hnu202326010328 a4e93d42f6 稳定版本-美化界面版本
3 months ago
hnu202326010328 7faebe8f62 验证码功能60s刷新
3 months ago
hnu202326010328 e9d75a1f80 注册逻辑更正
3 months ago
hnu202326010328 4dcfcbdbed 新旧密码不得一致
3 months ago
hnu202326010328 11e228f1d7 界面样式修改
3 months ago
hnu202326010328 e4ba18f87b 题目数量限制
3 months ago
hnu202326010328 5c2ec1dc34 本地试卷生成
3 months ago
hnu202326010328 8e28a712ee 本地试卷生成
3 months ago
hnu202326010328 389c9f57f0 abcd选项提交
3 months ago

@ -136,4 +136,4 @@ public class ChangePasswordController {
e.printStackTrace();
}
}
}
}

@ -82,7 +82,7 @@ public class LoginController {
FXMLLoader loader = new FXMLLoader(getClass().getResource("/com/mathgenerator/view/MainMenuView.fxml"));
Parent root = loader.load();
// 2. 获取新界面的控制器
// 2. 获取新界面的控制器
MainMenuController controller = loader.getController();
// 3. 调用控制器的方法,传递数据

@ -1,5 +1,6 @@
package com.mathgenerator.controller;
import com.mathgenerator.model.Level;
import com.mathgenerator.model.User;
import javafx.event.ActionEvent;
@ -150,7 +151,7 @@ public class MainMenuController {
}
}
/**
/**
*
*
* @param message
@ -160,15 +161,7 @@ public class MainMenuController {
statusLabel.getStyleClass().setAll("status-label");
}
/**
*
*/
private void clearStatus() {
statusLabel.setText("");
statusLabel.getStyleClass().clear();
}
/**
/**
*
*
* @param fxmlPath FXML
@ -183,4 +176,15 @@ public class MainMenuController {
e.printStackTrace();
}
}
/**
*
*/
private void clearStatus() {
statusLabel.setText("");
statusLabel.getStyleClass().clear();
}
}

@ -23,8 +23,18 @@ public class EmailConfig {
ex.printStackTrace();
}
}
/**
* SMTP
*
* @return SMTP
*/
public static int getPort() {
return Integer.parseInt(properties.getProperty("smtp.port"));
}
/**
* SMTP
*
* @return SMTP
@ -33,13 +43,15 @@ public class EmailConfig {
return properties.getProperty("smtp.host");
}
/**
* SMTP
* SMTP
*
* @return SMTP
* @return SMTP
*/
public static int getPort() {
return Integer.parseInt(properties.getProperty("smtp.port"));
public static String getPassword() {
return properties.getProperty("smtp.password");
}
/**
@ -50,13 +62,4 @@ public class EmailConfig {
public static String getUsername() {
return properties.getProperty("smtp.username");
}
/**
* SMTP
*
* @return SMTP
*/
public static String getPassword() {
return properties.getProperty("smtp.password");
}
}
Loading…
Cancel
Save