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
3 years ago
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update code
parent
003c63ae
switch_rsa
…
build_01_July
build_02_July
build_06_07
build_14_June
build_15_july
build_30_June
build_release_1806
dev_01_July
dev_05_July
dev_14_July
dev_18_June
dev_phase2
ekyc
func_fingerprint_login
func_smart_otp
search_period
1 merge request
!21
Func smart otp
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 {
FORGOTPASSWORD
,
CONFIRMEMAIL
,
}
from
'../../routers/ScreenNames'
;
import
{
checkFormatArray
}
from
'../../Config/Functions'
;
import
{
checkFormatArray
,
encryptRSAString
}
from
'../../Config/Functions'
;
import
{
loginApi
}
from
'../../apis/Functions/users'
;
import
KEY
from
'../../assets/AsynStorage'
;
import
AsyncStorage
from
'@react-native-community/async-storage'
;
...
...
@@ -75,12 +75,11 @@ const Login = (props) => {
props
.
showLoading
();
const
res
=
await
loginApi
({
email
,
password
:
pass
,
password
:
encryptRSAString
(
pass
)
,
platform
:
Platform
.
OS
,
device_token
:
firebase
,
account_type
:
'CUSTOMER'
,
});
props
.
hideLoading
();
if
(
res
.
data
)
{
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
)
{
...
...
This diff is collapsed.
Click to expand it.
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
default
{
urllogin
:
root
+
'api/auth/customer-login'
,
urllogin
:
root
+
'api/
v2/
auth/customer-login'
,
urlRegistor
:
root
+
'api/auth/customer-register'
,
urlGetListMethod
:
root
+
'api/v1/payments/get-list-deposit-method'
,
urlGetOTP
:
root
+
'api/auth/customer-get-otp'
,
...
...
This diff is collapsed.
Click to expand it.
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