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) {
|
public String getUserAttribute(String panelName) {
|
||||||
return switch (panelName.toLowerCase()) {
|
return switch (panelName.toLowerCase()) {
|
||||||
case "title" -> user.getTitle();
|
case "title" -> getTitle();
|
||||||
case "name" -> user.getName();
|
case "name" -> getName();
|
||||||
case "email" -> user.getEmail();
|
case "email" -> getEmail();
|
||||||
case "phone" -> user.getPhone();
|
case "phone" -> getPhone();
|
||||||
case "address" -> user.getAddress();
|
case "address" -> getAddress();
|
||||||
default -> "method error";
|
default -> "method error";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user