Browse Source

fix username

Marino Faggiana 7 years ago
parent
commit
3f6e51d475
1 changed files with 1 additions and 1 deletions
  1. 1 1
      iOSClient/Login/CCLoginWeb.swift

+ 1 - 1
iOSClient/Login/CCLoginWeb.swift

@@ -79,7 +79,7 @@ extension CCLoginWeb: SwiftModalWebVCDelegate {
                         serverUrl = String(serverUrl.dropLast())
                     }
             
-                    let username : String = keyValue[1].replacingOccurrences(of: "user:", with: "")
+                    let username : String = keyValue[1].replacingOccurrences(of: "user:", with: "").replacingOccurrences(of: "+", with: " ")
                     let password : String = keyValue[2].replacingOccurrences(of: "password:", with: "")
                 
                     let account : String = "\(username) \(serverUrl)"