- Fix facebook BirthDate bind with PNUser
This commit is contained in:
parent
3bac17f9df
commit
c06c89899d
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
s.name = 'PNObject'
|
s.name = 'PNObject'
|
||||||
s.version = '1.1.2'
|
s.version = '1.1.3'
|
||||||
s.summary = 'PNObject is a simple replica of the more complex ParseObject'
|
s.summary = 'PNObject is a simple replica of the more complex ParseObject'
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -17,6 +17,7 @@
|
|||||||
#import <FBSDKShareKit/FBSDKShareKit.h>
|
#import <FBSDKShareKit/FBSDKShareKit.h>
|
||||||
#import "PNObjcPassword.h"
|
#import "PNObjcPassword.h"
|
||||||
#import "HTTPStatusCodes.h"
|
#import "HTTPStatusCodes.h"
|
||||||
|
#import "NSDate+NSDate_Util.h"
|
||||||
|
|
||||||
|
|
||||||
@interface PNUser() <PNObjectSubclassing>
|
@interface PNUser() <PNObjectSubclassing>
|
||||||
@ -321,6 +322,7 @@ static bool isFirstAccess = YES;
|
|||||||
[user setEmail:[result objectForKey:@"email"]];
|
[user setEmail:[result objectForKey:@"email"]];
|
||||||
[user setFacebookId:[result objectForKey:@"id"]];
|
[user setFacebookId:[result objectForKey:@"id"]];
|
||||||
[user setFacebookUser:YES];
|
[user setFacebookUser:YES];
|
||||||
|
[user setBirthDate:[NSDate dateFromString:[result objectForKey:@"birthday"]]];
|
||||||
[user saveLocally];
|
[user saveLocally];
|
||||||
|
|
||||||
USER = user;
|
USER = user;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user