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: 2 years ago
Size: 2,768 bytes


Class file image Download
<!DOCTYPE html>
    <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>
    <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>
                <?php } ?>

                <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 ?>" />
                <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 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 class="col-md-6">
                            <p class="text-right">
                                    Download Google authenticator: <br>
                                    <a href="" target="_blank">Download Now</a> (Android Devices) <br>
                                    <a href="" target="_blank">Download Now</a> (iOS Devices)

For more information send a message to info at phpclasses dot org.