I'm new in Dapp. and researching how to make dapp. and I found some codes like this. transferring tokens between wallets
Token.transfer(accounts[1], 10, {from:accounts[2]}).then(function(result){
console.log(result)
})
This will send 10 tokens from account[2] to account[1]
I understand this is development mode and it can handles all accounts.
But, I don't know How it is not possible in production? I can't find any thing about this..
Does any user can call this api changing from address? If not, How it is not?
I think there should be some preventing code user cannot change from value.