react-auth-box icon indicating copy to clipboard operation
react-auth-box copied to clipboard

Authentication not working

Open DSandman opened this issue 8 years ago • 5 comments
trafficstars

Authentication, signing up doesn't seem to work for me. This might be the issue: https://github.com/truffle-box/truffle-box-auth/blob/master/contracts/Authentication.sol#L27

I believe signup and update shouldn't have the payable modifier.

DSandman avatar Apr 18 '17 15:04 DSandman

It's working for me locally - are you receiving errors anywhere? It seems like the payable modifier is added so that these functions wont error if devs add code expecting payment in the future. That shouldn't cause issues when executing without payment.

apackin avatar Jun 24 '17 01:06 apackin

@DSandman Are there any errors in the console? When clicking sign up does it redirect anywhere? Last question: Are you using MetaMask in Chrome? Thanks!

DiscRisknBisque avatar Jul 10 '17 20:07 DiscRisknBisque

Look like I am having a similar issue. Running testrpc, Metamask, React-Auth-Box. I am unable login after the notification pop up to approve the transaction. The notification spins a constant loading spinner but says it approved in the Metamask Tx history. Contracts were published on TestRPC, but Metamask isn't able to interact with it. Afterward, error in the console says Wallet 0x92e7... does not have an account! Will look into it more on the Metamask side.

tmashuang avatar Jul 19 '17 21:07 tmashuang

I'm running React-auth-box + Geth (Ropsten) + Metamask and signup and login works, but redirection is not working.

2624789 avatar Aug 24 '17 13:08 2624789

Change var userName = web3.toUtf8(result) in LoginButtonActtion.js to var userName = web3.utils.toUtf8(result)

ghost avatar Mar 04 '18 13:03 ghost