summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/VpnProfile.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-05-24 11:11:45 +0200
committerArne Schwabe <arne@rfc2549.org>2012-05-24 11:11:45 +0200
commit6d113da4ac3b8689bc803109cff04425da26c78b (patch)
tree8d03e12bf369dc1fc2563dcf6fa1a1e86dc4dbe0 /src/de/blinkt/openvpn/VpnProfile.java
parentd30bc67738d9c5a61ac319681a55f0f82a4e807f (diff)
Add more diagnostic messages for management password queries
Diffstat (limited to 'src/de/blinkt/openvpn/VpnProfile.java')
-rw-r--r--src/de/blinkt/openvpn/VpnProfile.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/de/blinkt/openvpn/VpnProfile.java b/src/de/blinkt/openvpn/VpnProfile.java
index 5cdff43d..125dc675 100644
--- a/src/de/blinkt/openvpn/VpnProfile.java
+++ b/src/de/blinkt/openvpn/VpnProfile.java
@@ -505,7 +505,9 @@ public class VpnProfile implements Serializable{
if(!mUsePull) {
if(mIPv4Address == null || cidrToIPAndNetmask(mIPv4Address) == null)
return R.string.ipv4_format_error;
-
+ }
+ if(isUserPWAuth() && !nonNull(mUsername)) {
+ return R.string.error_empty_username;
}
if(!mUseDefaultRoute && getCustomRoutes()==null)
return R.string.custom_route_format_error;