onsightit / web-wallet

OpenSourced Node.js Web Wallet for PoS Coins
GNU General Public License v3.0
27 stars 50 forks source link

Login issue #2

Closed knkrth closed 6 years ago

knkrth commented 7 years ago

Hi, I setup everything correct & I start the wallet, I can see the login page but when I enter the login details and hit enter it redirect me to home page I don't know why?

cyppper commented 6 years ago

same

SirPadde commented 6 years ago

Within the settings.json

// The url hosting the app. e.g. myhost.org (must match browser URI to satisfy CORS)

"appHost": ""

solved this issue for me.

knkrth commented 6 years ago

Did @SirPadde solved your problem @grumpydevelop ? Can you login to home page? If so can you share a screen short of home page?

cyppper commented 6 years ago

@knkrth i just writed ip in appHost and everything is working ok

knkrth commented 6 years ago

@grumpydevelop Ok, Let me try it out when I am free.

exander77 commented 6 years ago

Have the same problem, but setting appHost: "" does not help. Also do get no error messages in the browser, it just redirects back to the login page.

exander77 commented 6 years ago

It is really frustrating, no errors in the browser, no errors in nodejs console, but I cannot login.

cyppper commented 6 years ago

@exander77 write me in telegram @maxzambinq

onsightit commented 6 years ago

This is likely a CORS issue, In settings.json, the appHost must match the browser's URL.

exander77 commented 6 years ago

@onsightit Nope, in lib/init-wallet.js: There is: newUser.local.password = newUser.generateHash("password"); instead of: newUser.local.password = newUser.generateHash(coin.settings.masterPassword);

exander77 commented 6 years ago

Also, js files do not respect chRoot and do not append /wallet in front of URLs. And sometimes it cannot be shut down by CTRL+C and it is left hanging. Also wallet console is not protected and I can manipulate it even without been logged:

curl --insecure 'https://wallet_address/help/'

I thought it was a good web wallet, but seems not so good so far.

exander77 commented 6 years ago

Also I cannot register a user, if I try Sign Up and send the form I does nothing. When I click "Sign Up", it sends the form, no error is produced and I am back at the empty from.

Should I create issues for everything I find?

exander77 commented 6 years ago

Just updated, and cleared the db. After first login I am forced to update profile, but I get "Save Error!". Awesome update. :)

exander77 commented 6 years ago

Also signup page now returns an error.

exander77 commented 6 years ago

In routes/user.js is some sequalize variable which is not defined.

onsightit commented 6 years ago

Give me a couple more hours. Trying to merge in a few changes from another project of mine. ;) On Jan 28, 2018 10:05 AM, "Ing. Radomír Polách" notifications@github.com wrote:In routes/users.js is some sequalize variable which is not defined.

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.

exander77 commented 6 years ago

No problem. :) It is your project.

I am ready to test anything with fresh DB. So it may be helpful for you to make the project viable for others.

onsightit commented 6 years ago

Thanks for the great feedback, exander77. 2.1.3 is ready for beta...