fixed the getUserAttributes method
This commit is contained in:
1 parent
0b66878649
commit
eb233f43f9
1 file changed
+5
-5
@@ -11,11 +11,11 @@ public class User {
|
||||
|
||||
public String getUserAttribute(String panelName) {
|
||||
return switch (panelName.toLowerCase()) {
|
||||
case "title" -> user.getTitle();
|
||||
case "name" -> user.getName();
|
||||
case "email" -> user.getEmail();
|
||||
case "phone" -> user.getPhone();
|
||||
case "address" -> user.getAddress();
|
||||
case "title" -> getTitle();
|
||||
case "name" -> getName();
|
||||
case "email" -> getEmail();
|
||||
case "phone" -> getPhone();
|
||||
case "address" -> getAddress();
|
||||
default -> "method error";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user