| |
---|
| | return editAccount; |
---|
| | } |
---|
| | |
---|
| | public Account loginAccount(String userID,String userPass) { |
---|
| | return Accounts.getInstance().getAccount(userID); |
---|
| | if(idList.contains(userID) && getAccount(userID).getPass().equals(userPass)) { |
---|
| | return getAccount(userID); |
---|
| | }else { |
---|
| | return null; |
---|
| | } |
---|
| | } |
---|
| | |
---|
| | public String logoutAccount(String userID) { |
---|
| | Accounts.getInstance().getAccount(userID).setLogin(false); |
---|
| |
---|
| | |