Skip to content

Commit fa59b25

Browse files
author
Michele Longhi
committed
Extra check for social authentication
1 parent 89df85a commit fa59b25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CloudBoost/CloudUser.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public class CloudUser: CloudObject {
184184
CloudCommunications._request("POST", url: NSURL(string: url)!, params: data, callback: {
185185
(response: CloudBoostResponse) in
186186

187-
if let doc = response.object as? NSDictionary {
187+
if let doc = response.object as? NSDictionary where response.success {
188188

189189
if let user = CloudUser.cloudObjectFromDocumentDictionary(doc, documentType: self) as? CloudUser {
190190

0 commit comments

Comments
 (0)