This commit is contained in:
@@ -24,12 +24,14 @@ public abstract class UserModel extends BaseEntity {
|
||||
public String hashedPassword;
|
||||
|
||||
@Transient
|
||||
protected final String role;
|
||||
public String role;
|
||||
|
||||
protected UserModel(String role) {
|
||||
this.role = role;
|
||||
}
|
||||
|
||||
public UserModel() {}
|
||||
|
||||
@Transactional
|
||||
public void signup(String name, String phone, String rawPassword) {
|
||||
UserModel existedUser = UserModel.find("phone", phone).firstResult();
|
||||
|
||||
Reference in New Issue
Block a user