Swift中Parse的查询
是否有可能实现以下目标Swift中Parse的查询,swift,parse-platform,Swift,Parse Platform,是否有可能实现以下目标 if fieldDeleteAccountPassword.text == PFUser.currentUser()?.password! { println("PASSWORD MATCH") PFUser.currentUser()?.deleteInBackground() } else { println("PASSWORD NOT MATCH") } 目前,我用PFUs
if fieldDeleteAccountPassword.text == PFUser.currentUser()?.password! {
println("PASSWORD MATCH")
PFUser.currentUser()?.deleteInBackground()
}
else
{
println("PASSWORD NOT MATCH")
}
目前,我用
PFUser.currentUser()?.password得到的一切代码>为零。我想这应该是可能的,否则为什么要在PFUser不可访问的情况下添加.password呢?不,您无法读取用户密码。你只能给它写信
如果要检查字符串是否与用户密码相同,请尝试将其登录,如果错误,则会出现错误