Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Vasilis
2022-02-04 13:54:57 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c67a73d936d8302ae382e7e99550df9ac5fffb62
c67a73d9
1 parent
9e1abe65
fix at webAuthorize for msisdn
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
WarplySDKFrameworkIOS/Warply/Warply.m
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/billskouras.xcuserdatad/UserInterfaceState.xcuserstate
WarplySDKFrameworkIOS/Warply/Warply.m
View file @
c67a73d
...
...
@@ -600,7 +600,13 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
else
{
[
_db
executeUpdate
:
@"UPDATE requestVariables SET client_id = ? , client_secret = ? WHERE id = 1"
,
clientId
,
clientSecret
];
}
NSDictionary
*
postDictionary2
=
@{
@"app_id"
:
[
contextResponse
objectForKey
:
@"app_id"
],
@"client_id"
:
clientId
,
@"confirm"
:
@"yes"
,
@"email"
:
id
,
@"response_type"
:
@"code"
,
@"scope"
:
[
loginType
stringByAppendingString
:
@" app_id"
]
};
if
([
loginType
isEqual
:
@"email"
])
{
NSDictionary
*
postDictionary2
=
@{
@"app_id"
:
[
contextResponse
objectForKey
:
@"app_id"
],
@"client_id"
:
clientId
,
@"confirm"
:
@"yes"
,
@"email"
:
id
,
@"response_type"
:
@"code"
,
@"scope"
:
[
loginType
stringByAppendingString
:
@" app_id"
]
};
}
else
if
([
loginType
isEqual
:
@"msdisdn"
])
{
NSDictionary
*
postDictionary2
=
@{
@"app_id"
:
[
contextResponse
objectForKey
:
@"app_id"
],
@"client_id"
:
clientId
,
@"confirm"
:
@"yes"
,
@"msisdn"
:
id
,
@"response_type"
:
@"code"
,
@"scope"
:
[
loginType
stringByAppendingString
:
@" app_id"
]
};
}
else
{
NSDictionary
*
postDictionary2
=
@{
@"app_id"
:
[
contextResponse
objectForKey
:
@"app_id"
],
@"client_id"
:
clientId
,
@"confirm"
:
@"yes"
,
@"username"
:
id
,
@"response_type"
:
@"code"
,
@"scope"
:
[
loginType
stringByAppendingString
:
@" app_id"
]
};
}
NSData
*
jsonData2
=
[
NSJSONSerialization
dataWithJSONObject
:
postDictionary2
options
:
0
error
:
NULL
];
[
self
sendContext4
:
jsonData2
successBlock
:
^
(
NSDictionary
*
contextResponse
)
{
if
(
success
)
{
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/billskouras.xcuserdatad/UserInterfaceState.xcuserstate
View file @
c67a73d
No preview for this file type
Please
register
or
login
to post a comment