基本实现手机验证码,账号密码登录。腾讯云短信后台显示成功,但是收不到,也没有报错

This commit is contained in:
2025-08-06 01:31:16 +08:00
parent 66480121b4
commit 940f1d7bac
8 changed files with 314 additions and 89 deletions

View File

@@ -12,6 +12,11 @@ import java.util.Date;
@Table(name = "users")
public class User implements UserDetails {
@Transient // 关键注解:声明此字段不映射到数据库
private boolean newUser;
@Transient // 关键注解:声明此字段不映射到数据库
private boolean hasPassword;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
@@ -66,6 +71,22 @@ public class User implements UserDetails {
return true;
}
public boolean isNewUser() {
return newUser;
}
public void setNewUser(boolean newUser) {
this.newUser = newUser;
}
public boolean isHasPassword() {
return hasPassword;
}
public void setHasPassword(boolean hasPassword) {
this.hasPassword = hasPassword;
}
// Getters and Setters for id, username, password, email
public Long getId() {
return id;