Skip to content
This repository has been archived by the owner on Apr 8, 2023. It is now read-only.

Commit

Permalink
Support for Google 2 Factor
Browse files Browse the repository at this point in the history
  • Loading branch information
jfm-so committed Jul 4, 2015
0 parents commit 2fccc4d
Show file tree
Hide file tree
Showing 17 changed files with 1,997 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
@@ -0,0 +1,26 @@
piWallet
========

piWallet is a secure opensource online altcoin wallet that works with practically any altcoin.

Setup: https://github.com/johnathanmartin/piWallet/wiki

Bitcoin Talk: https://bitcointalk.org/index.php?topic=911212

Whats New:
- Google 2 Factor Auth

- Support Pin - A support button has been added that gives instructions to email the wallet's support team. In additon, a Support Key is shown in the top left corner. The support key is unique to there account and can be used to verify the the owner of that account. The support key changes if the user resets his/her password.

Coming Soon:
- login rate limiting
- 2fa Authentication


Planned Features:

- Control of Private Keys

Donate:
1krMKEo1nKtZUcvxfjGFjWVtHdPNoWUCt

7 changes: 7 additions & 0 deletions assets/css/bootstrap.min.css

Large diffs are not rendered by default.

71 changes: 71 additions & 0 deletions assets/css/wallet.css
@@ -0,0 +1,71 @@
body {
background-color: #ffefcb;
}

.navbar-default {
background-color: #e7623c;
border-color: #b9392b;
}
.navbar-default .navbar-brand {
color: #ffffff;
}
.navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus {
color: #ffbbbc;
}
.navbar-default .navbar-text {
color: #ffffff;
}
.navbar-default .navbar-nav > li > a {
color: #ffffff;
}
.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus {
color: #ffbbbc;
}
.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus {
color: #ffbbbc;
background-color: #b9392b;
}
.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus {
color: #ffbbbc;
background-color: #b9392b;
}
.navbar-default .navbar-toggle {
border-color: #b9392b;
}
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
background-color: #b9392b;
}
.navbar-default .navbar-toggle .icon-bar {
background-color: #ffffff;
}
.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
border-color: #ffffff;
}
.navbar-default .navbar-link {
color: #ffffff;
}
.navbar-default .navbar-link:hover {
color: #ffbbbc;
}

.table {
background-color: #ffffff;
}

@media (max-width: 767px) {
.navbar-default .navbar-nav .open .dropdown-menu > li > a {
color: #ffffff;
}
.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
color: #ffbbbc;
}
.navbar-default .navbar-nav .open .dropdown-menu > .active > a, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #ffbbbc;
background-color: #b9392b;
}
#txlist td:nth-of-type(1), #txlist td:nth-of-type(2), #txlist td:nth-of-type(5), #txlist td:nth-of-type(6) {
display: none;
}
}
form { display: inline; }
6 changes: 6 additions & 0 deletions assets/js/bootstrap.min.js

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions classes/Client.php
@@ -0,0 +1,42 @@
<?php if (!defined("IN_WALLET")) { die("u can't touch this."); } ?>
<?php
class Client {
private $uri;
private $jsonrpc;

function __construct($host, $port, $user, $pass)
{
$this->uri = "http://" . $user . ":" . $pass . "@" . $host . ":" . $port . "/";
$this->jsonrpc = new jsonRPCClient($this->uri);
}

function getBalance($user_session)
{
return $this->jsonrpc->getbalance("zelles(" . $user_session . ")", 6);
//return 21;
}

function getAddressList($user_session)
{
return $this->jsonrpc->getaddressesbyaccount("zelles(" . $user_session . ")");
//return array("1test", "1test");
}

function getTransactionList($user_session)
{
return $this->jsonrpc->listtransactions("zelles(" . $user_session . ")", 10);
}

function getNewAddress($user_session)
{
return $this->jsonrpc->getnewaddress("zelles(" . $user_session . ")");
//return "1test";
}

function withdraw($user_session, $address, $amount)
{
return $this->jsonrpc->sendfrom("zelles(" . $user_session . ")", $address, (float)$amount, 6);
//return "ok wow";
}
}
?>

0 comments on commit 2fccc4d

Please sign in to comment.