|
|
|
@ -279,8 +279,10 @@ public class BBSLoginDialog extends UIDialog {
|
|
|
|
|
* @return 同上 |
|
|
|
|
*/ |
|
|
|
|
public static boolean login(String username, String password) { |
|
|
|
|
if (StringUtils.isNotBlank(username) && StringUtils.isNotBlank(password)) { |
|
|
|
|
try { |
|
|
|
|
username = URLEncoder.encode(username, EncodeConstants.ENCODING_GBK); |
|
|
|
|
password = URLEncoder.encode(password, EncodeConstants.ENCODING_GBK); |
|
|
|
|
} catch (UnsupportedEncodingException e) { |
|
|
|
|
FRLogger.getLogger().error(e.getMessage()); |
|
|
|
|
} |
|
|
|
@ -297,6 +299,7 @@ public class BBSLoginDialog extends UIDialog {
|
|
|
|
|
FRLogger.getLogger().error(e.getMessage()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|