完善登陆后设置当前project的逻辑
This commit is contained in:
parent
f3d94119a6
commit
154c723ce8
@ -179,6 +179,12 @@ public class ProjectBean implements Serializable {
|
||||
loadProjects();
|
||||
loadAllKeywords();
|
||||
isLoggedIn = true;
|
||||
if (projects.isEmpty()){
|
||||
project = new Project("", "", "", new ArrayList<>(), "", new ArrayList<>(), "", "");
|
||||
}
|
||||
else{
|
||||
setProject(projects.get(0));
|
||||
}
|
||||
return "index";
|
||||
} else {
|
||||
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "Login failed", null));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user