pfuser

How to send Parse user's password to external API Request?

天涯浪子 提交于 2019-12-13 07:35:43
问题 I'm developing an iOS app which the user must login/register an account. But this account must be the same used in some external webservice. The problem is: I want to do some Jobs on Parse to send Push Notifications automatically. To know when Parse Job have to send the Push Notification, I have to login in my external webservice, I mean, I have to send the PFUser Username and Password to my webservice. So there is a way to obtain the user's password in a plaintext in CloudCode? Or there is

Parse cloud code - modifying all PFUsers

狂风中的少年 提交于 2019-12-13 05:04:15
问题 I'm trying to create a cloud Job that takes the users full name or username and saves it in lower case in another column. here's what I have so far: Parse.Cloud.job('normaliseUsername',function(request, status) { Parse.Cloud.useMasterKey(); var query = new Parse.Query(Parse.User); query.find({ success: function(items){ for (var i=0;i<items.length;i++) { var user = items[i]; console.log(user); var changed = user["nameChanged"]; if (changed === true) { var username = user.username; user.set(

Parse-server/Heroku email account verification not working

一笑奈何 提交于 2019-12-13 04:01:14
问题 I am trying to implement the email verification system on Parse-Server (/Heroku), when a user account is created; so that the user can confirm his/her account creation. Things are working well for those matters: I can create a working account. The user receives the verification email that is expected. The problem is this: When the user clicks on the link inside the verification email. This is what appears in the browser: {"error":"unauthorized"} Has anyone seen a similar issue and knows how

How to set the current user in cell? Swift, Parse

筅森魡賤 提交于 2019-12-12 06:39:06
问题 Day, guys. Help me.I can not solve the problem for three days I make an app look like an Instagram. I want to make sure that when you create a post, in cell of tableview, writing his nickname. I am try this: findSweeter.findObjectsInBackgroundWithBlock{ (objects:[AnyObject]?, error:NSError?)->Void in if error == nil{ let user:PFUser = (objects as NSArray).lastObject as PFUser! cell1.usernamelabel.text = user.username } } } But thats issue: [AnyObject]? is not convertible to 'NSArray' &

How to store PFUser objectId with RecipientId

浪尽此生 提交于 2019-12-12 01:50:14
问题 I use Parse.com for backend, I've two views : InboxView (where I receive images from friends), and ChatView. When I send images, I send images with recipientIds of user (that can be multiple users) in "Messages" class (parse). I receive images in my InboxView, I can see in cell for row the name of the friend that send images. I would like that when I select a row (username who sends me image) that stores the PFUser objectId of the user who sends me the image, and not all of the recipientIds.

Link inside verification-mail not working

回眸只為那壹抹淺笑 提交于 2019-12-11 08:04:20
问题 Could somebody explain, or better tell me how to fix this problem? The link found in the "account creation verification email" on Parse-Server (/Heroku), is not working. The relevant code in index.js is like this: var api = new ParseServer({ databaseURI: ....., cloud: ....., appId: ....., .......... publicServerURL: process.env.PARSE_PUBLIC_SERVER_URL || 'https://myapp.herokuapp.com', appName: 'WonderApp', .......... verifyUserEmails: true, emailAdapter: { module: 'parse-server-mailgun',

How to change PFUser password in Swift?

允我心安 提交于 2019-12-10 21:41:40
问题 I've tried updating the same way you would update a PFUser's email and even tried converting obj-c code (from other questions); neither worked. I also have no idea how to use Cloud Code (well...I installed it but I don't know how to pass information into Cloud Code or how to use JavaScript). Is there a way to update a users password without having to send the reset email? 回答1: You can not change a user's password that way for security reasons. You have two choices Password Reset Email Cloud

Parse login hang since Facebook 4.0.x with [PFFacebookUtils initializeFacebookWithApplicationLaunchOptions:launchOptions] (semaphore_wait_slow trap)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 13:05:08
问题 Since updating Facebook to v4.0.x and the latest Parse libraries, my app is hanging, seemingly when trying to log in the user. My stack trace looks like this: I had a very similar problem previously, answered here: Parse crash when calling [PFFacebookUtils initializeFacebook] - semaphore_wait_trap However that solution no longer works, since it seems [PFUser currentUser] has been replaced with [PFUser(Private) _getCurrentUserWithOptions:] and [BFTask(Private) waitForResult

Parse crash when calling [PFFacebookUtils initializeFacebook] - semaphore_wait_trap

爱⌒轻易说出口 提交于 2019-12-04 11:44:30
问题 Since the latest Parse release (v1.6.3) my app gets stuck at launch, and the last breakpoint it hits is [PFFacebookUtils initializeFacebook]; If I hit pause and look at the debugger, the stack trace looks like this: I'm calling [PFFacebookUtils initializeFacebook] in - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions as advised. From googling the semaphore_wait_trap issue, it seems to be related to clashing background threads(?) in

Access to [PFUser currentUser] causing deadlock

隐身守侯 提交于 2019-12-04 05:36:56
Getting a deadlock occasionally when several threads trying to access [PFUser currentUser] when using parse iOS sdk v1.2.20 It looks like whenever I make a PFQuery call or PFCloud function call, these operations also access [PFUser currentUser], so there's increase chance of deadlock if you are making queries from separate threads. Anyone else find a solution for this, I doubt parse even is aware of the problem as they closed these related issues long ago: https://www.parse.com/questions/parse-locking-up-the-main-thread-possible-deadlock And this one: https://www.parse.com/questions/occasional