Bitcoin Forum
November 09, 2024, 10:13:54 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 [43] 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 ... 117 »
  Print  
Author Topic: [ANN - NEW EXCHANGE] | www.CoinMarket.io | OFFICIAL THREAD  (Read 143463 times)
coinmarket.io (OP)
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
January 25, 2014, 08:51:32 PM
Last edit: January 25, 2014, 09:04:25 PM by coinmarket.io
 #841

Due to alot of FUD, we are releasing parts of the code responsible for logging the users in.

https://gist.github.com/anonymous/0ea4963391498b35ce96


Code, that is responsible for logging users in and maintaining their session:

Edit: formatting lost while copying from github
 
/////////////////////////////////////////
// FILE 1: a route handler called "login"
/////////////////////////////////////////

 
module.exports = function(req, res) {
  /* removed meaningless anti-bruteforce code from this sector */
  if (req.params.logout) {
    // handle loging the user aout
    req.session.account = null;
    req.session.user = null
    delete req.session.account;
    delete req.session.user;
    res.redirect('/');
    return;
  }
  /* removed hard-coded IP bans from sector */
  if (req.body.username && req.body.password) {
    // if the FORM was posted, then call the exchange.login method
    exchange.login(req.body.username, req.body.password, function(err, user) {
      if (err) {
        // login failed, redirect
     res.redirect('/');
      }
      else { // <- this means that exchange.login method called the callback without an error
        // login OK, set session data and redirect
     req.session.account = user.id.toString();
     req.session.user = user;
        res.redirect('/');
      }
    }, req /* pass connection to login handler */);
  }
  else {
    // no login data in POST, redirect to /
    res.redirect('/');
  }
};
 
/////////////////////////////////////////
// FILE 2: a method called exchange.login
/////////////////////////////////////////

 
Exchange.prototype.login = function(username, password, callback, request) {
    // salt password to protect from rainbow attack on a leaked database
    password = this.saltPassword(username, password);
    // hash it with SHA-1 to check against the database
    password = crypto.createHash('sha1').update(password).digest("hex");
    this.numLogins++; // increment login counter for stats
    var exchange = this;
    var query = 'SELECT * FROM accounts WHERE username = ? AND password = ?';
    db.query(query, [username, password], function(err, rows) {
        // if the database query returns error or no rows, then:
   if (err || !rows || !rows.length) {
     callback(err.toString());
     return; // EXECUTION STOPS HERE
   }
   // code below executes only when a match was found (a row returned from the database)
   var user = rows[0];
   db.query('INSERT INTO logins VALUES (NULL, ?, ?, NOW())', [user.id, request.connection.remoteAddress]);
   callback(null, user); // pass control back to the route handler (FILE 1)
   exchange.numLoginsSuccess++; // increment successful login counter for stats
    });
}
 
/////////////////////////////////////////
How do we check if an user is logged in?
We simply check for the session variables in every handler.
leewilson
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
January 25, 2014, 08:54:42 PM
 #842

I would think this has been suggested but I will suggest it anyway.

Is there any possibility to alphabetize the wallet and market??

Thanks

“If you tell a lie big enough and keep repeating it, people will eventually come to believe it. The lie can be maintained only for such time as the State BlockNet can shield the people from the political, economic and/or military consequences of the lie. It thus becomes vitally important for the State BlockNet to use all of its powers to repress dissent, for the truth is the mortal enemy of the lie, and thus by extension, the truth is the greatest enemy of the State BlockNet.” - Joseph Goebbels
Olelukoye
Member
**
Offline Offline

Activity: 74
Merit: 10


View Profile
January 25, 2014, 08:58:25 PM
 #843

Dear developers. My account is oleander.
There were three withdrawals initiated and there have been no confirmations so far. If it can be changed somehow please let me change my email address, maybe that will do the trick. Also, If you can, please confirm manually my pending withdrawals. If everything will be ok tomorrow, I'll make a nice donation for this exchange development. Sorry for the trouble and good luck!
coinmarket.io (OP)
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
January 25, 2014, 09:01:51 PM
 #844

Withdrawals confimed. PM me your next email address.
Taxidermista
Legendary
*
Offline Offline

Activity: 1148
Merit: 1001



View Profile
January 25, 2014, 09:15:13 PM
 #845

Since the glitch I have a 5.21550639 CON unconfirmed deposit that seems stuck:

user: Taxidermista
Txid: 9c26b2dfe3fa0a04d404ee52fab840d00f202e53a8d680d984010e6e7444af56

And another 7.1208608 CON deposit missing:

Txid: 3218f11327eff094b8db0db7cc653c47d2699f1ad8b0f30e90d878f531b317e1

My CON deposit is still missing after 1 hour.

My CON deposit is still missing after 2 hours.

AdamT
Hero Member
*****
Offline Offline

Activity: 486
Merit: 500


View Profile
January 25, 2014, 09:18:03 PM
Last edit: January 25, 2014, 09:29:53 PM by AdamT
 #846

Withdrawals confimed. PM me your next email address.

If you could please confirm my withdrawal of 50k NOBL from yesterday I would really appreciate it. No conf email since yesterday. I think I've asked like 4 times already. Thx.


Great, thank you! So now I see them back in my wallet. I'm a bit worried if I try to withdraw now, I won't get the conf email again. Wut to do?
coinmarket.io (OP)
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
January 25, 2014, 09:20:09 PM
 #847

My CON deposit is still missing after 2 hours.

This dude has made 325 deposits while we are asking not to use pool payouts...
If you continue to make small payouts from pools, your account will be disabled for trading and only withdrawing will be an option.
Looking for your deposit.
Taxidermista
Legendary
*
Offline Offline

Activity: 1148
Merit: 1001



View Profile
January 25, 2014, 09:27:23 PM
Last edit: January 25, 2014, 09:38:22 PM by Taxidermista
 #848

My CON deposit is still missing after 2 hours.

This dude has made 325 deposits while we are asking not to use pool payouts...

This dude make most of his deposits from his wallets, sometimes from pools, every 5 or 6 minutes. Sometimes even more frequently, to six different exchanges. I did not know you have a problem with the frequency of deposits. Thank you for your answer full of constructive criticism.

BTW, that CON deposit is still missing. Thank you for your time again.

EDIT: And thank you for your threats, very refreshing. And constructive too.

mrbildo
Member
**
Offline Offline

Activity: 102
Merit: 10


View Profile
January 25, 2014, 09:32:17 PM
 #849

Any status on the account belonging to last night;s hacker? Has he withdrawn coins or are trades still reversable? If so, what is wallet ID stolen funds were sent to?
This can be found out easily by looking at the time and price of trades. Please look into this
coinmarket.io (OP)
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
January 25, 2014, 09:41:17 PM
 #850

And why in the world do you need to make deposits every few minutes?

Those two are flagged as "credited" in our database, the flagging happens AFTER an update to the balances table.

Wierd.
camper111
Newbie
*
Offline Offline

Activity: 22
Merit: 0


View Profile
January 25, 2014, 09:42:13 PM
 #851

Very fast exchange. No slow dialup connection as coinedup ... :-)

Good work.
Taxidermista
Legendary
*
Offline Offline

Activity: 1148
Merit: 1001



View Profile
January 25, 2014, 09:57:56 PM
 #852

And why in the world do you need to make deposits every few minutes?

Those two are flagged as "credited" in our database, the flagging happens AFTER an update to the balances table.

Wierd.

I guess the coins are in the limbo. Thank you very much for your help anyway. Don't worry, I won't bother you again.

coinmarket.io (OP)
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
January 25, 2014, 10:00:41 PM
 #853

Upcoming opt-in security feature: authorization of IP addresses via e-mail.

When enabled, you wont be able to log in from new IP addresses unless you click an autorization link in e-mail.
Clicking the link will whitelist that IP address. Removing from the whitelist will be possible form the settings page.
AdamT
Hero Member
*****
Offline Offline

Activity: 486
Merit: 500


View Profile
January 25, 2014, 10:07:56 PM
 #854

Dev, can you verify emails are going out for withdrawal confs? I want to try my withdrawal again and don't want it to get stuck again.
coinmarket.io (OP)
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
January 25, 2014, 10:14:36 PM
 #855

Dev, can you verify emails are going out for withdrawal confs? I want to try my withdrawal again and don't want it to get stuck again.
When SMTP does not accept our mail for delivery, we get notified. Hasnt happened, please be patient and check spam folder too.
kalnas
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
January 25, 2014, 10:33:12 PM
 #856

Somebody is spaming orders and effectively clearing transaction history...
podyx
Legendary
*
Offline Offline

Activity: 2338
Merit: 1035



View Profile
January 25, 2014, 10:33:43 PM
 #857

nothing
Freekiiee
Member
**
Offline Offline

Activity: 96
Merit: 10


View Profile
January 25, 2014, 10:34:03 PM
 #858

scroll down, press cancel Wink
coinmarket.io (OP)
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
January 25, 2014, 10:40:46 PM
 #859

Somebody is spaming orders and effectively clearing transaction history...

We have punished that user by CLEARING HIS BALANCE (not much).

It's written on the front page: Trying to abuse or flood our system will result in account/balance loss!
leewilson
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
January 25, 2014, 10:53:40 PM
 #860

Somebody is spaming orders and effectively clearing transaction history...

We have punished that user by CLEARING HIS BALANCE (not much).

It's written on the front page: Trying to abuse or flood our system will result in account/balance loss!

yessss

“If you tell a lie big enough and keep repeating it, people will eventually come to believe it. The lie can be maintained only for such time as the State BlockNet can shield the people from the political, economic and/or military consequences of the lie. It thus becomes vitally important for the State BlockNet to use all of its powers to repress dissent, for the truth is the mortal enemy of the lie, and thus by extension, the truth is the greatest enemy of the State BlockNet.” - Joseph Goebbels
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 [43] 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 ... 117 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!