浏览代码

fix username

Marino Faggiana 7 年之前
父节点
当前提交
3f6e51d475
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)"