mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-17 07:12:12 +11:00
fixed registration - wasnt using process.env.BANKAPIURL for the postuser function
This commit is contained in:
parent
22a23074c6
commit
5673708f76
1 changed files with 2 additions and 4 deletions
|
|
@ -3,8 +3,9 @@ const got = require('got');
|
|||
|
||||
|
||||
async function postUser(name, password){
|
||||
console.log(process.env.BANKAPIURL)
|
||||
try{
|
||||
const {body} = await got.post('https://ccash.ryzerth.com/BankF/user',{
|
||||
const {body} = await got.post(process.env.BANKAPIURL+'BankF/user',{
|
||||
json:{
|
||||
name: name,
|
||||
init_pass: password
|
||||
|
|
@ -16,9 +17,6 @@ async function postUser(name, password){
|
|||
} catch(err){
|
||||
console.log(err)
|
||||
}
|
||||
|
||||
console.log(body)
|
||||
return body.value
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue