Преглед изворни кода

Merge pull request #2186 from nextcloud/e2eNameWithAt

E2E: do not modifiy userid
Andy Scherzinger пре 7 година
родитељ
комит
58a8a11d74
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/main/java/com/owncloud/android/utils/CsrHelper.java

+ 1 - 1
src/main/java/com/owncloud/android/utils/CsrHelper.java

@@ -58,7 +58,7 @@ public class CsrHelper {
      */
     private static PKCS10CertificationRequest generateCSR(KeyPair keyPair, String userId) throws IOException,
     OperatorCreationException {
-        String principal = "CN=" + userId.split("@")[0];
+        String principal = "CN=" + userId;
         AsymmetricKeyParameter privateKey = PrivateKeyFactory.createKey(keyPair.getPrivate().getEncoded());
         AlgorithmIdentifier signatureAlgorithm = new DefaultSignatureAlgorithmIdentifierFinder().find("SHA1WITHRSA");
         AlgorithmIdentifier digestAlgorithm = new DefaultDigestAlgorithmIdentifierFinder().find("SHA-1");