no message
This commit is contained in:
parent
70c37b432e
commit
ce70ebf7fc
@ -274,8 +274,11 @@ static bool isFirstAccess = YES;
|
|||||||
[[PNObjectConfig sharedInstance] refreshTokenForUserWithEmail:email password:password withBlockSuccess:^(BOOL refreshSuccess) {
|
[[PNObjectConfig sharedInstance] refreshTokenForUserWithEmail:email password:password withBlockSuccess:^(BOOL refreshSuccess) {
|
||||||
if (refreshSuccess) {
|
if (refreshSuccess) {
|
||||||
|
|
||||||
|
if ([[self class] currentUser]) {
|
||||||
PNUser *user = [[self class] new];
|
[[[self class] currentUser] resetUser];
|
||||||
|
}
|
||||||
|
|
||||||
|
PNUser *user = [[self class] currentUser];
|
||||||
|
|
||||||
PNObjcPassword *objectPassword = [PNObjcPassword new];
|
PNObjcPassword *objectPassword = [PNObjcPassword new];
|
||||||
[objectPassword setPassword:password];
|
[objectPassword setPassword:password];
|
||||||
@ -285,9 +288,10 @@ static bool isFirstAccess = YES;
|
|||||||
[user setEmail:email];
|
[user setEmail:email];
|
||||||
[user setPassword:objectPassword];
|
[user setPassword:objectPassword];
|
||||||
[user saveLocally];
|
[user saveLocally];
|
||||||
|
[user reloadFormServer];
|
||||||
|
|
||||||
if (success) {
|
if (success) {
|
||||||
success([self currentUser]);
|
success(user);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} failure:failure];
|
} failure:failure];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user