mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-18 23:52:14 +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){
|
async function postUser(name, password){
|
||||||
|
console.log(process.env.BANKAPIURL)
|
||||||
try{
|
try{
|
||||||
const {body} = await got.post('https://ccash.ryzerth.com/BankF/user',{
|
const {body} = await got.post(process.env.BANKAPIURL+'BankF/user',{
|
||||||
json:{
|
json:{
|
||||||
name: name,
|
name: name,
|
||||||
init_pass: password
|
init_pass: password
|
||||||
|
|
@ -16,9 +17,6 @@ async function postUser(name, password){
|
||||||
} catch(err){
|
} catch(err){
|
||||||
console.log(err)
|
console.log(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(body)
|
|
||||||
return body.value
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue