Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
InvestCustomer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Giang Tran
InvestCustomer
Commits
9716afe7
Commit
9716afe7
authored
Jun 11, 2021
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update code
parent
003c63ae
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
Login.js
src/Screens/Authen/Login.js
+2
-3
helpers.js
src/apis/helpers.js
+0
-0
url.js
src/apis/url.js
+1
-1
No files found.
src/Screens/Authen/Login.js
View file @
9716afe7
...
@@ -18,7 +18,7 @@ import {
...
@@ -18,7 +18,7 @@ import {
FORGOTPASSWORD
,
FORGOTPASSWORD
,
CONFIRMEMAIL
,
CONFIRMEMAIL
,
}
from
'../../routers/ScreenNames'
;
}
from
'../../routers/ScreenNames'
;
import
{
checkFormatArray
}
from
'../../Config/Functions'
;
import
{
checkFormatArray
,
encryptRSAString
}
from
'../../Config/Functions'
;
import
{
loginApi
}
from
'../../apis/Functions/users'
;
import
{
loginApi
}
from
'../../apis/Functions/users'
;
import
KEY
from
'../../assets/AsynStorage'
;
import
KEY
from
'../../assets/AsynStorage'
;
import
AsyncStorage
from
'@react-native-community/async-storage'
;
import
AsyncStorage
from
'@react-native-community/async-storage'
;
...
@@ -75,12 +75,11 @@ const Login = (props) => {
...
@@ -75,12 +75,11 @@ const Login = (props) => {
props
.
showLoading
();
props
.
showLoading
();
const
res
=
await
loginApi
({
const
res
=
await
loginApi
({
email
,
email
,
password
:
pass
,
password
:
encryptRSAString
(
pass
)
,
platform
:
Platform
.
OS
,
platform
:
Platform
.
OS
,
device_token
:
firebase
,
device_token
:
firebase
,
account_type
:
'CUSTOMER'
,
account_type
:
'CUSTOMER'
,
});
});
props
.
hideLoading
();
props
.
hideLoading
();
if
(
res
.
data
)
{
if
(
res
.
data
)
{
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
)
{
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
)
{
...
...
src/apis/helpers.js
View file @
9716afe7
This diff is collapsed.
Click to expand it.
src/apis/url.js
View file @
9716afe7
export
const
root
=
'http://services.dcvinvest.com/'
;
export
const
root
=
'http://services.dcvinvest.com/'
;
export
default
{
export
default
{
urllogin
:
root
+
'api/auth/customer-login'
,
urllogin
:
root
+
'api/
v2/
auth/customer-login'
,
urlRegistor
:
root
+
'api/auth/customer-register'
,
urlRegistor
:
root
+
'api/auth/customer-register'
,
urlGetListMethod
:
root
+
'api/v1/payments/get-list-deposit-method'
,
urlGetListMethod
:
root
+
'api/v1/payments/get-list-deposit-method'
,
urlGetOTP
:
root
+
'api/auth/customer-get-otp'
,
urlGetOTP
:
root
+
'api/auth/customer-get-otp'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment