Skip to content
Snippets Groups Projects
Commit d40b0b1b authored by Matthew Williams's avatar Matthew Williams
Browse files

Fix semicolon and function call structure

parent b1cddee6
No related branches found
No related tags found
1 merge request!22Merge UC92 into Master
...@@ -80,12 +80,12 @@ public class ResetPasswordAction { ...@@ -80,12 +80,12 @@ public class ResetPasswordAction {
*/ */
public String checkRole(long mid, String role) throws ITrustException { public String checkRole(long mid, String role) throws ITrustException {
try { try {
if (("patient".equals(role) && patientDAO.getRole(mid, role).equals("patient")) if (("patient".equals(role) && patientDAO.getRole(mid).equals("patient"))
|| ("hcp".equals(role) && patientDAO.getRole(mid, role).equals("hcp")) || ("hcp".equals(role) && patientDAO.getRole(mid).equals("hcp"))
|| ("uap".equals(role) && patientDAO.getRole(mid, role).equals("uap")) || ("uap".equals(role) && patientDAO.getRole(mid).equals("uap"))
|| ("pha".equals(role) && patientDAO.getRole(mid, role).equals("pha")) || ("pha".equals(role) && patientDAO.getRole(mid).equals("pha"))
|| ("er".equals(role) && patientDAO.getRole(mid, role).equals("er")) || ("er".equals(role) && patientDAO.getRole(mid).equals("er"))
|| ("lt".equals(role) && patientDAO.getRole(mid, role).equals("lt"))) || ("lt".equals(role) && patientDAO.getRole(mid).equals("lt")))
return role; return role;
else else
return null; return null;
......
...@@ -196,7 +196,7 @@ public class PatientDAO { ...@@ -196,7 +196,7 @@ public class PatientDAO {
try { try {
conn = factory.getConnection(); conn = factory.getConnection();
ps = conn.prepareStatement("UPDATE users SET role=? WHERE MID=?"); ps = conn.prepareStatement("UPDATE users SET role=? WHERE MID=?");
ps.setString(1, "patient") ps.setString(1, "patient");
ps.setLong(2, mid); ps.setLong(2, mid);
} catch (SQLException e) { } catch (SQLException e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment