This is an automated email from the ASF dual-hosted git repository.
bhaisaab pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/master by this push:
new aee3dbb CLOUDSTACK-10000: Fix remote access vpn does not work due to
'#' in password (#2182)
aee3dbb is described below
commit aee3dbb49a77f4784a72206d54d1fa7c4df0b0ce
Author: ustcweizhou <[email protected]>
AuthorDate: Thu Aug 10 01:30:21 2017 +0200
CLOUDSTACK-10000: Fix remote access vpn does not work due to '#' in
password (#2182)
---
server/src/com/cloud/network/vpn/RemoteAccessVpnManagerImpl.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/src/com/cloud/network/vpn/RemoteAccessVpnManagerImpl.java
b/server/src/com/cloud/network/vpn/RemoteAccessVpnManagerImpl.java
index 67b1cc0..491fb47 100644
--- a/server/src/com/cloud/network/vpn/RemoteAccessVpnManagerImpl.java
+++ b/server/src/com/cloud/network/vpn/RemoteAccessVpnManagerImpl.java
@@ -381,8 +381,8 @@ public class RemoteAccessVpnManagerImpl extends ManagerBase
implements RemoteAcc
if (!username.matches("^[a-zA-Z0-9][a-zA-Z0-9@._-]{2,63}$")) {
throw new InvalidParameterValueException("Username has to be begin
with an alphabet have 3-64 characters including alphabets, numbers and the set
'@.-_'");
}
- if (!password.matches("^[a-zA-Z0-9][a-zA-Z0-9@#+=._-]{2,31}$")) {
- throw new InvalidParameterValueException("Password has to be 3-32
characters including alphabets, numbers and the set '@#+=.-_'");
+ if (!password.matches("^[a-zA-Z0-9][a-zA-Z0-9@+=._-]{2,31}$")) {
+ throw new InvalidParameterValueException("Password has to be 3-32
characters including alphabets, numbers and the set '@+=.-_'");
}
return Transaction.execute(new TransactionCallback<VpnUser>() {
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].