You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Have to remove contents of SCHEMA class before allowing user to Login - Happens for every user #1289
I am not sure how you originally got into this state, where the CLPs for the User class got completely locked down, but you can edit CLPs by using Parse Dashboard.
I would advise looking into how you got into this state in the first place, as you will want to make sure the CLPs don't get reset back to the locked down state unintentionally next time you deploy the server.
Still I'm not too sure how to change it even through Parse Dashboard is there any code I am able to change and i just built the database 5 days ago and set up a parse server. Nothing else
Activity
drew-gross commentedon Mar 31, 2016
Can you please post some code that demonstrates what you are doing, what you expected to happen, and what actually happened?
mogsten commentedon Mar 31, 2016
Here is the Login Code in Xcode, this is what happens
PFFacebookUtils.logInInBackgroundWithReadPermissions(["public_profile", "user_birthday", "email"], block: {
user, error in
JTProgressHUD.showWithStyle(JTProgressHUDStyle.Gradient)
let imageFile = PFFile(name: "avatar.jpg", data: data!)
user!["picture"] = imageFile
user!.saveInBackgroundWithBlock(nil)
When I log in (Before SCHEMA fix) - Error Logging In
When I log in (After SCHEMA fix) - User logs in - print(results) runs
flovilmart commentedon Mar 31, 2016
Can you please post the faulty schema?
mogsten commentedon Apr 1, 2016
Here is the SCHEMA for the User which is what I am trying to create
{
"_id": "_User",
"authData": "map",
"age": "number",
"bio": "string",
"gender": "string",
"firstName": "string",
"email": "string",
"picture": "file",
"pictureString": "string",
"userAction": "string",
"Location": "geopoint",
"_metadata": {
"class_permissions": {
"get": {},
"find": {},
"update": {},
"create": {},
"delete": {},
"addField": {},
"readUserFields": [],
"writeUserFields": []
}
},
"username": "string",
"emailVerified": "boolean"
}
flovilmart commentedon Apr 1, 2016
You have Class Level permissions set on your schema that lock down the ability to modify, query or do anything
mogsten commentedon Apr 1, 2016
OK how would I be able to change that?
hramos commentedon Apr 1, 2016
I am not sure how you originally got into this state, where the CLPs for the User class got completely locked down, but you can edit CLPs by using Parse Dashboard.
I would advise looking into how you got into this state in the first place, as you will want to make sure the CLPs don't get reset back to the locked down state unintentionally next time you deploy the server.
mogsten commentedon Apr 1, 2016
Still I'm not too sure how to change it even through Parse Dashboard is there any code I am able to change and i just built the database 5 days ago and set up a parse server. Nothing else
hramos commentedon Apr 2, 2016
You may use Server Fault for questions about managing Parse Server.
For code-level and/or implementation-related questions or technical support, please refer to Stack Overflow.