PHP Classes

File: application/views/2fa_method.php

Recommend this page to a friend!
  Classes of Asad Ullah   PHP Google Authenticator with CodeIgniter   application/views/2fa_method.php   Download  
File: application/views/2fa_method.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Google Authenticator with CodeIgniter
2fa Google Authenticator implementation
Author: By
Last change:
Date: 6 years ago
Size: 2,768 bytes
 

Contents

Class file image Download
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><?= $page_title ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" media="screen" href="main.css" />
    <script src="main.js"></script>
</head>
<body>
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <h3 class="box-title">Enable Authenticator Support</h3>

                <?php if ( !empty($message) ) { ?>

                    <div class="alert alert-success">
                        <p><?= $message ?></p>
                    </div>
               
                <?php } ?>

                <hr>
                <p>Scan the below Qr code by Google Authenticator app on your phone and Enter the verification code generated.</p>
                <p>Authenticator Secret Code: <mark><?= $user_2fa_secret_code ?></mark> <small style="color:#ddd">(save this code)</small></p>
                <img src="<?= $user_2fa_qrCode ?>" />
                <br>
                <form class="form-horizontal form-material" method="post">
                    <div class="form-group">
                        <label class="col-md-12">Enter the 2-step verification</label>
                        <div class="col-md-12">
                            <input type="text" name="code" placeholder="Enter the 2-step verification code provided by your authentication app" class="form-control form-control-line" required="">
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-6">
                            <button type="submit" class="btn btn-success">Enable 2F Authentication</button>
                            <input type="hidden" name="secret_code" value="<?= $user_2fa_secret_code ?>" required>
                        </div>
                        <div class="col-md-6">
                            <p class="text-right">
                                <small>
                                    Download Google authenticator: <br>
                                    <a href="https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2&hl=en" target="_blank">Download Now</a> (Android Devices) <br>
                                    <a href="https://itunes.apple.com/us/app/google-authenticator/id388497605?mt=8" target="_blank">Download Now</a> (iOS Devices)
                                </small>
                            </p>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</body>
</html>