【问题标题】:Parse destroyed session after trying to save PFUser尝试保存 PFUser 后解析被破坏的会话
【发布时间】:2016-04-25 20:55:44
【问题描述】:

Parse ServeriOSParse 版本 1.13.0)中破坏了用户会话,并且用户在首次成功保存 PFUserobject 后变得未经授权。下次保存(当前用户的任何更新)会导致错误,当前用户在 Parse server 上的 session 消失,PFUser.currentUser() 变为 nil:

[Error]: cannot modify user 84Yl7S2mNE (Code: 206, Version: 1.13.0)

我已经绝望了。如何解决此错误? 我在Heroku 上使用Parse server

let configuration = ParseClientConfiguration { 
  $0.applicationId = "*************"
  $0.clientKey = "unused"
  $0.server = "http://**********.herokuapp.com/parse"
  $0.localDatastoreEnabled = false
}
Parse.initializeWithConfiguration(configuration)

尝试禁用 LocalDataStore - 无效

【问题讨论】:

    标签: swift heroku parse-platform parse-server


    【解决方案1】:

    解析很棒。这是我的错误,我在登录后更改了PFUser.currentUser().password字段。永远不要这样做)

    【讨论】:

      猜你喜欢
      • 2019-02-23
      • 1970-01-01
      • 2014-08-15
      • 1970-01-01
      • 2023-03-04
      • 2013-10-31
      • 2012-07-24
      • 2011-09-19
      相关资源
      最近更新 更多