Hey guys,
I am struggling at the moment.
Parse.Cloud.beforeSave("_User", (request) => {
if( request.object.get("username") ){
request.object.set("username", request.object.get("username").toLowerCase())
request.object.set("email", request.object.get("username") );
console.log(request.object.toJSON() );
}
});
All I want to do is to set the username to be the same as the email address automatically in the backend inside the beforeSave. But if I do that inside my Cloud Code, email verification links become invalid and are not working anymore.
Is it possible to do it this way? Any hint would be great!
Best Nico