Skip to content

Commit

Permalink
TFA auth bits
Browse files Browse the repository at this point in the history
  • Loading branch information
jacques committed Feb 3, 2016
1 parent 05056a1 commit af95438
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 0 deletions.
25 changes: 25 additions & 0 deletions session.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{include file="session__header.tpl" title="Two-Factor Authentication"}

<p>
Please enter your Google Authenticator code for Diamond Cash.
</p>

<p>
<form action="/session/two_factor" method="post" class="form-horizontal" role="form">
{include file="_partials/csrf.tpl"}
<div class="form-group">
<label for="inputName" class="col-sm-2 control-label">Enter your TFA Code</label>
<div class="col-sm-10">
<input type="text" name="authentication_code" class="form-control" id="inputVerifyCode" placeholder="Verify Code">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary">Verify TFA Code</button>
</div>
</div>
</form>
</div>
</p>

{include file="session__footer.tpl"}
14 changes: 14 additions & 0 deletions session__footer.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{*
* Common footer for session road blocks (i.e. TFA auth / forced password
* changes, etc.)
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2014-2016 Jacques Marneweck. All rights strictly reserved.
*}
{include file="_partials/footer-jqbs.tpl"}
{include file="_partials/gauges.tpl"}
</body>
</html>
34 changes: 34 additions & 0 deletions session__header.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{*
* Common header for session road blocks (i.e. TFA auth / forced password
* changes, etc.)
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2014-2016 Jacques Marneweck. All rights strictly reserved.
*}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Diamond Cash &mdash; Your Money Matters &mdash; {$title}</title>
{include file="_partials/header-bsfa.tpl"}
<link href="/css/diamondcash.css" rel="stylesheet">

{include file="_partials/header-shims.tpl"}
</head>
<body>

<div class="container">
<div class="header hidden-print">
<ul class="nav nav-pills pull-right">
<li><a href="/logout"><i class="fa fa-sign-out"></i> Logout</a></li>
</ul>
<h3 class="text-muted"><img src="/images/imogo.png" alt="IMOGO" height="75"></h3>
</div>

<hr />

0 comments on commit af95438

Please sign in to comment.